Result:
found more than 415 distributions - search limited to the first 2001 files matching your query ( run in 1.104 )


HTML-DWT-Simple

 view release on metacpan or  search on metacpan

Simple.pm  view on Meta::CPAN

#  Copyright (c) 2002 by S.D. Campbell <whytwolf@spots.ab.ca>
#
#  Created 13 March 2002, Modified 05 April 2002
#
#  A perl module designed to parse a simple HTML template file
#  generated by Macromedia Dreamweaver and replace fields in the
#  template with values from a CGI script.
#
#############################################################
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License

Simple.pm  view on Meta::CPAN

  $html = $template->output();

=head1 DESCRIPTION

A perl module designed to parse a simple HTML template file
generated by Macromedia Dreamweaver and replace fields in the
template with values from a CGI script.  

=head1 METHODS

=head2 new()

 view all matches for this distribution


HTML-DWT

 view release on metacpan or  search on metacpan

DWT.pm  view on Meta::CPAN

#  Copyright (c) 2002 by S.D. Campbell <whytwolf@spots.ab.ca>
#
#  Created 03 March 2000; Revised 04 March  2002 by SDC
#
#  A perl module designed to parse a simple HTML template file
#  generated by Macromedia Dreamweaver and replace fields in the
#  template with values from a CGI script.
#
#############################################################
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License

DWT.pm  view on Meta::CPAN

  $html = $template->output();

=head1 DESCRIPTION

A perl module designed to parse a simple HTML template file
generated by Macromedia Dreamweaver and replace fields in the
template with values from a CGI script.  

=head1 METHODS

=head2 Options

DWT.pm  view on Meta::CPAN

    <item name="leftcont"><![CDATA[Testing]]></item>
    <item name="rightcont"><![CDATA[Testing]]></item>
  </templateItems>

These documents can be automaticly generated both by HTML::DWT based 
on template data using export(), or by Macromedia Dreamweaver.

=head2 fill()

  $template->fill(\%dataHash);

 view all matches for this distribution


HTML-Dojo

 view release on metacpan or  search on metacpan

lib/HTML/Dojo/editions.pm  view on Meta::CPAN

var _375=new dojo.flash.Embed(false);
_375.write(8,true);
_375.setVisible(true);
_375.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}

 view all matches for this distribution


HTML-Embperl

 view release on metacpan or  search on metacpan

epchar.c  view on Meta::CPAN

        { 'ª' ,   "&ordf;"  },    /* 	Feminine ordinal  */
        { '«' ,   "&laquo;" },    /* 	Left angle quote, guillemot left  */
        { '¬' ,   "&euro;"   },    /*	Euro sign  */
        { '­' ,   "&shy;"    },    /* 	Soft hyphen  */
        { '®' ,   "&reg;"    },    /* 	Registered trademark  */
/*        { '¯' ,   "&macr;"   },    / *  	Macron accent  */
        { '¯' ,   "&hibar;"  },    /* 	Macron accent  */
        { '°' ,   "&deg;"    },    /* 	Degree sign  */
        { '±' ,   "&plusmn;" },    /* 	Plus or minus  */
        { '²' ,   "&sup2;"   },    /* 	Superscript two  */
        { '³' ,   "&sup3;"   },    /* 	Superscript three  */
        { '´' ,   "&acute;"  },    /* 	Acute accent  */

epchar.c  view on Meta::CPAN

        { 'ª' ,   ""  },    /* 	Feminine ordinal  */
        { '«' ,   "" },    /* 	Left angle quote, guillemot left  */
        { '¬' ,   ""   },    /*	Not sign  */
        { '­' ,   ""    },    /* 	Soft hyphen  */
        { '®' ,   ""    },    /* 	Registered trademark  */
        { '¯' ,   ""  },    /* 	Macron accent  */
        { '°' ,   ""    },    /* 	Degree sign  */
        { '±' ,   "" },    /* 	Plus or minus  */
        { '²' ,   ""   },    /* 	Superscript two  */
        { '³' ,   ""   },    /* 	Superscript three  */
        { '´' ,   ""  },    /* 	Acute accent  */

