Ready for 7.10.29 development.

This commit is contained in:
Colin Kuskie 2013-03-20 21:38:23 -07:00
commit c806f99b7b
4236 changed files with 1217679 additions and 0 deletions

View file

@ -0,0 +1,17 @@
package WebGUI::Macro::Callback;
use strict;
use warnings;
my $callback = sub {''};
sub process {
return $callback->(@_);
}
sub setCallback {
$callback = shift;
}
1;

View file

@ -0,0 +1,28 @@
package WebGUI::Macro::InfiniteMacro;
use strict;
use warnings;
sub process {
my $session = shift;
my $slow = shift;
if ($slow) {
my $rand = int(rand(10000));
return <<END;
^InfiniteMacro(^dfkgjhdfgk();dssdfsdfawilygth4 wu gbzwilrstg
sdfgdsfg
r7ilsgg hbawl
dsfgsdfgiegvgv
dfggvac
"sdaf${rand}gsdfgdsfg"
w3avvbfielysv iw4yvg silyrgvb iyzrsv bilw4u bgizs4rv,
"efgkhgsdfges.rkdjgdskjghsalkgh\\"\\"\\"sag" );';
END
}
else {
return '^InfiniteMacro();';
}
}
1;

View file

@ -0,0 +1,12 @@
package WebGUI::Macro::MacroEmpty;
use strict;
use warnings;
sub process {
my $session = shift;
return "";
}
1;

View file

@ -0,0 +1,12 @@
package WebGUI::Macro::MacroEnd;
use strict;
use warnings;
sub process {
my $session = shift;
return "Nest();";
}
1;

View file

@ -0,0 +1,12 @@
package WebGUI::Macro::MacroNest;
use strict;
use warnings;
sub process {
my $session = shift;
return "^Extras;";
}
1;

View file

@ -0,0 +1,12 @@
package WebGUI::Macro::MacroStart;
use strict;
use warnings;
sub process {
my $session = shift;
return "^Macro";
}
1;

View file

@ -0,0 +1,12 @@
package WebGUI::Macro::MacroUndef;
use strict;
use warnings;
sub process {
my $session = shift;
return;
}
1;

View file

@ -0,0 +1,12 @@
package WebGUI::Macro::ReverseParams;
use strict;
use warnings;
sub process {
my $session = shift;
return join '', reverse @_;
}
1;

View file

@ -0,0 +1,14 @@
package WebGUI::Macro::VisualMacro;
use strict;
use warnings;
sub process {
my $session = shift;
my @params = @_;
$_ = "`$_`" for @params;
return "\@MacroCall[" . join('.', @params) . "]:";
}
1;