Searched refs:subroutine (Results 1 - 25 of 133) sorted by relevance

123456

/openbsd-current/gnu/usr.bin/binutils/gdb/testsuite/gdb.mi/
H A Dmi-syn-frame.c8 void subroutine (int);
43 subroutine (sig);
46 /* The first statement in subroutine () is a place for a breakpoint.
51 subroutine (int in) function
/openbsd-current/gnu/usr.bin/perl/t/uni/
H A Dgoto.t35 like $@, qr/Goto undefined subroutine &main::\345\225\217\351\241\214\343\201\256\345\216\237\345\233\240/, "But does NOT find the softref sub when it's lacking the UTF-8 flag";
41 like $@, qr/Goto undefined subroutine &main::���/, "goto undefined sub gets the right error message";
H A Dcaller.t20 ::like $@, qr/Undefined subroutine &������������::ok called at/u;
25 ::is( $c[3], "������������::__ANON__", "anonymous subroutine name" );
30 # The subroutine only gets anonymised if it is relying on a real GV
35 ::is( $c[3], "������������::__ANON__", "deleted subroutine name" );
44 ::is( $c[3], "������������::���������������", "subroutine name" );
50 ::is( $c[3], "(eval)", "subroutine name in an eval {}" );
54 ::is( $c[3], "(eval)", "subroutine name in an eval ''" );
58 ::is( $c[3], "������������::__ANON__", "anonymous subroutine name" );
65 ::is( $c[3], "������������::__ANON__", "deleted subroutine name" );
/openbsd-current/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/
H A Dundefined-block.t14 like($@, qr{^Not a subroutine reference}, "$sub(undef, ...) croaks");
17 like($@, qr{^Undefined subroutine in $sub}, "$sub(\&undefined, ...) croaks");
H A Dfirst.t55 like($@, qr/^Can't undef active subroutine/, "undef active sub");
103 # Can we goto a subroutine?
105 like($@, qr/^Can't goto subroutine from a sort sub/, "goto sub");
116 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
118 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
120 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
122 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
124 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
H A Dreduce.t81 like($@, qr/^Can't undef active subroutine/, "undef active sub");
120 local $SIG{__DIE__} = sub { $ok = $_[0] =~ /Not a (subroutine|CODE) reference/ ? '' : $_[0] };
122 is($ok, '', 'Not a subroutine reference');
125 is($ok, '', 'Not a subroutine reference');
139 # Can we goto a subroutine?
141 like($@, qr/^Can't goto subroutine from a sort sub/, "goto sub");
155 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
157 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
159 ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
161 ok($@ =~ /^Not a subroutine referenc
[all...]
H A Dscalarutil-proto.t49 ok($@ =~ /^set_prototype: not a subroutine reference/, 'not a sub reference');
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Danonsub.t15 like($@, qr/^Illegal declaration of anonymous subroutine at/,
29 like($@, qr/^Illegal declaration of anonymous subroutine at/,
98 Useless use of anonymous subroutine in void context at - line 5.
105 Undefined subroutine called at - line 4.
H A Dsymbolcache.t34 like( $@, qr/Undefined subroutine &main::removed2 called/,
H A Danonconst.t42 like $w, qr/^Constant subroutine main::foo redefined at /,
H A Dlexsub.t141 like $@, qr/^Undefined subroutine &sb called at /,
144 like $@, qr/^Undefined subroutine &sb called at /,
187 like $@, qr/^Undefined subroutine &sc called at /,
190 like $@, qr/^Undefined subroutine &sc called at /,
216 '"state" subroutine &foo masks earlier declaration in same scope at '
456 like $@, qr/^Undefined subroutine &������ called at /,
503 like $@, qr/^Undefined subroutine &mb called at /,
506 like $@, qr/^Undefined subroutine &mb called at /,
549 like $@, qr/^Undefined subroutine &mc called at /,
552 like $@, qr/^Undefined subroutine
[all...]
H A Dsub_lval.t138 like($_, qr/Can\'t return an uninitialized value from lvalue subroutine/);
174 like($_, qr/Can\'t modify non-lvalue subroutine call of &main::nolv in scalar assignment/);
183 like($_, qr/Can\'t modify non-lvalue subroutine call of &main::nolv in scalar assignment/);
192 like($_, qr/Can\'t modify non-lvalue subroutine call of &main::nolv in scalar assignment/);
212 like($_, qr/Can\'t modify non-lvalue subroutine call/)
224 like($_, qr/Can't return undef from lvalue subroutine/);
232 like($_, qr/Can't return undef from lvalue subroutine/,
266 like($_, qr/Can't return undef from lvalue subroutine/);
274 like($_, qr/Can't return undef from lvalue subroutine/,
302 like($_, qr/Can\'t return a temporary from lvalue subroutine/);
[all...]
/openbsd-current/gnu/usr.bin/perl/t/comp/
H A Dredef.t39 ok 7, $warn =~ s/Constant subroutine sub3 redefined[^\n]+\n//s;
44 ok 8, $warn =~ s/Constant subroutine sub4 redefined[^\n]+\n//s;
50 ok 10, $warn =~ s/Constant subroutine sub5 redefined[^\n]+\n//s;
81 ok 19, $warn =~ s/Constant subroutine sub10 redefined[^\n]+\n//s;
/openbsd-current/gnu/usr.bin/perl/t/mro/
H A Dnext_inanon_utf8.t12 anonymous subroutine.
H A Dnext_inanon.t11 anonymous subroutine.
/openbsd-current/gnu/usr.bin/perl/ext/XS-APItest/t/
H A DnewCONSTSUB.t17 like $w, qr/Constant subroutine frimple redefined at /,
69 like $w, qr/Constant subroutine \x{100} redefined at /,
95 is($const, 1, "subroutine generated by $using is CvCONST");
/openbsd-current/gnu/usr.bin/perl/ext/attributes/
H A Dattributes.pm26 lvalue => 'lvalue attribute applied to already-defined subroutine',
27 -lvalue => 'lvalue attribute removed from already-defined subroutine',
122 attributes - get/set subroutine or variable attributes
130 use attributes (); # optional, to get subroutine declarations
133 use attributes 'get'; # import the attributes::get subroutine
169 The setting of subroutine attributes happens at compile time.
205 C<attributes.pm> checks if there is a subroutine called C<< MODIFY_<reftype>_ATTRIBUTES >>
207 subroutine C<MODIFY_CODE_ATTRIBUTES> is required. Then this
209 The subroutine call in this example would look like
226 Indicates that the referenced subroutine i
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/autodie/lib/autodie/
H A DUtil.pm116 # a subref is undef, the subroutine is removed. Otherwise
208 Given a Perl subroutine prototype, return a list of invocation
231 this subroutine.
237 Given a package name and a hashref mapping names to a subroutine
238 reference (or C<undef>), this subroutine will install said subroutines
240 subroutine with that name in the target module will be removed
H A Dhints.pm64 C<autodie> on a user-defined subroutine then it assumes the following
99 A I<hint> is a subroutine or value that is checked against the
100 return value of an autodying subroutine. If the match returns true,
101 C<autodie> considers the subroutine to have failed.
103 If the hint provided is a subroutine, then C<autodie> will pass
104 the complete return value to that subroutine. If the hint is
107 only subroutine hints are supported in these versions.
110 that an autodying subroutine will never see a void context, as
118 Hints may consist of subroutine references, objects overloading
123 These examples apply for use in the C<AUTODIE_HINTS> subroutine an
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/Win32API-File/inc/ExtUtils/
H A DMyconst2perl.pm57 my $subroutine= "";
71 SUBROUTINE => \$subroutine,
101 $subroutine= "main";
106 $subroutine= "const2perl_" . $pkg;
107 $subroutine =~ s/\W/_/g;
133 if( ! $subroutine ) {
181 code that can convert each C constant into a Perl "constant subroutine"
332 die "IFDEF didn't create subroutine reference: eval $sub\n";
/openbsd-current/gnu/usr.bin/perl/cpan/Pod-Usage/t/pod/
H A Dtestcmp.pl37 hash may have a subroutine reference as its corresponding value.
38 The referenced user-defined subroutine should be a line-comparator
/openbsd-current/gnu/usr.bin/perl/cpan/Pod-Checker/t/pod/
H A Dtestcmp.pl37 hash may have a subroutine reference as its corresponding value.
38 The referenced user-defined subroutine should be a line-comparator
/openbsd-current/gnu/usr.bin/perl/cpan/ExtUtils-Constant/lib/ExtUtils/
H A DConstant.pm154 A function to generate the XS code to implement the perl subroutine
156 This XS code is a wrapper around a C subroutine usually generated by
160 C subroutine C<constant> will generate or as a reference to a hash. It should
165 You can call the perl visible subroutine something other than C<constant> if
166 you give the parameter I<XS_SUBNAME>. The C subroutine it calls defaults to
167 the name of the perl visible subroutine, unless you give the parameter
304 A function to generate the AUTOLOAD subroutine for the module I<PACKAGE>
306 It defaults to the version of perl running the subroutine. If I<AUTOLOADER>
307 is true, the AUTOLOAD subroutine falls back on AutoLoader::AUTOLOAD for all
470 The perl visible name of the XS subroutine generate
[all...]
/openbsd-current/gnu/usr.bin/perl/dist/Filter-Simple/lib/Filter/
H A DSimple.pm151 fail "Filter for $what is not a subroutine reference"
300 Within that module, create an C<import> subroutine.
304 Within the C<import> subroutine do a call to C<filter_add>, passing
305 it either a subroutine reference.
309 Within the subroutine reference, call C<filter_read> or C<filter_read_exact>
325 code filtering to cease, create an C<unimport> subroutine, and have it call
329 operation, unless the C<import> subroutine does some fancy
395 Within the anonymous subroutine or block that is passed to
497 In those cases, it is easier to just append the filtering subroutine and
514 except that the C<FILTER> subroutine i
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/
H A Dinternal.t59 like($@,qr{Bad subroutine name},"Can't use fatal with invalid sub names");

Completed in 423 milliseconds

123456