epchar.c  view on Meta::CPAN

        { '¬' ,   "&euro"   },    /*	Euro sign  */
        { '½' ,   "&frac12" },    /* 	Fraction one-half  */
        { '¼' ,   "&frac14" },    /* 	Fraction one-fourth  */
        { '¾' ,   "&frac34" },    /* 	Fraction three-fourths  */
        { '>' ,   "&gt"     },    /* 	Greater than  */
        { '¯' ,   "&hibar"  },    /* 	Macron accent  */
        { 'í' ,   "&iacute" },    /* 	Small i, acute accent  */
        { 'î' ,   "&icirc"  },    /* 	Small i, circumflex  */
        { '¡' ,   "&iexcl"  },    /* 	Inverted exclamation  */
        { 'ì' ,   "&igrave" },    /* 	Small i, grave accent  */
        { '¿' ,   "&iquest" },    /* 	Inverted question mark  */
        { 'ï' ,   "&iuml"   },    /* 	Small i, diæresis / umlaut  */
        { '«' ,   "&laquo" },    /* 	Left angle quote, guillemot left  */
        { '<' ,   "&lt"     },    /* 	Less than  */
        { '¯' ,   "&macr"   },    /*  	Macron accent  */
        { 'µ' ,   "&micro"  },    /* 	Micro sign  */
        { '·' ,   "&middot" },    /* 	Middle dot  */
        { ' ' ,   "&nbsp"   },    /* 	Non-breaking Space  */
        { 'ñ' ,   "&ntilde" },    /* 	Small n, tilde  */
        { 'ó' ,   "&oacute" },    /* 	Small o, acute accent  */

 view all matches for this distribution


HTML-LBI

 view release on metacpan or  search on metacpan

LBI.pm  view on Meta::CPAN

#
#  Created 03 February 2002; Revised 12 February 2002 by SDC
#
#  Description:
#	A perl module for use with CGI scripts that opens a 
#	Macromedia Dreamweaver library file (.lbi) and returns
#	the resulting HTML code snippet.
#
#############################################################
#
#  Construction:

LBI.pm  view on Meta::CPAN



=head1 DESCRIPTION

A perl module for use with CGI scripts that opens a 
Macromedia Dreamweaver library file (.lbi) and returns
the resulting HTML code snippet.

=head1 METHODS

=head2 Creation

 view all matches for this distribution


HTML-Macro

 view release on metacpan or  search on metacpan

Loop/Loop.pm  view on Meta::CPAN

# HTML::Macro::Loop; Loop.pm
# Copyright (c) 2001,2002 Michael Sokolov and Interactive Factory. All rights
# reserved. This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.

package HTML::Macro::Loop;

use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);

require Exporter;

Loop/Loop.pm  view on Meta::CPAN

sub push_array ($@)
# values must be pushed in the same order as they were declared, and all
# must be present
{
    my ($self, @vals) = @_;
    die "HTML::Macro::Loop::push_array: number of vals pushed(" . (@vals+0) . ") does not match number declared: " . (@ {$$self{'vars'}} + 0)
        if (@vals + 0 != @ {$$self{'vars'}});
    my $row = &new_row;
    my $i = 0;
    foreach my $var (@ {$$self{'vars'}})
    {

Loop/Loop.pm  view on Meta::CPAN

}

sub new_row
{
    my ($self) = @_;
    my $row = new HTML::Macro;
    $row->set ('@parent', $self);
    $row->{'@attr'} = $self->{'@parent'}->{'@attr'};
    $row->{'@incpath'} = $self->{'@parent'}->{'@incpath'};
    return $row;
}

Loop/Loop.pm  view on Meta::CPAN

    }
    return undef;
}

sub doloop ($$$$ )
# perform repeated processing a-la HTML::Macro on the loop body $body,
# concatenate the results and return that.
{
    my ($self, $body, $separator, $separator_final, $collapse) = @_;
    my $buf = '';
    my $markup_seen;

Loop/Loop.pm  view on Meta::CPAN

{
    my ($self, $name, @loop_vars) = @_;

    my $rows = $$self{'rows'};
    die "HTML::Loop::new_loop: no rows in loop - call a push method" if !@$rows;
    my $new_loop = new HTML::Macro::Loop ($$rows [$#$rows]);

    if ($name) {
        $self->set ($name, $new_loop);
    }
    if (@loop_vars) {

Loop/Loop.pm  view on Meta::CPAN

__END__
# Below is the stub of documentation for your module. You better edit it!

=head1 NAME

HTML::Macro::Loop - looping construct for repeated HTML blocks

=head1 SYNOPSIS

  use HTML::Macro;
  use HTML::Macro::Loop;
  $htm = HTML::Macro->new();
  $loop = $htm->new_loop('loop-body', 'id', 'name', 'phone');
  $loop->push_array (1, 'mike', '222-2389');
  $loop->push_hash ({ 'id' => 2, 'name' => 'lou', 'phone' => '111-2389'});
  $htm->print ('test.html');

=head1 DESCRIPTION

  HTML::Macro::Loop processes tags like 

<loop id="loop-tag"> loop body </loop>

    Each loop body is treated as a nested HTML::Macro within which variable
substitutions, conditions and nested loops are processed as described under
HTML::Macro. For complete documentation see HTML::Macro.
=head1 AUTHOR

Michael Sokolov, sokolov@ifactory.com

=head1 SEE ALSO HTML::Macro

perl(1).

=cut

 view all matches for this distribution


HTML-Merge

 view release on metacpan or  search on metacpan

lib/HTML/Merge/Compile.pm  view on Meta::CPAN

		eval <<EOM;
		package HTML::Merge::Ext;

		sub API_$tag$proto 
		{
			Macro("$text", \@_);
		}
EOM
	}

	foreach my $api (qw(API OUT)) 

lib/HTML/Merge/Compile.pm  view on Meta::CPAN

		return 1;
	}
	undef;
}
#####################################
sub Macro {
	my ($self, $text) = @_;
	my $length = length($self->{'source'});
	my $lennow;

	$self->{'source'} = $text . $self->{'source'};

lib/HTML/Merge/Compile.pm  view on Meta::CPAN

}


package HTML::Merge::Ext;

sub Macro {
	my $text = shift;
	$text =~ s/(?<!\\)\$(\d+)/\000$_[$1 - 1]\000/g;

	$HTML::Merge::Ext::COMPILER->Macro($text);
	return "";
}

1;

 view all matches for this distribution


HTML-Template-Filter-Dreamweaver

 view release on metacpan or  search on metacpan

Dreamweaver.pm  view on Meta::CPAN

 Dreamweaver MX has updated their templating code fairly heavily, and 
 now it supports many of the things that HTML::Template does.
 
 For example, you can define template variables, repeating sections, use 
 conditional logic, etc.  I'll try to give a quick summation here, but 
 in all honesty, you would do better by browsing Macromedia's website, 
 downloading the trial version. or buying a book on it.
 
 Dreamweaver allows you to set up a template file (it ends in an 
 extension called .dwt).  You can then use this template to create HTML 
 files where you change the pre-defined parameters of the template.

 view all matches for this distribution


HTML-Transmorgify

 view release on metacpan or  search on metacpan

lib/HTML/Transmorgify/Metatags.pod  view on Meta::CPAN


 <macro VAR_NAME>
 <macro name=VAR_NAME>
 <macro name=VAR_NAME encode=ENCODING=>

Macro expansions can be done inside attribute values of other tags:

 <img alt="<macro alttag>">

Some macro values are evaluated at runtime.  These might in turn
use other macros.  All named attributes to a E<lt>macroE<gt> 
are added as temporary macros while doing a lookup.

=head2 Defining Macro Values

Macro values can be set in the invocation of HTML::Transmorgify:

 my $output = $magic->process($input_text, { %options }, 
 	alt_tag => 'my image',
	my_title => 'yea, we did it',
	an_array => [ 'foo', 'bar' ],

lib/HTML/Transmorgify/Metatags.pod  view on Meta::CPAN

lookup, then the object is turned to text with the C<text> method.

A virtual base clase that objects can inherit from is defined in
L<HTML::Transmorgify::ObjectGlue>.

Macros can also be defined with the C<E<lt>defineE<gt>> 
directive.  All of these do the same thing:

 <define title>my new title</define>
 
 <define name="title">my new title</define>

lib/HTML/Transmorgify/Metatags.pod  view on Meta::CPAN

them should be deferred until runtime by using the C<eval="true">
attribute.

=item name

The name of the Macro being defined. 

=item value

The text of the new defintion.

 view all matches for this distribution


HTML-Valid

 view release on metacpan or  search on metacpan

tidy-html5.c  view on Meta::CPAN


/* other footnote bit field (temporary until formalized) */

#define FN_TRIM_EMPTY_ELEMENT     1

/* Lexer and I/O Macros */

#define REPLACED_CHAR           0
#define DISCARDED_CHAR          1


 view all matches for this distribution


HTML-WikiConverter-MoinMoin

 view release on metacpan or  search on metacpan

lib/HTML/WikiConverter/MoinMoin.pm  view on Meta::CPAN

constructor. See L<HTML::WikiConverter/ATTRIBUTES> for usage details.

=head2 enable_anchor_macro

Possible values: C<0>, C<1>. Enables C<[[Anchor(s)]]> formatting. See
L<http://moinmoin.wikiwikiweb.de/HelpOnMacros> for details.

=cut

sub attributes { {
  enable_anchor_macro => { default => 0, type => BOOLEAN }

lib/HTML/WikiConverter/MoinMoin.pm  view on Meta::CPAN

}

sub _link {
  my( $self, $node, $rules ) = @_;

  # bug #17813 requests anchors; MoinMoin:HelpOnMacros gives new
  # "<<Anchor(name)>>" syntax for anchors and other macros (this was
  # previously "[[Anchor(name)]]" sometime prior to 2008-10-01)

  # bug #29347 requests 'id' be favored over 'name'
  my $anchor_name = $node->attr('id') || $node->attr('name');

 view all matches for this distribution


HTML-YaTmpl

 view release on metacpan or  search on metacpan

lib/HTML/YaTmpl.pm  view on Meta::CPAN

	$macro=$I->_eval_list( $v, $h, $I->_parse_cached($f) );
	last;
      }
    }
    unless( exists $I->_macros->{$macro} ) {
      return $I->_report_error( "<:macro $macro>", "Macro not defined" );
    }
    $macro=$I->_macros->{$macro};
    my $nh=+{$I->_make_include_param_list( $v, $el, $h )};
    #warn "M M M: ";
    #use Data::Dumper; warn Dumper($nh);

 view all matches for this distribution


HTML5-DOM

 view release on metacpan or  search on metacpan

third_party/modest/modestConfig.cmake.in  view on Meta::CPAN

@PACKAGE_INIT@

#include(CMakeFindDependencyMacro)
# NOTE Had to use find_package because find_dependency does not support COMPONENTS or MODULE until 3.8.0
#find_package(Boost 1.55 REQUIRED COMPONENTS regex)

# prevent including it several times
if(NOT @PROJECT_NAME@_FOUND)

 view all matches for this distribution


HTTP-Balancer

 view release on metacpan or  search on metacpan

.carton/02packages.details.txt  view on Meta::CPAN

Text::Xslate::PP                     1.6002  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Const               undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Method              undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Opcode             1.6002  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::State               undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Type::Macro         undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Type::Pair          undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Type::Raw           undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::Parser                  undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::Runner                  undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::Symbol                  undef  G/GF/GFUJI/Text-Xslate-1.6002.tar.gz

 view all matches for this distribution


Hades-Macro-YAML

 view release on metacpan or  search on metacpan

lib/Hades/Macro/YAML.pm  view on Meta::CPAN

package Hades::Macro::YAML;
use strict;
use warnings;
use base qw/Hades::Macro/;
our $VERSION = 0.04;
our ( $YAML_CLASS, $CLASS_LOADED );

BEGIN {
	$YAML_CLASS = eval {

lib/Hades/Macro/YAML.pm  view on Meta::CPAN


__END__

=head1 NAME

Hades::Macro::YAML - Hades macro helpers for YAML

=head1 VERSION

Version 0.04

lib/Hades/Macro/YAML.pm  view on Meta::CPAN


=head1 SUBROUTINES/METHODS

=head2 new

Instantiate a new Hades::Macro::YAML object.

	Hades::Macro::YAML->new

=head2 yaml_load_string

call yaml_load_string method. Expects param $mg to be a Object, param $str to be a Str, param $param to be a Optional[Str], param $list to be a Optional[Bool].

lib/Hades/Macro/YAML.pm  view on Meta::CPAN

LNATION, C<< <email at lnation.org> >>

=head1 BUGS

Please report any bugs or feature requests to C<bug-hades::macro::yaml at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hades-Macro-YAML>.  I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.

=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Hades::Macro::YAML

You can also look for information at:

=over 4

=item * RT: CPAN's request tracker (report bugs here)

L<https://rt.cpan.org/NoAuth/Bugs.html?Dist=Hades-Macro-YAML>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Hades-Macro-YAML>

=item * CPAN Ratings

L<https://cpanratings.perl.org/d/Hades-Macro-YAML>

=item * Search CPAN

L<https://metacpan.org/release/Hades-Macro-YAML>

=back

=head1 ACKNOWLEDGEMENTS

 view all matches for this distribution


Hades-Realm-Exporter

 view release on metacpan or  search on metacpan

t/06-macro.t  view on Meta::CPAN

				}
				ArrayRef2Str :a(ar2s) {
					return qq|$params[0] = $params[0]\->[0];|;
				}
			}
			KosmosMacro { 
				[penthos curae] :t(Int) :d(2) :p :pr :c :r :i 
				geras $nosoi :t(Int) :d(5) :i { if (£penthos == $nosoi) { return £curae; } } 
				eros $eros :t(Str) :d(t/test.txt) :i {
					€s2ar('$eros');
					€ar2s('$eros');

t/06-macro.t  view on Meta::CPAN

		lib => 't/lib'
	});
	use lib 't/lib';
}

use KosmosMacro qw/penthos has_curae geras eros psyche/;
eval { penthos };
like( $@, qr/^cannot call private/);
is(has_curae, 1);
is(geras(2), 2);
is(eros(), 't/test.txt');

 view all matches for this distribution


Hades-Realm-Import-Export

 view release on metacpan or  search on metacpan

t/06-macro.t  view on Meta::CPAN

				}
				ArrayRef2Str :a(ar2s) {
					return qq|$params[0] = $params[0]\->[0];|;
				}
			}
			KosmosMacro { 
				[penthos curae] :t(Int) :d(2) :p :pr :c :r :i 
				geras $nosoi :t(Int) :d(5) :i { if (£penthos == $nosoi) { return £curae; } } 
				eros $eros :t(Str) :d(t/test.txt) :i {
					€s2ar('$eros');
					€ar2s('$eros');

t/06-macro.t  view on Meta::CPAN

		lib => 't/lib'
	});
	use lib 't/lib';
}

use KosmosMacro qw/penthos has_curae geras eros psyche/;
eval { penthos };
like( $@, qr/^cannot call private/);
is(has_curae, 1);
is(geras(2), 2);
is(eros(), 't/test.txt');

 view all matches for this distribution


Hades-Realm-Moo

 view release on metacpan or  search on metacpan

t/06-macro.t  view on Meta::CPAN

				}
				ArrayRef2Str :a(ar2s) {
					return qq|$params[0] = $params[0]\->[0];|;
				}
			}
			KosmosMacro { 
				[penthos curae] :t(Int) :d(2) :p :pr :c :r 
				geras $nosoi :t(Int) :d(5) { if (£penthos == $nosoi) { return £curae; } } 
				eros $eros :t(Str) :d(t/test.txt) {
					€s2ar('$eros');
					€ar2s('$eros');

t/06-macro.t  view on Meta::CPAN

		`,
		lib => 't/lib'
	});
	use lib 't/lib';
}
use KosmosMacro;
my $okay = KosmosMacro->new({
	curae => 5
});
eval { $okay->penthos };
like( $@, qr/^cannot call private attribute penthos/);
is($okay->has_curae, 1);

 view all matches for this distribution


Hades-Realm-Moose

 view release on metacpan or  search on metacpan

t/06-macro.t  view on Meta::CPAN

				}
				ArrayRef2Str :a(ar2s) {
					return qq|$params[0] = $params[0]\->[0];|;
				}
			}
			KosmosMacro { 
				[penthos curae] :t(Int) :d(2) :p :pr :c :r 
				geras $nosoi :t(Int) :d(5) { if (£penthos == $nosoi) { return £curae; } } 
				eros $eros :t(Str) :d(t/test.txt) {
					€s2ar('$eros');
					€ar2s('$eros');

t/06-macro.t  view on Meta::CPAN

		`,
		lib => 't/lib'
	});
	use lib 't/lib';
}
use KosmosMacro;
my $okay = KosmosMacro->new({
	curae => 5
});
eval { $okay->penthos };
like( $@, qr/private/);
is($okay->geras(2), 5);

 view all matches for this distribution


Hades-Realm-Mouse

 view release on metacpan or  search on metacpan

t/06-macro.t  view on Meta::CPAN

				}
				ArrayRef2Str :a(ar2s) {
					return qq|$params[0] = $params[0]\->[0];|;
				}
			}
			KosmosMacro { 
				[penthos curae] :t(Int) :d(2) :p :pr :c :r 
				geras $nosoi :t(Int) :d(5) { if (£penthos == $nosoi) { return £curae; } } 
				eros $eros :t(Str) :d(t/test.txt) {
					€s2ar('$eros');
					€ar2s('$eros');

t/06-macro.t  view on Meta::CPAN

		`,
		lib => 't/lib'
	});
	use lib 't/lib';
}
use KosmosMacro;
my $okay = KosmosMacro->new({
	curae => 5
});
is($okay->has_curae, 1);
is($okay->geras(2), 5);
is($okay->eros(), 't/test.txt');

 view all matches for this distribution


Hades

 view release on metacpan or  search on metacpan

lib/Hades.pm  view on Meta::CPAN

	my ($self, $mg, $class) = @_;
	my $meta = $self->{macros};
	for my $macro (@{$class}) {
		$self->debug_step(debug_step_6, $macro);
		if ($macro->[-1] !~  m/^{/) {
			my $include = sprintf "Hades::Macro::%s", shift @{$macro};
			$self->debug_step(sprintf(debug_step_7, $include), $macro);
			eval qq|require $include|;
			die $@ if $@;
			my $include_meta = $include->new($macro->[0] ? do {
				$macro->[0] =~ s/^\[|\]$//g;

lib/Hades.pm  view on Meta::CPAN


	dokimi :t(Optional[Str])

=cut

=head2 Macros

Hades has a concept of macros that allow you to write re-usable code. see L<https://metacpan.org/source/LNATION/Hades-0.24/macro-fh.hades> for an example of how to extend via macros.

	macro {
		FH [ macro => [qw/read_file write_file/], alias => { read_file => [qw/rf/], write_file => [qw/wf/] } ]

lib/Hades.pm  view on Meta::CPAN

		}
		ArrayRef2Str :a(ar2s) {
			return qq|$params[0] = $params[0]\->[0];|;
		}
	}
	MacroKosmos {
		eros $eros :t(Str) :d(t/test.txt) {
			€s2ar('$eros');
			€ar2s('$eros');
			€wf('$eros', q|'this is a test'|);
			return $eros;

lib/Hades.pm  view on Meta::CPAN

		}
	}

	... generates ...

	package MacroKosmos;
	use strict;
	use warnings;
	our $VERSION = 0.01;

	sub new {

 view all matches for this distribution


Hardware-Vhdl-Automake

 view release on metacpan or  search on metacpan

lib/Hardware/Vhdl/Automake/PreProcessor/Cish.pm  view on Meta::CPAN

sub macro_define {
    my ($self, $macname, $macdef) = @_;
    my $perm  = $self->[0];
    $macdef = '' if !defined $macdef;
    if (exists $perm->{macros}{$macname}) {
        carp "Macro '$macname', defined at $perm->{macros}{$macname}{defined_in} line $perm->{macros}{$macname}{linenum}, was redefined";
    }
    $perm->{macros}{$macname} = { search => $macname, replace => $macdef, defined_in => $self->[-1]{source}, defined_line => $self->[-1]{linenum} };
    $self->update_macro_re;
}

 view all matches for this distribution


HiPi-BCM2835

 view release on metacpan or  search on metacpan

BCM2835/src/doc/Doxyfile.in  view on Meta::CPAN


ENABLE_PREPROCESSING   = YES

# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
# names in the source code. If set to NO (the default) only conditional
# compilation will be performed. Macro expansion can be done in a controlled
# way by setting EXPAND_ONLY_PREDEF to YES.

MACRO_EXPANSION        = NO

# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES

 view all matches for this distribution


HoneyClient-Agent

 view release on metacpan or  search on metacpan

etc/honeyclient.xml  view on Meta::CPAN

                </directories_to_check>
                <exclude_list description="List of regular expressions that match files/directories to exclude from analysis.  These entries match files/directories that change normally during the course of driving the target application.  As such, t...
                    <regex>C:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Cookies.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Macromedia/Flash Player.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/Windows Media.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/History/History.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/Content.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temp</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>C:/WINDOWS/SYSTEM32/config/SecEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/SysEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software.log</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/system.LOG</regex>
                    <regex>C:/WINDOWS/SYSTEM32/Macromed/Flash.*</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfc009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfd009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfh009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfi009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/PerfStringBackup.INI</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\DUIBags\\ShellFolders\\.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\BagMRU.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\MUICache.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows Media\\WMSDK\\General.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Volatile Environment$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia\\FlashPlayer$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography\\RNG$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Dfrg\\BootOptimizeFunction$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Direct3D\\MostRecentApplication$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PCHealth\\PchSvc$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\SystemCertificates\\.*$</regex>

 view all matches for this distribution


HoneyClient-DB

 view release on metacpan or  search on metacpan

etc/honeyclient.xml  view on Meta::CPAN

                </directories_to_check>
                <exclude_list description="List of regular expressions that match files/directories to exclude from analysis.  These entries match files/directories that change normally during the course of driving the target application.  As such, t...
                    <regex>C:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Cookies.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Macromedia/Flash Player.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/Windows Media.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/History/History.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/Content.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temp</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>C:/WINDOWS/SYSTEM32/config/SecEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/SysEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software.log</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/system.LOG</regex>
                    <regex>C:/WINDOWS/SYSTEM32/Macromed/Flash.*</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfc009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfd009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfh009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfi009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/PerfStringBackup.INI</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\DUIBags\\ShellFolders\\.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\BagMRU.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\MUICache.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows Media\\WMSDK\\General.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Volatile Environment$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia\\FlashPlayer$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography\\RNG$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Dfrg\\BootOptimizeFunction$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Direct3D\\MostRecentApplication$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PCHealth\\PchSvc$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\SystemCertificates\\.*$</regex>

 view all matches for this distribution


HoneyClient-Manager

 view release on metacpan or  search on metacpan

etc/honeyclient.xml  view on Meta::CPAN

                </directories_to_check>
                <exclude_list description="List of regular expressions that match files/directories to exclude from analysis.  These entries match files/directories that change normally during the course of driving the target application.  As such, t...
                    <regex>C:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Cookies.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Macromedia/Flash Player.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/Windows Media.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/History/History.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/Content.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temp</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>C:/WINDOWS/SYSTEM32/config/SecEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/SysEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software.log</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/system.LOG</regex>
                    <regex>C:/WINDOWS/SYSTEM32/Macromed/Flash.*</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfc009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfd009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfh009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfi009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/PerfStringBackup.INI</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\DUIBags\\ShellFolders\\.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\BagMRU.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\MUICache.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows Media\\WMSDK\\General.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Volatile Environment$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia\\FlashPlayer$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography\\RNG$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Dfrg\\BootOptimizeFunction$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Direct3D\\MostRecentApplication$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PCHealth\\PchSvc$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\SystemCertificates\\.*$</regex>

 view all matches for this distribution


HoneyClient-Util

 view release on metacpan or  search on metacpan

etc/honeyclient.xml  view on Meta::CPAN

                </directories_to_check>
                <exclude_list description="List of regular expressions that match files/directories to exclude from analysis.  These entries match files/directories that change normally during the course of driving the target application.  As such, t...
                    <regex>C:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Cookies.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Macromedia/Flash Player.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/Windows Media.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Application Data/Mozilla/Firefox/Profiles.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/History/History.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/Content.IE5.*</regex>
                    <regex>C:/Documents and Settings/Administrator/Local Settings/Temp</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>C:/WINDOWS/SYSTEM32/config/SecEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/SysEvent.evt</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/software.log</regex>
                    <regex>C:/WINDOWS/SYSTEM32/config/system.LOG</regex>
                    <regex>C:/WINDOWS/SYSTEM32/Macromed/Flash.*</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfc009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfd009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfh009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/perfi009.dat</regex>
                    <regex>C:/WINDOWS/SYSTEM32/PerfStringBackup.INI</regex>

etc/honeyclient.xml  view on Meta::CPAN

                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\DUIBags\\ShellFolders\\.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\BagMRU.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\MUICache.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Software\\Microsoft\\Windows Media\\WMSDK\\General.*$</regex>
                    <regex>^HKEY_CURRENT_USER\\Volatile Environment$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Macromedia\\FlashPlayer$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography\\RNG$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Dfrg\\BootOptimizeFunction$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Direct3D\\MostRecentApplication$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PCHealth\\PchSvc$</regex>
                    <regex>^HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\SystemCertificates\\.*$</regex>

 view all matches for this distribution


IO-Compress-Brotli

 view release on metacpan or  search on metacpan

brotli/c/common/platform.h  view on Meta::CPAN


   Distributed under MIT license.
   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/

/* Macros for compiler / platform specific features and build options. */

#ifndef BROTLI_COMMON_PLATFORM_H_
#define BROTLI_COMMON_PLATFORM_H_

#include <string.h>  /* memcpy */

brotli/c/common/platform.h  view on Meta::CPAN

#if defined(BROTLI_ENABLE_LOG) || defined(BROTLI_DEBUG)
#include <assert.h>
#include <stdio.h>
#endif

/* Macros for compiler / platform specific features and build options.

   Build options are:
    * BROTLI_BUILD_32_BIT disables 64-bit optimizations
    * BROTLI_BUILD_64_BIT forces to use 64-bit optimizations
    * BROTLI_BUILD_BIG_ENDIAN forces to use big-endian optimizations

 view all matches for this distribution


IO-ReadPreProcess

 view release on metacpan or  search on metacpan

lib/IO/ReadPreProcess.pm  view on Meta::CPAN


__END__

=head1 NAME

IO::ReadPreProcess - Macro processing built into IO::File replacement

=head1 SYNOPSIS

    use IO::ReadPreProcess;

 view all matches for this distribution


ISAL-Crypto

 view release on metacpan or  search on metacpan

isa-l_crypto/aes/gcm_avx_gen2.asm  view on Meta::CPAN

%endif

%define	VARIABLE_OFFSET	LOCAL_STORAGE + XMM_STORAGE

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Utility Macros
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; GHASH_MUL MACRO to implement: Data*HashKey mod (128,127,126,121,0)
; Input: A and B (128-bits each, bit-reflected)

isa-l_crypto/aes/gcm_avx_gen2.asm  view on Meta::CPAN

%define	%%DATA_OFFSET		%6
%define	%%AAD_HASH		%7
%define	%%ENC_DEC		%8
	mov	r13, [%%GDATA_CTX + PBlockLen]
	cmp	r13, 0
	je	%%_partial_block_done		;Leave Macro if no partial blocks

	cmp	%%PLAIN_CYPH_LEN, 16		;Read in input data without over reading
	jl	%%_fewer_than_16_bytes
	VXLDR	xmm1, [%%PLAIN_CYPH_IN]		;If more than 16 bytes of data, just fill the xmm register
	jmp	%%_data_read

isa-l_crypto/aes/gcm_avx_gen2.asm  view on Meta::CPAN

%define	%%PLAIN_CYPH_IN		%4
%define	%%PLAIN_CYPH_LEN	%5
%define	%%ENC_DEC		%6
%define	%%DATA_OFFSET		r11

; Macro flow:
; calculate the number of 16byte blocks in the message
; process (number of 16byte blocks) mod 8 '%%_initial_num_blocks_is_# .. %%_initial_blocks_encrypted'
; process 8 16 byte blocks at a time until all are done '%%_encrypt_by_8_new .. %%_eight_cipher_left'
; if there is a block of less tahn 16 bytes process it '%%_zero_cipher_left .. %%_multiple_of_16_bytes'
	cmp	%%PLAIN_CYPH_LEN, 0

 view all matches for this distribution


( run in 1.104 second using v1.01-cache-2.11-cpan-49f99fa48dc )