Commit | Line | Data |
---|---|---|
5f05dabc | 1 | #!/usr/bin/perl -w |
e50aee73 | 2 | |
5f05dabc | 3 | require 5.003; |
4 | ||
cea2e8a9 GS |
5 | # |
6 | # See database of global and static function prototypes at the __END__. | |
7 | # This is used to generate prototype headers under various configurations, | |
8 | # export symbols lists for different platforms, and macros to provide an | |
9 | # implicit interpreter context argument. | |
10 | # | |
11 | ||
12 | my $END = tell DATA; | |
13 | ||
14 | # walk table providing an array of components in each line to | |
15 | # subroutine, printing the result | |
16 | sub walk_table (&@) { | |
17 | my $function = shift; | |
18 | my $filename = shift || '-'; | |
19 | my $leader = shift; | |
20 | my $trailer = shift; | |
21 | my $F; | |
22 | local *F; | |
23 | if (ref $filename) { # filehandle | |
24 | $F = $filename; | |
25 | } | |
26 | else { | |
27 | open F, ">$filename" or die "Can't open $filename: $!"; | |
28 | $F = \*F; | |
29 | } | |
30 | print $F $leader if $leader; | |
31 | seek DATA, $END, 0; # so we may restart | |
32 | while (<DATA>) { | |
33 | chomp; | |
34 | while (s|\\$||) { | |
35 | $_ .= <DATA>; | |
36 | chomp; | |
37 | } | |
38 | my @args; | |
39 | if (/^\s*(#|$)/) { | |
40 | @args = $_; | |
41 | } | |
42 | else { | |
43 | @args = split /\s*\|\s*/, $_; | |
44 | } | |
45 | print $F $function->(@args); | |
46 | } | |
47 | print $F $trailer if $trailer; | |
48 | close $F unless ref $filename; | |
49 | } | |
50 | ||
51 | sub munge_c_files () { | |
52 | my $functions = {}; | |
53 | unless (@ARGV) { | |
54 | warn "\@ARGV empty, nothing to do\n"; | |
55 | return; | |
56 | } | |
57 | walk_table { | |
58 | if (@_ > 1) { | |
59 | $functions->{$_[2]} = \@_ if $_[@_-1] =~ /\.\.\./; | |
60 | } | |
61 | } '/dev/null'; | |
62 | local $^I = '.bak'; | |
63 | while (<>) { | |
64 | # if (/^#\s*include\s+"perl.h"/) { | |
65 | # my $file = uc $ARGV; | |
66 | # $file =~ s/\./_/g; | |
67 | # print "#define PERL_IN_$file\n"; | |
68 | # } | |
69 | # s{^(\w+)\s*\(} | |
70 | # { | |
71 | # my $f = $1; | |
72 | # my $repl = "$f("; | |
73 | # if (exists $functions->{$f}) { | |
74 | # my $flags = $functions->{$f}[0]; | |
75 | # $repl = "Perl_$repl" if $flags =~ /p/; | |
76 | # unless ($flags =~ /n/) { | |
77 | # $repl .= "pTHX"; | |
78 | # $repl .= "_ " if @{$functions->{$f}} > 3; | |
79 | # } | |
80 | # warn("$ARGV:$.:$repl\n"); | |
81 | # } | |
82 | # $repl; | |
83 | # }e; | |
84 | s{(\b(\w+)[ \t]*\([ \t]*(?!aTHX))} | |
85 | { | |
86 | my $repl = $1; | |
87 | my $f = $2; | |
88 | if (exists $functions->{$f}) { | |
89 | $repl .= "aTHX_ "; | |
90 | warn("$ARGV:$.:$`#$repl#$'"); | |
91 | } | |
92 | $repl; | |
93 | }eg; | |
94 | print; | |
95 | close ARGV if eof; # restart $. | |
96 | } | |
97 | exit; | |
98 | } | |
99 | ||
100 | #munge_c_files(); | |
101 | ||
102 | # generate proto.h | |
0cb96387 GS |
103 | my $wrote_protected = 0; |
104 | ||
cea2e8a9 GS |
105 | sub write_protos { |
106 | my $ret = ""; | |
107 | if (@_ == 1) { | |
108 | my $arg = shift; | |
0cb96387 GS |
109 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifdef|else|endif)\b/ |
110 | or $arg =~ /^\s*(public|protected|private):/; | |
cea2e8a9 GS |
111 | } |
112 | else { | |
113 | my ($flags,$retval,$func,@args) = @_; | |
114 | if ($flags =~ /s/) { | |
115 | $retval = "STATIC $retval"; | |
116 | $func = "S_$func"; | |
117 | } | |
0cb96387 GS |
118 | else { |
119 | $retval = "VIRTUAL $retval"; | |
120 | if ($flags =~ /p/) { | |
121 | $func = "Perl_$func"; | |
122 | } | |
cea2e8a9 GS |
123 | } |
124 | $ret .= "$retval\t$func("; | |
125 | unless ($flags =~ /n/) { | |
126 | $ret .= "pTHX"; | |
127 | $ret .= "_ " if @args; | |
128 | } | |
129 | if (@args) { | |
130 | $ret .= join ", ", @args; | |
131 | } | |
132 | else { | |
133 | $ret .= "void" if $flags =~ /n/; | |
134 | } | |
135 | $ret .= ")"; | |
136 | $ret .= " __attribute__((noreturn))" if $flags =~ /r/; | |
137 | $ret .= ";\n"; | |
138 | } | |
139 | $ret; | |
140 | } | |
141 | ||
142 | # generates global.sym, and populates %global with global symbols | |
143 | sub write_global_sym { | |
144 | my $ret = ""; | |
145 | if (@_ > 1) { | |
146 | my ($flags,$retval,$func,@args) = @_; | |
147 | unless ($flags =~ /s/) { | |
148 | $func = "Perl_$func" if $flags =~ /p/; | |
149 | $ret = "$func\n"; | |
150 | } | |
151 | } | |
152 | $ret; | |
153 | } | |
154 | ||
155 | ||
156 | walk_table(\&write_protos, 'proto.h', <<'EOT'); | |
157 | /* | |
158 | * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
159 | * This file is autogenerated from data in embed.pl. Edit that file | |
160 | * and run 'make regen_headers' to effect changes. | |
161 | */ | |
162 | ||
163 | EOT | |
164 | ||
165 | walk_table(\&write_global_sym, 'global.sym', <<'EOT'); | |
166 | # | |
167 | # !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
168 | # This file is autogenerated from data in embed.pl. Edit that file | |
169 | # and run 'make regen_headers' to effect changes. | |
170 | # | |
171 | ||
172 | EOT | |
173 | ||
709f4e38 GS |
174 | # XXX others that may need adding |
175 | # warnhook | |
176 | # hints | |
177 | # copline | |
84fee439 NIS |
178 | my @extvars = qw(sv_undef sv_yes sv_no na dowarn |
179 | curcop compiling | |
180 | tainting tainted stack_base stack_sp sv_arenaroot | |
256a4781 | 181 | no_modify |
84fee439 NIS |
182 | curstash DBsub DBsingle debstash |
183 | rsfp | |
184 | stdingv | |
6b88bc9c GS |
185 | defgv |
186 | errgv | |
3070f6ec GS |
187 | rsfp_filters |
188 | perldb | |
709f4e38 GS |
189 | diehook |
190 | dirty | |
191 | perl_destruct_level | |
84fee439 NIS |
192 | ); |
193 | ||
5f05dabc | 194 | sub readsyms (\%$) { |
195 | my ($syms, $file) = @_; | |
5f05dabc | 196 | local (*FILE, $_); |
197 | open(FILE, "< $file") | |
198 | or die "embed.pl: Can't open $file: $!\n"; | |
199 | while (<FILE>) { | |
200 | s/[ \t]*#.*//; # Delete comments. | |
201 | if (/^\s*(\S+)\s*$/) { | |
22c35a8c GS |
202 | my $sym = $1; |
203 | warn "duplicate symbol $sym while processing $file\n" | |
204 | if exists $$syms{$sym}; | |
205 | $$syms{$sym} = 1; | |
5f05dabc | 206 | } |
207 | } | |
208 | close(FILE); | |
209 | } | |
210 | ||
cea2e8a9 GS |
211 | # Perl_pp_* and Perl_ck_* are in pp.sym |
212 | readsyms my %ppsym, 'pp.sym'; | |
5f05dabc | 213 | |
c6af7a1a GS |
214 | sub readvars(\%$$@) { |
215 | my ($syms, $file,$pre,$keep_pre) = @_; | |
d4cce5f1 NIS |
216 | local (*FILE, $_); |
217 | open(FILE, "< $file") | |
218 | or die "embed.pl: Can't open $file: $!\n"; | |
219 | while (<FILE>) { | |
220 | s/[ \t]*#.*//; # Delete comments. | |
51371543 | 221 | if (/PERLVARA?I?C?\($pre(\w+)/) { |
22c35a8c | 222 | my $sym = $1; |
c6af7a1a | 223 | $sym = $pre . $sym if $keep_pre; |
22c35a8c GS |
224 | warn "duplicate symbol $sym while processing $file\n" |
225 | if exists $$syms{$sym}; | |
51371543 | 226 | $$syms{$sym} = $pre || 1; |
d4cce5f1 NIS |
227 | } |
228 | } | |
229 | close(FILE); | |
230 | } | |
231 | ||
232 | my %intrp; | |
233 | my %thread; | |
234 | ||
235 | readvars %intrp, 'intrpvar.h','I'; | |
236 | readvars %thread, 'thrdvar.h','T'; | |
22239a37 | 237 | readvars %globvar, 'perlvars.h','G'; |
d4cce5f1 | 238 | |
51371543 | 239 | foreach my $sym (sort keys %thread) { |
34b58025 | 240 | warn "$sym in intrpvar.h as well as thrdvar.h\n" if exists $intrp{$sym}; |
51371543 | 241 | } |
d4cce5f1 | 242 | |
c6af7a1a GS |
243 | sub undefine ($) { |
244 | my ($sym) = @_; | |
245 | "#undef $sym\n"; | |
246 | } | |
247 | ||
5f05dabc | 248 | sub hide ($$) { |
249 | my ($from, $to) = @_; | |
250 | my $t = int(length($from) / 8); | |
251 | "#define $from" . "\t" x ($t < 3 ? 3 - $t : 1) . "$to\n"; | |
252 | } | |
c6af7a1a | 253 | |
51371543 GS |
254 | sub objxsub_var ($$) { |
255 | my ($pfx, $sym) = @_; | |
c5be433b GS |
256 | my $arg = ($pfx eq 'G' ? 'NULL' : 'aTHXo'); |
257 | undefine("PL_$sym") . hide("PL_$sym", "(*Perl_${pfx}${sym}_ptr($arg))"); | |
c6af7a1a GS |
258 | } |
259 | ||
3280af22 NIS |
260 | sub embedvar ($) { |
261 | my ($sym) = @_; | |
262 | # hide($sym, "Perl_$sym"); | |
263 | return ''; | |
264 | } | |
265 | ||
d4cce5f1 NIS |
266 | sub multon ($$$) { |
267 | my ($sym,$pre,$ptr) = @_; | |
3280af22 | 268 | hide("PL_$sym", "($ptr$pre$sym)"); |
5f05dabc | 269 | } |
d4cce5f1 NIS |
270 | sub multoff ($$) { |
271 | my ($sym,$pre) = @_; | |
533c011a | 272 | return hide("PL_$pre$sym", "PL_$sym"); |
5f05dabc | 273 | } |
274 | ||
275 | unlink 'embed.h'; | |
cea2e8a9 | 276 | open(EM, '> embed.h') or die "Can't create embed.h: $!\n"; |
e50aee73 AD |
277 | |
278 | print EM <<'END'; | |
76b72cf1 | 279 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! |
cea2e8a9 | 280 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, |
c6af7a1a | 281 | perlvars.h and thrdvar.h. Any changes made here will be lost! |
76b72cf1 | 282 | */ |
e50aee73 AD |
283 | |
284 | /* (Doing namespace management portably in C is really gross.) */ | |
285 | ||
22c35a8c | 286 | /* NO_EMBED is no longer supported. i.e. EMBED is always active. */ |
820c3be9 | 287 | |
22c35a8c | 288 | /* Hide global symbols */ |
5f05dabc | 289 | |
22c35a8c | 290 | #if !defined(PERL_OBJECT) |
cea2e8a9 | 291 | #if !defined(PERL_IMPLICIT_CONTEXT) |
e50aee73 | 292 | |
e50aee73 AD |
293 | END |
294 | ||
cea2e8a9 GS |
295 | walk_table { |
296 | my $ret = ""; | |
297 | if (@_ == 1) { | |
298 | my $arg = shift; | |
299 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifdef|else|endif)\b/; | |
300 | } | |
301 | else { | |
302 | my ($flags,$retval,$func,@args) = @_; | |
303 | unless ($flags =~ /o/) { | |
304 | if ($flags =~ /s/) { | |
305 | $ret .= hide($func,"S_$func"); | |
306 | } | |
307 | elsif ($flags =~ /p/) { | |
308 | $ret .= hide($func,"Perl_$func"); | |
309 | } | |
310 | } | |
311 | } | |
312 | $ret; | |
313 | } \*EM; | |
314 | ||
315 | for $sym (sort keys %ppsym) { | |
316 | $sym =~ s/^Perl_//; | |
317 | print EM hide($sym, "Perl_$sym"); | |
318 | } | |
319 | ||
320 | print EM <<'END'; | |
321 | ||
322 | #else /* PERL_IMPLICIT_CONTEXT */ | |
323 | ||
324 | END | |
325 | ||
326 | my @az = ('a'..'z'); | |
327 | ||
328 | walk_table { | |
329 | my $ret = ""; | |
330 | if (@_ == 1) { | |
331 | my $arg = shift; | |
332 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifdef|else|endif)\b/; | |
333 | } | |
334 | else { | |
335 | my ($flags,$retval,$func,@args) = @_; | |
336 | unless ($flags =~ /o/) { | |
337 | my $args = scalar @args; | |
338 | if ($args and $args[$args-1] =~ /\.\.\./) { | |
339 | # we're out of luck for varargs functions under CPP | |
340 | } | |
341 | elsif ($flags =~ /n/) { | |
342 | if ($flags =~ /s/) { | |
343 | $ret .= hide($func,"S_$func"); | |
344 | } | |
345 | elsif ($flags =~ /p/) { | |
346 | $ret .= hide($func,"Perl_$func"); | |
347 | } | |
348 | } | |
349 | else { | |
350 | my $alist = join(",", @az[0..$args-1]); | |
351 | $ret = "#define $func($alist)"; | |
352 | my $t = int(length($ret) / 8); | |
353 | $ret .= "\t" x ($t < 4 ? 4 - $t : 1); | |
354 | if ($flags =~ /s/) { | |
355 | $ret .= "S_$func(aTHX"; | |
356 | } | |
357 | elsif ($flags =~ /p/) { | |
358 | $ret .= "Perl_$func(aTHX"; | |
359 | } | |
360 | $ret .= "_ " if $alist; | |
361 | $ret .= $alist . ")\n"; | |
362 | } | |
363 | } | |
364 | } | |
365 | $ret; | |
366 | } \*EM; | |
367 | ||
368 | for $sym (sort keys %ppsym) { | |
369 | $sym =~ s/^Perl_//; | |
370 | if ($sym =~ /^ck_/) { | |
371 | print EM hide("$sym(a)", "Perl_$sym(aTHX_ a)"); | |
372 | } | |
373 | elsif ($sym =~ /^pp_/) { | |
374 | print EM hide("$sym()", "Perl_$sym(aTHX)"); | |
375 | } | |
376 | else { | |
377 | warn "Illegal symbol '$sym' in pp.sym"; | |
378 | } | |
e50aee73 AD |
379 | } |
380 | ||
e50aee73 AD |
381 | print EM <<'END'; |
382 | ||
cea2e8a9 | 383 | #endif /* PERL_IMPLICIT_CONTEXT */ |
22c35a8c GS |
384 | #else /* PERL_OBJECT */ |
385 | ||
386 | END | |
387 | ||
cea2e8a9 GS |
388 | walk_table { |
389 | my $ret = ""; | |
390 | if (@_ == 1) { | |
391 | my $arg = shift; | |
392 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifdef|else|endif)\b/; | |
393 | } | |
394 | else { | |
395 | my ($flags,$retval,$func,@args) = @_; | |
0cb96387 GS |
396 | if ($flags =~ /s/) { |
397 | $ret .= hide("S_$func","CPerlObj::S_$func"); | |
398 | $ret .= hide($func,"S_$func"); | |
399 | } | |
400 | elsif ($flags =~ /p/) { | |
401 | $ret .= hide("Perl_$func","CPerlObj::Perl_$func"); | |
402 | $ret .= hide($func,"Perl_$func"); | |
403 | } | |
404 | else { | |
405 | $ret .= hide($func,"CPerlObj::$func"); | |
cea2e8a9 GS |
406 | } |
407 | } | |
408 | $ret; | |
409 | } \*EM; | |
410 | ||
411 | for $sym (sort keys %ppsym) { | |
412 | $sym =~ s/^Perl_//; | |
0cb96387 GS |
413 | print EM hide("Perl_$sym", "CPerlObj::Perl_$sym"); |
414 | print EM hide($sym, "Perl_$sym"); | |
22c35a8c GS |
415 | } |
416 | ||
417 | print EM <<'END'; | |
418 | ||
419 | #endif /* PERL_OBJECT */ | |
e50aee73 | 420 | |
cea2e8a9 GS |
421 | /* Compatibility stubs. Compile extensions with -DPERL_NOCOMPAT to |
422 | disable them. | |
423 | */ | |
424 | ||
425 | #if !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) | |
426 | ||
427 | # define sv_setptrobj(rv,ptr,name) sv_setref_iv(rv,name,(IV)ptr) | |
428 | # define sv_setptrref(rv,ptr) sv_setref_iv(rv,Nullch,(IV)ptr) | |
429 | ||
430 | ||
431 | /* Compatibility for various misnamed functions. All functions | |
432 | in the API that begin with "perl_" (not "Perl_") take an explicit | |
433 | interpreter context pointer. | |
434 | The following are not like that, but since they had a "perl_" | |
435 | prefix in previous versions, we provide compatibility macros. | |
436 | */ | |
437 | # define perl_atexit call_atexit | |
438 | # define perl_call_argv call_argv | |
439 | # define perl_call_pv call_pv | |
440 | # define perl_call_method call_method | |
441 | # define perl_call_sv call_sv | |
442 | # define perl_eval_sv eval_sv | |
443 | # define perl_eval_pv eval_pv | |
444 | # define perl_require_pv require_pv | |
445 | # define perl_get_sv get_sv | |
446 | # define perl_get_av get_av | |
447 | # define perl_get_hv get_hv | |
448 | # define perl_get_cv get_cv | |
449 | # define perl_init_i18nl10n init_i18nl10n | |
450 | # define perl_init_i18nl14n init_i18nl14n | |
451 | # define perl_new_ctype new_ctype | |
452 | # define perl_new_collate new_collate | |
453 | # define perl_new_numeric new_numeric | |
454 | ||
455 | /* varargs functions can't be handled with CPP macros. :-( | |
456 | This provides a set of compatibility functions that don't take | |
457 | an extra argument but grab the context pointer using the macro | |
458 | dTHX. | |
459 | */ | |
c5be433b | 460 | #if defined(PERL_IMPLICIT_CONTEXT) && !defined(PERL_OBJECT) |
cea2e8a9 | 461 | # define croak Perl_croak_nocontext |
c5be433b | 462 | # define deb Perl_deb_nocontext |
cea2e8a9 GS |
463 | # define die Perl_die_nocontext |
464 | # define form Perl_form_nocontext | |
465 | # define newSVpvf Perl_newSVpvf_nocontext | |
466 | # define sv_catpvf Perl_sv_catpvf_nocontext | |
467 | # define sv_setpvf Perl_sv_setpvf_nocontext | |
468 | # define warn Perl_warn_nocontext | |
c5be433b | 469 | # define warner Perl_warner_nocontext |
cea2e8a9 GS |
470 | # define sv_catpvf_mg Perl_sv_catpvf_mg_nocontext |
471 | # define sv_setpvf_mg Perl_sv_setpvf_mg_nocontext | |
472 | #endif | |
473 | ||
474 | #endif /* !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) */ | |
475 | ||
476 | #if !defined(PERL_IMPLICIT_CONTEXT) | |
477 | /* undefined symbols, point them back at the usual ones */ | |
478 | # define Perl_croak_nocontext Perl_croak | |
479 | # define Perl_die_nocontext Perl_die | |
c5be433b | 480 | # define Perl_deb_nocontext Perl_deb |
cea2e8a9 | 481 | # define Perl_form_nocontext Perl_form |
c5be433b GS |
482 | # define Perl_newSVpvf_nocontext Perl_newSVpvf |
483 | # define Perl_sv_catpvf_nocontext Perl_sv_catpvf | |
484 | # define Perl_sv_setpvf_nocontext Perl_sv_setpvf | |
cea2e8a9 | 485 | # define Perl_warn_nocontext Perl_warn |
c5be433b | 486 | # define Perl_warner_nocontext Perl_warner |
cea2e8a9 GS |
487 | # define Perl_sv_catpvf_mg_nocontext Perl_sv_catpvf_mg |
488 | # define Perl_sv_setpvf_mg_nocontext Perl_sv_setpvf_mg | |
489 | #endif | |
db5cf5a9 | 490 | |
d4cce5f1 NIS |
491 | END |
492 | ||
493 | close(EM); | |
494 | ||
495 | unlink 'embedvar.h'; | |
496 | open(EM, '> embedvar.h') | |
497 | or die "Can't create embedvar.h: $!\n"; | |
498 | ||
499 | print EM <<'END'; | |
500 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
cea2e8a9 | 501 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, |
c6af7a1a | 502 | perlvars.h and thrdvar.h. Any changes made here will be lost! |
d4cce5f1 NIS |
503 | */ |
504 | ||
505 | /* (Doing namespace management portably in C is really gross.) */ | |
506 | ||
5f05dabc | 507 | /* Put interpreter-specific symbols into a struct? */ |
e50aee73 AD |
508 | |
509 | #ifdef MULTIPLICITY | |
510 | ||
d4cce5f1 NIS |
511 | #ifndef USE_THREADS |
512 | /* If we do not have threads then per-thread vars are per-interpreter */ | |
513 | ||
cea2e8a9 GS |
514 | #ifdef PERL_IMPLICIT_CONTEXT |
515 | ||
516 | /* everything has an implicit context pointer */ | |
517 | ||
518 | END | |
519 | ||
520 | for $sym (sort keys %thread) { | |
521 | print EM multon($sym,'T','my_perl->'); | |
522 | } | |
523 | ||
524 | print EM <<'END'; | |
525 | ||
526 | #else /* !PERL_IMPLICIT_CONTEXT */ | |
527 | ||
528 | /* traditional MULTIPLICITY (intepreter is in a global) */ | |
529 | ||
e50aee73 AD |
530 | END |
531 | ||
cea2e8a9 | 532 | |
d4cce5f1 | 533 | for $sym (sort keys %thread) { |
c5be433b | 534 | print EM multon($sym,'T','PERL_GET_INTERP->'); |
d4cce5f1 NIS |
535 | } |
536 | ||
537 | print EM <<'END'; | |
538 | ||
cea2e8a9 | 539 | #endif /* !PERL_IMPLICIT_CONTEXT */ |
d4cce5f1 NIS |
540 | #endif /* !USE_THREADS */ |
541 | ||
542 | /* These are always per-interpreter if there is more than one */ | |
543 | ||
544 | END | |
545 | ||
546 | for $sym (sort keys %intrp) { | |
c5be433b | 547 | print EM multon($sym,'I','PERL_GET_INTERP->'); |
760ac839 | 548 | } |
760ac839 | 549 | |
55497cff | 550 | print EM <<'END'; |
551 | ||
5f05dabc | 552 | #else /* !MULTIPLICITY */ |
55497cff | 553 | |
554 | END | |
760ac839 | 555 | |
d4cce5f1 NIS |
556 | for $sym (sort keys %intrp) { |
557 | print EM multoff($sym,'I'); | |
e50aee73 | 558 | } |
e50aee73 | 559 | |
56d28764 CS |
560 | print EM <<'END'; |
561 | ||
d4cce5f1 NIS |
562 | #ifndef USE_THREADS |
563 | ||
564 | END | |
565 | ||
566 | for $sym (sort keys %thread) { | |
567 | print EM multoff($sym,'T'); | |
568 | } | |
569 | ||
570 | print EM <<'END'; | |
571 | ||
572 | #endif /* USE_THREADS */ | |
573 | ||
574 | /* Hide what would have been interpreter-specific symbols? */ | |
5f05dabc | 575 | |
56d28764 | 576 | END |
e50aee73 | 577 | |
d4cce5f1 | 578 | for $sym (sort keys %intrp) { |
3280af22 | 579 | print EM embedvar($sym); |
d4cce5f1 NIS |
580 | } |
581 | ||
582 | print EM <<'END'; | |
583 | ||
584 | #ifndef USE_THREADS | |
585 | ||
586 | END | |
587 | ||
588 | for $sym (sort keys %thread) { | |
3280af22 | 589 | print EM embedvar($sym); |
5f05dabc | 590 | } |
591 | ||
592 | print EM <<'END'; | |
593 | ||
d4cce5f1 | 594 | #endif /* USE_THREADS */ |
e50aee73 | 595 | #endif /* MULTIPLICITY */ |
d4cce5f1 NIS |
596 | |
597 | /* Now same trickey for per-thread variables */ | |
598 | ||
599 | #ifdef USE_THREADS | |
600 | ||
601 | END | |
602 | ||
603 | for $sym (sort keys %thread) { | |
22239a37 | 604 | print EM multon($sym,'T','thr->'); |
d4cce5f1 NIS |
605 | } |
606 | ||
607 | print EM <<'END'; | |
608 | ||
609 | #endif /* USE_THREADS */ | |
610 | ||
22239a37 NIS |
611 | #ifdef PERL_GLOBAL_STRUCT |
612 | ||
613 | END | |
614 | ||
615 | for $sym (sort keys %globvar) { | |
533c011a | 616 | print EM multon($sym,'G','PL_Vars.'); |
22239a37 NIS |
617 | } |
618 | ||
619 | print EM <<'END'; | |
620 | ||
621 | #else /* !PERL_GLOBAL_STRUCT */ | |
622 | ||
623 | END | |
624 | ||
625 | for $sym (sort keys %globvar) { | |
626 | print EM multoff($sym,'G'); | |
627 | } | |
628 | ||
629 | print EM <<'END'; | |
630 | ||
22239a37 NIS |
631 | END |
632 | ||
633 | for $sym (sort keys %globvar) { | |
3280af22 | 634 | print EM embedvar($sym); |
22239a37 NIS |
635 | } |
636 | ||
637 | print EM <<'END'; | |
638 | ||
22239a37 NIS |
639 | #endif /* PERL_GLOBAL_STRUCT */ |
640 | ||
e50aee73 AD |
641 | END |
642 | ||
84fee439 NIS |
643 | print EM <<'END'; |
644 | ||
db5cf5a9 | 645 | #ifdef PERL_POLLUTE /* disabled by default in 5.006 */ |
84fee439 NIS |
646 | |
647 | END | |
648 | ||
649 | for $sym (sort @extvars) { | |
650 | print EM hide($sym,"PL_$sym"); | |
651 | } | |
652 | ||
653 | print EM <<'END'; | |
654 | ||
db5cf5a9 | 655 | #endif /* PERL_POLLUTE */ |
84fee439 NIS |
656 | END |
657 | ||
658 | ||
3fe35a81 | 659 | close(EM); |
c6af7a1a GS |
660 | |
661 | unlink 'objXSUB.h'; | |
662 | open(OBX, '> objXSUB.h') | |
663 | or die "Can't create objXSUB.h: $!\n"; | |
664 | ||
665 | print OBX <<'EOT'; | |
666 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
cea2e8a9 | 667 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, |
c6af7a1a GS |
668 | perlvars.h and thrdvar.h. Any changes made here will be lost! |
669 | */ | |
670 | ||
671 | #ifndef __objXSUB_h__ | |
672 | #define __objXSUB_h__ | |
673 | ||
674 | /* Variables */ | |
675 | ||
676 | EOT | |
677 | ||
51371543 GS |
678 | foreach my $sym (sort keys %intrp) { |
679 | print OBX objxsub_var('I',$sym); | |
680 | } | |
681 | ||
682 | foreach my $sym (sort keys %thread) { | |
683 | print OBX objxsub_var('T',$sym); | |
684 | } | |
685 | ||
686 | foreach my $sym (sort keys %globvar) { | |
687 | print OBX objxsub_var('G',$sym); | |
c6af7a1a GS |
688 | } |
689 | ||
690 | print OBX <<'EOT'; | |
691 | ||
692 | /* Functions */ | |
693 | ||
c5be433b GS |
694 | #if defined(PERL_OBJECT) |
695 | ||
696 | /* XXX soon to be eliminated, only a few things in PERLCORE need these now */ | |
697 | ||
c6af7a1a GS |
698 | EOT |
699 | ||
cea2e8a9 GS |
700 | walk_table { |
701 | my $ret = ""; | |
702 | if (@_ == 1) { | |
703 | my $arg = shift; | |
704 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifdef|else|endif)\b/; | |
705 | } | |
706 | else { | |
707 | my ($flags,$retval,$func,@args) = @_; | |
0cb96387 | 708 | unless ($flags =~ /s/) { |
cea2e8a9 | 709 | if ($flags =~ /p/) { |
0cb96387 GS |
710 | $ret .= undefine("Perl_$func") . hide("Perl_$func","pPerl->Perl_$func"); |
711 | $ret .= undefine($func) . hide($func,"Perl_$func"); | |
712 | } | |
713 | else { | |
cea2e8a9 GS |
714 | $ret .= undefine($func) . hide($func,"pPerl->$func"); |
715 | } | |
716 | } | |
717 | } | |
718 | $ret; | |
719 | } \*OBX; | |
c6af7a1a | 720 | |
cea2e8a9 GS |
721 | for $sym (sort keys %ppsym) { |
722 | $sym =~ s/^Perl_//; | |
0cb96387 GS |
723 | print OBX undefine("Perl_$sym") . hide("Perl_$sym", "pPerl->Perl_$sym"); |
724 | print OBX undefine($sym) . hide($sym, "Perl_$sym"); | |
c6af7a1a GS |
725 | } |
726 | ||
c6af7a1a GS |
727 | print OBX <<'EOT'; |
728 | ||
c5be433b | 729 | #endif /* PERL_OBJECT */ |
c6af7a1a GS |
730 | #endif /* __objXSUB_h__ */ |
731 | EOT | |
732 | ||
733 | close(OBX); | |
cea2e8a9 | 734 | |
51371543 GS |
735 | unlink 'perlapi.h'; |
736 | unlink 'perlapi.c'; | |
737 | open(CAPI, '> perlapi.c') or die "Can't create perlapi.c: $!\n"; | |
738 | open(CAPIH, '> perlapi.h') or die "Can't create perlapi.h: $!\n"; | |
739 | ||
740 | print CAPIH <<'EOT'; | |
741 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
742 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, | |
743 | perlvars.h and thrdvar.h. Any changes made here will be lost! | |
744 | */ | |
745 | ||
51371543 GS |
746 | /* declare accessor functions for Perl variables */ |
747 | ||
c5be433b GS |
748 | #if defined(PERL_OBJECT) || defined (PERL_CAPI) |
749 | ||
750 | #if defined(PERL_OBJECT) | |
751 | # undef aTHXo | |
752 | # define aTHXo pPerl | |
753 | # undef aTHXo_ | |
754 | # define aTHXo_ aTHXo, | |
755 | # undef _aTHXo | |
756 | # define _aTHXo ,aTHXo | |
757 | #endif /* PERL_OBJECT */ | |
758 | ||
51371543 GS |
759 | START_EXTERN_C |
760 | ||
761 | #undef PERLVAR | |
762 | #undef PERLVARA | |
763 | #undef PERLVARI | |
764 | #undef PERLVARIC | |
c5be433b | 765 | #define PERLVAR(v,t) EXTERN_C t* Perl_##v##_ptr(pTHXo); |
51371543 | 766 | #define PERLVARA(v,n,t) typedef t PL_##v##_t[n]; \ |
c5be433b | 767 | EXTERN_C PL_##v##_t* Perl_##v##_ptr(pTHXo); |
51371543 | 768 | #define PERLVARI(v,t,i) PERLVAR(v,t) |
c5be433b | 769 | #define PERLVARIC(v,t,i) PERLVAR(v, const t) |
51371543 GS |
770 | |
771 | #include "thrdvar.h" | |
772 | #include "intrpvar.h" | |
773 | #include "perlvars.h" | |
774 | ||
775 | #undef PERLVAR | |
776 | #undef PERLVARA | |
777 | #undef PERLVARI | |
778 | #undef PERLVARIC | |
779 | ||
780 | END_EXTERN_C | |
781 | ||
c5be433b | 782 | #endif /* PERL_OBJECT || PERL_CAPI */ |
51371543 GS |
783 | |
784 | EOT | |
785 | ||
786 | ||
787 | print CAPI <<'EOT'; | |
788 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
789 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, | |
790 | perlvars.h and thrdvar.h. Any changes made here will be lost! | |
791 | */ | |
792 | ||
793 | #include "EXTERN.h" | |
794 | #include "perl.h" | |
795 | #include "perlapi.h" | |
796 | ||
797 | #if defined(PERL_OBJECT) | |
798 | ||
799 | /* accessor functions for Perl variables (provides binary compatibility) */ | |
800 | START_EXTERN_C | |
801 | ||
802 | #undef PERLVAR | |
803 | #undef PERLVARA | |
804 | #undef PERLVARI | |
805 | #undef PERLVARIC | |
c5be433b GS |
806 | #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHXo) \ |
807 | { return &(aTHXo->PL_##v); } | |
808 | #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHXo) \ | |
809 | { return &(aTHXo->PL_##v); } | |
51371543 | 810 | #define PERLVARI(v,t,i) PERLVAR(v,t) |
c5be433b | 811 | #define PERLVARIC(v,t,i) PERLVAR(v, const t) |
51371543 GS |
812 | |
813 | #include "thrdvar.h" | |
814 | #include "intrpvar.h" | |
c5be433b GS |
815 | |
816 | #undef PERLVAR | |
817 | #undef PERLVARA | |
818 | #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHXo) \ | |
819 | { return &(PL_##v); } | |
820 | #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHXo) \ | |
821 | { return &(PL_##v); } | |
51371543 GS |
822 | #include "perlvars.h" |
823 | ||
824 | #undef PERLVAR | |
825 | #undef PERLVARA | |
826 | #undef PERLVARI | |
827 | #undef PERLVARIC | |
828 | ||
829 | EOT | |
830 | ||
c5be433b GS |
831 | # functions that take va_list* for implementing vararg functions |
832 | my %vfuncs = qw( | |
833 | Perl_croak Perl_vcroak | |
834 | Perl_warn Perl_vwarn | |
835 | Perl_warner Perl_vwarner | |
836 | Perl_die Perl_vdie | |
837 | Perl_form Perl_vform | |
838 | Perl_deb Perl_vdeb | |
839 | Perl_newSVpvf Perl_vnewSVpvf | |
840 | Perl_sv_setpvf Perl_sv_vsetpvf | |
841 | Perl_sv_setpvf_mg Perl_sv_vsetpvf_mg | |
842 | Perl_sv_catpvf Perl_sv_vcatpvf | |
843 | Perl_sv_catpvf_mg Perl_sv_vcatpvf_mg | |
844 | Perl_dump_indent Perl_dump_vindent | |
845 | Perl_default_protect Perl_vdefault_protect | |
846 | ); | |
847 | ||
51371543 | 848 | sub emit_func { |
c5be433b | 849 | my ($addcontext, $rettype,$func,@args) = @_; |
51371543 GS |
850 | my @aargs = @args; |
851 | for my $a (@aargs) { $a =~ s/^.*\b(\w+)$/$1/ } | |
c5be433b GS |
852 | my $ctxarg = ''; |
853 | if (not $addcontext) { | |
854 | $ctxarg = 'pTHXo'; | |
855 | $ctxarg .= '_ ' if @args; | |
856 | } | |
857 | my $decl = ''; | |
858 | if ($addcontext) { | |
859 | $decl .= " dTHXo;\n"; | |
860 | } | |
51371543 | 861 | local $" = ', '; |
c5be433b GS |
862 | my $return = ($rettype =~ /^\s*(void|Free_t|Signal_t)\s*$/ |
863 | ? '' : 'return '); | |
864 | my $emitval = ''; | |
865 | if (@args and $args[$#args] =~ /\.\.\./) { | |
866 | pop @args; | |
867 | pop @aargs; | |
868 | my $retarg = ''; | |
869 | my $ctxfunc = $func; | |
870 | $ctxfunc =~ s/_nocontext$//; | |
871 | return $emitval unless exists $vfuncs{$ctxfunc}; | |
872 | if (length $return) { | |
873 | $decl .= " $rettype retval;\n"; | |
874 | $retarg .= "retval = "; | |
875 | $return = "\n ${return}retval;\n"; | |
876 | } | |
877 | $emitval .= <<EOT | |
878 | $rettype | |
879 | $func($ctxarg@args) | |
51371543 | 880 | { |
c5be433b GS |
881 | $decl va_list args; |
882 | va_start(args, $aargs[$#aargs]); | |
883 | $retarg((CPerlObj*)pPerl)->$vfuncs{$ctxfunc}(@aargs, &args); | |
884 | va_end(args);$return | |
51371543 GS |
885 | } |
886 | EOT | |
c5be433b GS |
887 | } |
888 | else { | |
889 | $emitval .= <<EOT | |
890 | $rettype | |
891 | $func($ctxarg@args) | |
892 | { | |
893 | $decl $return((CPerlObj*)pPerl)->$func(@aargs); | |
894 | } | |
895 | EOT | |
896 | } | |
897 | $emitval; | |
51371543 GS |
898 | } |
899 | ||
900 | # XXXX temporary hack | |
901 | for my $sym (qw( | |
902 | perl_construct | |
903 | perl_destruct | |
904 | perl_free | |
905 | perl_run | |
906 | perl_parse | |
907 | )) | |
908 | { | |
909 | $skipapi_funcs{$sym}++; | |
910 | } | |
911 | ||
912 | walk_table { | |
913 | my $ret = ""; | |
914 | if (@_ == 1) { | |
915 | my $arg = shift; | |
916 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifdef|else|endif)\b/; | |
917 | } | |
918 | else { | |
919 | my ($flags,$retval,$func,@args) = @_; | |
920 | return $ret if exists $skipapi_funcs{$func}; | |
c5be433b GS |
921 | unless ($flags =~ /s/) { |
922 | $ret .= "\n"; | |
923 | my $addctx = 1 if $flags =~ /n/; | |
924 | if ($flags =~ /p/) { | |
925 | $ret .= undefine("Perl_$func"); | |
926 | $ret .= emit_func($addctx,$retval,"Perl_$func",@args); | |
927 | } | |
928 | else { | |
929 | $ret .= undefine($func); | |
930 | $ret .= emit_func($addctx,$retval,$func,@args); | |
51371543 GS |
931 | } |
932 | } | |
933 | } | |
934 | $ret; | |
935 | } \*CAPI; | |
936 | ||
937 | for $sym (sort keys %ppsym) { | |
938 | $sym =~ s/^Perl_//; | |
939 | print CAPI "\n"; | |
940 | print CAPI undefine("Perl_$sym"); | |
941 | if ($sym =~ /^ck_/) { | |
c5be433b | 942 | print CAPI emit_func(0, 'OP *',"Perl_$sym",'OP *o'); |
51371543 GS |
943 | } |
944 | else { # pp_foo | |
c5be433b | 945 | print CAPI emit_func(0, 'OP *',"Perl_$sym"); |
51371543 GS |
946 | } |
947 | } | |
948 | ||
949 | print CAPI <<'EOT'; | |
950 | ||
c5be433b GS |
951 | #undef Perl_fprintf_nocontext |
952 | int | |
953 | Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...) | |
954 | { | |
955 | dTHXo; | |
956 | va_list(arglist); | |
957 | va_start(arglist, format); | |
958 | return (*pPerl->PL_StdIO->pVprintf)(pPerl->PL_StdIO, stream, format, arglist); | |
959 | } | |
960 | ||
51371543 GS |
961 | END_EXTERN_C |
962 | ||
963 | #endif /* PERL_OBJECT */ | |
964 | EOT | |
965 | ||
cea2e8a9 GS |
966 | __END__ |
967 | ||
968 | # Lines are of the form: | |
969 | # flags|return_type|function_name|return_type|arg1|arg2|...|argN | |
970 | # | |
971 | # They may continue on multiple lines when \w| begins the next line. | |
972 | # Leading and trailing whitespace will be ignored in each component. | |
973 | # | |
974 | # flags are single letters with following meanings: | |
975 | # s static function, should have an S_ prefix in source | |
976 | # file | |
977 | # n has no implicit interpreter/thread context argument | |
978 | # p function has a Perl_ prefix | |
979 | # r function never returns | |
980 | # o has no compatibility macro (#define foo Perl_foo) | |
981 | # | |
982 | # Individual flags may be separated by whitespace. | |
983 | # | |
984 | # New global functions should be added at the end for binary compatibility | |
985 | # in some configurations. | |
986 | # | |
987 | # TODO: 1) Add a flag to mark the functions that are part of the public API. | |
988 | # 2) Add a field for documentation, so that L<perlguts/"API LISTING"> | |
989 | # may be autogenerated. | |
990 | # | |
991 | ||
0cb96387 GS |
992 | #if defined(PERL_OBJECT) |
993 | public: | |
994 | #endif | |
cea2e8a9 GS |
995 | p |SV* |amagic_call |SV* left|SV* right|int method|int dir |
996 | p |bool |Gv_AMupdate |HV* stash | |
997 | p |OP* |append_elem |I32 optype|OP* head|OP* tail | |
998 | p |OP* |append_list |I32 optype|LISTOP* first|LISTOP* last | |
999 | p |I32 |apply |I32 type|SV** mark|SV** sp | |
1000 | p |void |assertref |OP* o | |
1001 | p |bool |avhv_exists_ent|AV *ar|SV* keysv|U32 hash | |
1002 | p |SV** |avhv_fetch_ent |AV *ar|SV* keysv|I32 lval|U32 hash | |
1003 | p |HE* |avhv_iternext |AV *ar | |
1004 | p |SV* |avhv_iterval |AV *ar|HE* entry | |
1005 | p |HV* |avhv_keys |AV *ar | |
1006 | p |void |av_clear |AV* ar | |
1007 | p |void |av_extend |AV* ar|I32 key | |
1008 | p |AV* |av_fake |I32 size|SV** svp | |
1009 | p |SV** |av_fetch |AV* ar|I32 key|I32 lval | |
1010 | p |void |av_fill |AV* ar|I32 fill | |
1011 | p |I32 |av_len |AV* ar | |
1012 | p |AV* |av_make |I32 size|SV** svp | |
1013 | p |SV* |av_pop |AV* ar | |
1014 | p |void |av_push |AV* ar|SV* val | |
1015 | p |void |av_reify |AV* ar | |
1016 | p |SV* |av_shift |AV* ar | |
1017 | p |SV** |av_store |AV* ar|I32 key|SV* val | |
1018 | p |void |av_undef |AV* ar | |
1019 | p |void |av_unshift |AV* ar|I32 num | |
1020 | p |OP* |bind_match |I32 type|OP* left|OP* pat | |
1021 | p |OP* |block_end |I32 floor|OP* seq | |
1022 | p |I32 |block_gimme | |
1023 | p |int |block_start |int full | |
1024 | p |void |boot_core_UNIVERSAL | |
1025 | p |void |call_list |I32 oldscope|AV* av_list | |
1026 | p |I32 |cando |I32 bit|I32 effective|Stat_t* statbufp | |
cad2e5aa JH |
1027 | p |U32 |cast_ulong |NV f |
1028 | p |I32 |cast_i32 |NV f | |
1029 | p |IV |cast_iv |NV f | |
1030 | p |UV |cast_uv |NV f | |
cea2e8a9 GS |
1031 | #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP) |
1032 | p |I32 |my_chsize |int fd|Off_t length | |
1033 | #endif | |
1034 | #if defined(USE_THREADS) | |
1035 | p |MAGIC* |condpair_magic |SV *sv | |
1036 | #endif | |
1037 | p |OP* |convert |I32 optype|I32 flags|OP* o | |
1038 | pr |void |croak |const char* pat|... | |
c5be433b | 1039 | pr |void |vcroak |const char* pat|va_list* args |
cea2e8a9 GS |
1040 | #if defined(PERL_IMPLICIT_CONTEXT) |
1041 | npr |void |croak_nocontext|const char* pat|... | |
1042 | np |OP* |die_nocontext |const char* pat|... | |
c5be433b | 1043 | np |void |deb_nocontext |const char* pat|... |
cea2e8a9 GS |
1044 | np |char* |form_nocontext |const char* pat|... |
1045 | np |void |warn_nocontext |const char* pat|... | |
c5be433b | 1046 | np |void |warner_nocontext|U32 err|const char* pat|... |
cea2e8a9 GS |
1047 | np |SV* |newSVpvf_nocontext|const char* pat|... |
1048 | np |void |sv_catpvf_nocontext|SV* sv|const char* pat|... | |
1049 | np |void |sv_setpvf_nocontext|SV* sv|const char* pat|... | |
1050 | np |void |sv_catpvf_mg_nocontext|SV* sv|const char* pat|... | |
1051 | np |void |sv_setpvf_mg_nocontext|SV* sv|const char* pat|... | |
c5be433b | 1052 | np |int |fprintf_nocontext|PerlIO* stream|const char* fmt|... |
cea2e8a9 GS |
1053 | #endif |
1054 | p |void |cv_ckproto |CV* cv|GV* gv|char* p | |
1055 | p |CV* |cv_clone |CV* proto | |
1056 | p |SV* |cv_const_sv |CV* cv | |
1057 | p |SV* |op_const_sv |OP* o|CV* cv | |
1058 | p |void |cv_undef |CV* cv | |
1059 | p |void |cx_dump |PERL_CONTEXT* cs | |
1060 | p |SV* |filter_add |filter_t funcp|SV* datasv | |
1061 | p |void |filter_del |filter_t funcp | |
1062 | p |I32 |filter_read |int idx|SV* buffer|int maxlen | |
1063 | p |char** |get_op_descs | |
1064 | p |char** |get_op_names | |
1065 | p |char* |get_no_modify | |
1066 | p |U32* |get_opargs | |
0cb96387 | 1067 | p |PPADDR_t*|get_ppaddr |
cea2e8a9 GS |
1068 | p |I32 |cxinc |
1069 | p |void |deb |const char* pat|... | |
c5be433b | 1070 | p |void |vdeb |const char* pat|va_list* args |
cea2e8a9 GS |
1071 | p |void |deb_growlevel |
1072 | p |void |debprofdump | |
1073 | p |I32 |debop |OP* o | |
1074 | p |I32 |debstack | |
1075 | p |I32 |debstackptrs | |
1076 | p |char* |delimcpy |char* to|char* toend|char* from \ | |
1077 | |char* fromend|int delim|I32* retlen | |
1078 | p |void |deprecate |char* s | |
1079 | p |OP* |die |const char* pat|... | |
c5be433b | 1080 | p |OP* |vdie |const char* pat|va_list* args |
cea2e8a9 GS |
1081 | p |OP* |die_where |char* message|STRLEN msglen |
1082 | p |void |dounwind |I32 cxix | |
1083 | p |bool |do_aexec |SV* really|SV** mark|SV** sp | |
d5a9bfb0 | 1084 | p |bool |do_aexec5 |SV* really|SV** mark|SV** sp|int fd|int flag |
cea2e8a9 GS |
1085 | p |int |do_binmode |PerlIO *fp|int iotype|int flag |
1086 | p |void |do_chop |SV* asv|SV* sv | |
1087 | p |bool |do_close |GV* gv|bool not_implicit | |
1088 | p |bool |do_eof |GV* gv | |
1089 | p |bool |do_exec |char* cmd | |
1090 | #if !defined(WIN32) | |
1091 | p |bool |do_exec3 |char* cmd|int fd|int flag | |
1092 | #endif | |
1093 | p |void |do_execfree | |
1094 | #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM) | |
1095 | p |I32 |do_ipcctl |I32 optype|SV** mark|SV** sp | |
1096 | p |I32 |do_ipcget |I32 optype|SV** mark|SV** sp | |
1097 | p |I32 |do_msgrcv |SV** mark|SV** sp | |
1098 | p |I32 |do_msgsnd |SV** mark|SV** sp | |
1099 | p |I32 |do_semop |SV** mark|SV** sp | |
1100 | p |I32 |do_shmio |I32 optype|SV** mark|SV** sp | |
1101 | #endif | |
1102 | p |void |do_join |SV* sv|SV* del|SV** mark|SV** sp | |
1103 | p |OP* |do_kv | |
1104 | p |bool |do_open |GV* gv|char* name|I32 len|int as_raw \ | |
1105 | |int rawmode|int rawperm|PerlIO* supplied_fp | |
1106 | p |void |do_pipe |SV* sv|GV* rgv|GV* wgv | |
1107 | p |bool |do_print |SV* sv|PerlIO* fp | |
1108 | p |OP* |do_readline | |
1109 | p |I32 |do_chomp |SV* sv | |
1110 | p |bool |do_seek |GV* gv|Off_t pos|int whence | |
1111 | p |void |do_sprintf |SV* sv|I32 len|SV** sarg | |
1112 | p |Off_t |do_sysseek |GV* gv|Off_t pos|int whence | |
1113 | p |Off_t |do_tell |GV* gv | |
1114 | p |I32 |do_trans |SV* sv | |
1115 | p |void |do_vecset |SV* sv | |
1116 | p |void |do_vop |I32 optype|SV* sv|SV* left|SV* right | |
1117 | p |OP* |dofile |OP* term | |
1118 | p |I32 |dowantarray | |
1119 | p |void |dump_all | |
1120 | p |void |dump_eval | |
1121 | #if defined(DUMP_FDS) | |
1122 | p |void |dump_fds |char* s | |
1123 | #endif | |
1124 | p |void |dump_form |GV* gv | |
1125 | p |void |gv_dump |GV* gv | |
1126 | p |void |op_dump |OP* arg | |
1127 | p |void |pmop_dump |PMOP* pm | |
1128 | p |void |dump_packsubs |HV* stash | |
1129 | p |void |dump_sub |GV* gv | |
1130 | p |void |fbm_compile |SV* sv|U32 flags | |
1131 | p |char* |fbm_instr |unsigned char* big|unsigned char* bigend \ | |
1132 | |SV* littlesv|U32 flags | |
1133 | p |char* |find_script |char *scriptname|bool dosearch \ | |
1134 | |char **search_ext|I32 flags | |
1135 | #if defined(USE_THREADS) | |
1136 | p |PADOFFSET|find_threadsv|const char *name | |
1137 | #endif | |
1138 | p |OP* |force_list |OP* arg | |
1139 | p |OP* |fold_constants |OP* arg | |
1140 | p |char* |form |const char* pat|... | |
c5be433b | 1141 | p |char* |vform |const char* pat|va_list* args |
cea2e8a9 GS |
1142 | p |void |free_tmps |
1143 | p |OP* |gen_constant_list|OP* o | |
1144 | #if !defined(HAS_GETENV_LEN) | |
1145 | p |char* |getenv_len |char* key|unsigned long *len | |
1146 | #endif | |
1147 | p |void |gp_free |GV* gv | |
1148 | p |GP* |gp_ref |GP* gp | |
1149 | p |GV* |gv_AVadd |GV* gv | |
1150 | p |GV* |gv_HVadd |GV* gv | |
1151 | p |GV* |gv_IOadd |GV* gv | |
1152 | p |GV* |gv_autoload4 |HV* stash|const char* name|STRLEN len \ | |
1153 | |I32 method | |
1154 | p |void |gv_check |HV* stash | |
1155 | p |void |gv_efullname |SV* sv|GV* gv | |
1156 | p |void |gv_efullname3 |SV* sv|GV* gv|const char* prefix | |
1157 | p |GV* |gv_fetchfile |const char* name | |
1158 | p |GV* |gv_fetchmeth |HV* stash|const char* name|STRLEN len \ | |
1159 | |I32 level | |
1160 | p |GV* |gv_fetchmethod |HV* stash|const char* name | |
1161 | p |GV* |gv_fetchmethod_autoload|HV* stash|const char* name \ | |
1162 | |I32 autoload | |
1163 | p |GV* |gv_fetchpv |const char* name|I32 add|I32 sv_type | |
1164 | p |void |gv_fullname |SV* sv|GV* gv | |
1165 | p |void |gv_fullname3 |SV* sv|GV* gv|const char* prefix | |
1166 | p |void |gv_init |GV* gv|HV* stash|const char* name \ | |
1167 | |STRLEN len|int multi | |
1168 | p |HV* |gv_stashpv |const char* name|I32 create | |
1169 | p |HV* |gv_stashpvn |const char* name|U32 namelen|I32 create | |
1170 | p |HV* |gv_stashsv |SV* sv|I32 create | |
1171 | p |void |hv_clear |HV* tb | |
1172 | p |void |hv_delayfree_ent|HV* hv|HE* entry | |
1173 | p |SV* |hv_delete |HV* tb|const char* key|U32 klen|I32 flags | |
1174 | p |SV* |hv_delete_ent |HV* tb|SV* key|I32 flags|U32 hash | |
1175 | p |bool |hv_exists |HV* tb|const char* key|U32 klen | |
1176 | p |bool |hv_exists_ent |HV* tb|SV* key|U32 hash | |
1177 | p |SV** |hv_fetch |HV* tb|const char* key|U32 klen|I32 lval | |
1178 | p |HE* |hv_fetch_ent |HV* tb|SV* key|I32 lval|U32 hash | |
1179 | p |void |hv_free_ent |HV* hv|HE* entry | |
1180 | p |I32 |hv_iterinit |HV* tb | |
1181 | p |char* |hv_iterkey |HE* entry|I32* retlen | |
1182 | p |SV* |hv_iterkeysv |HE* entry | |
1183 | p |HE* |hv_iternext |HV* tb | |
1184 | p |SV* |hv_iternextsv |HV* hv|char** key|I32* retlen | |
1185 | p |SV* |hv_iterval |HV* tb|HE* entry | |
1186 | p |void |hv_ksplit |HV* hv|IV newmax | |
1187 | p |void |hv_magic |HV* hv|GV* gv|int how | |
1188 | p |SV** |hv_store |HV* tb|const char* key|U32 klen|SV* val \ | |
1189 | |U32 hash | |
1190 | p |HE* |hv_store_ent |HV* tb|SV* key|SV* val|U32 hash | |
1191 | p |void |hv_undef |HV* tb | |
1192 | p |I32 |ibcmp |const char* a|const char* b|I32 len | |
1193 | p |I32 |ibcmp_locale |const char* a|const char* b|I32 len | |
1194 | p |I32 |ingroup |I32 testgid|I32 effective | |
1ee4443e | 1195 | p |void |init_debugger |
cea2e8a9 GS |
1196 | p |void |init_stacks |
1197 | p |U32 |intro_my | |
1198 | p |char* |instr |const char* big|const char* little | |
f2b5be74 | 1199 | p |bool |io_close |IO* io|bool not_implicit |
cea2e8a9 GS |
1200 | p |OP* |invert |OP* cmd |
1201 | p |bool |is_uni_alnum |U32 c | |
b8c5462f | 1202 | p |bool |is_uni_alnumc |U32 c |
cea2e8a9 GS |
1203 | p |bool |is_uni_idfirst |U32 c |
1204 | p |bool |is_uni_alpha |U32 c | |
b8c5462f | 1205 | p |bool |is_uni_ascii |U32 c |
cea2e8a9 | 1206 | p |bool |is_uni_space |U32 c |
b8c5462f JH |
1207 | p |bool |is_uni_cntrl |U32 c |
1208 | p |bool |is_uni_graph |U32 c | |
cea2e8a9 GS |
1209 | p |bool |is_uni_digit |U32 c |
1210 | p |bool |is_uni_upper |U32 c | |
1211 | p |bool |is_uni_lower |U32 c | |
1212 | p |bool |is_uni_print |U32 c | |
b8c5462f JH |
1213 | p |bool |is_uni_punct |U32 c |
1214 | p |bool |is_uni_xdigit |U32 c | |
cea2e8a9 GS |
1215 | p |U32 |to_uni_upper |U32 c |
1216 | p |U32 |to_uni_title |U32 c | |
1217 | p |U32 |to_uni_lower |U32 c | |
1218 | p |bool |is_uni_alnum_lc|U32 c | |
b8c5462f | 1219 | p |bool |is_uni_alnumc_lc|U32 c |
cea2e8a9 GS |
1220 | p |bool |is_uni_idfirst_lc|U32 c |
1221 | p |bool |is_uni_alpha_lc|U32 c | |
b8c5462f | 1222 | p |bool |is_uni_ascii_lc|U32 c |
cea2e8a9 | 1223 | p |bool |is_uni_space_lc|U32 c |
b8c5462f JH |
1224 | p |bool |is_uni_cntrl_lc|U32 c |
1225 | p |bool |is_uni_graph_lc|U32 c | |
cea2e8a9 GS |
1226 | p |bool |is_uni_digit_lc|U32 c |
1227 | p |bool |is_uni_upper_lc|U32 c | |
1228 | p |bool |is_uni_lower_lc|U32 c | |
1229 | p |bool |is_uni_print_lc|U32 c | |
b8c5462f JH |
1230 | p |bool |is_uni_punct_lc|U32 c |
1231 | p |bool |is_uni_xdigit_lc|U32 c | |
cea2e8a9 GS |
1232 | p |U32 |to_uni_upper_lc|U32 c |
1233 | p |U32 |to_uni_title_lc|U32 c | |
1234 | p |U32 |to_uni_lower_lc|U32 c | |
1235 | p |bool |is_utf8_alnum |U8 *p | |
b8c5462f | 1236 | p |bool |is_utf8_alnumc |U8 *p |
cea2e8a9 GS |
1237 | p |bool |is_utf8_idfirst|U8 *p |
1238 | p |bool |is_utf8_alpha |U8 *p | |
b8c5462f | 1239 | p |bool |is_utf8_ascii |U8 *p |
cea2e8a9 | 1240 | p |bool |is_utf8_space |U8 *p |
b8c5462f | 1241 | p |bool |is_utf8_cntrl |U8 *p |
cea2e8a9 | 1242 | p |bool |is_utf8_digit |U8 *p |
b8c5462f | 1243 | p |bool |is_utf8_graph |U8 *p |
cea2e8a9 GS |
1244 | p |bool |is_utf8_upper |U8 *p |
1245 | p |bool |is_utf8_lower |U8 *p | |
1246 | p |bool |is_utf8_print |U8 *p | |
b8c5462f JH |
1247 | p |bool |is_utf8_punct |U8 *p |
1248 | p |bool |is_utf8_xdigit |U8 *p | |
cea2e8a9 GS |
1249 | p |bool |is_utf8_mark |U8 *p |
1250 | p |OP* |jmaybe |OP* arg | |
1251 | p |I32 |keyword |char* d|I32 len | |
1252 | p |void |leave_scope |I32 base | |
1253 | p |void |lex_end | |
1254 | p |void |lex_start |SV* line | |
1255 | p |OP* |linklist |OP* o | |
1256 | p |OP* |list |OP* o | |
1257 | p |OP* |listkids |OP* o | |
1258 | p |OP* |localize |OP* arg|I32 lexical | |
1259 | p |I32 |looks_like_number|SV* sv | |
1260 | p |int |magic_clearenv |SV* sv|MAGIC* mg | |
1261 | p |int |magic_clear_all_env|SV* sv|MAGIC* mg | |
1262 | p |int |magic_clearpack|SV* sv|MAGIC* mg | |
1263 | p |int |magic_clearsig |SV* sv|MAGIC* mg | |
1264 | p |int |magic_existspack|SV* sv|MAGIC* mg | |
1265 | p |int |magic_freeregexp|SV* sv|MAGIC* mg | |
1266 | p |int |magic_get |SV* sv|MAGIC* mg | |
1267 | p |int |magic_getarylen|SV* sv|MAGIC* mg | |
1268 | p |int |magic_getdefelem|SV* sv|MAGIC* mg | |
1269 | p |int |magic_getglob |SV* sv|MAGIC* mg | |
1270 | p |int |magic_getnkeys |SV* sv|MAGIC* mg | |
1271 | p |int |magic_getpack |SV* sv|MAGIC* mg | |
1272 | p |int |magic_getpos |SV* sv|MAGIC* mg | |
1273 | p |int |magic_getsig |SV* sv|MAGIC* mg | |
1274 | p |int |magic_getsubstr|SV* sv|MAGIC* mg | |
1275 | p |int |magic_gettaint |SV* sv|MAGIC* mg | |
1276 | p |int |magic_getuvar |SV* sv|MAGIC* mg | |
1277 | p |int |magic_getvec |SV* sv|MAGIC* mg | |
1278 | p |U32 |magic_len |SV* sv|MAGIC* mg | |
1279 | #if defined(USE_THREADS) | |
1280 | p |int |magic_mutexfree|SV* sv|MAGIC* mg | |
1281 | #endif | |
1282 | p |int |magic_nextpack |SV* sv|MAGIC* mg|SV* key | |
1283 | p |U32 |magic_regdata_cnt|SV* sv|MAGIC* mg | |
1284 | p |int |magic_regdatum_get|SV* sv|MAGIC* mg | |
1285 | p |int |magic_set |SV* sv|MAGIC* mg | |
1286 | p |int |magic_setamagic|SV* sv|MAGIC* mg | |
1287 | p |int |magic_setarylen|SV* sv|MAGIC* mg | |
1288 | p |int |magic_setbm |SV* sv|MAGIC* mg | |
1289 | p |int |magic_setdbline|SV* sv|MAGIC* mg | |
1290 | #if defined(USE_LOCALE_COLLATE) | |
1291 | p |int |magic_setcollxfrm|SV* sv|MAGIC* mg | |
1292 | #endif | |
1293 | p |int |magic_setdefelem|SV* sv|MAGIC* mg | |
1294 | p |int |magic_setenv |SV* sv|MAGIC* mg | |
1295 | p |int |magic_setfm |SV* sv|MAGIC* mg | |
1296 | p |int |magic_setisa |SV* sv|MAGIC* mg | |
1297 | p |int |magic_setglob |SV* sv|MAGIC* mg | |
1298 | p |int |magic_setmglob |SV* sv|MAGIC* mg | |
1299 | p |int |magic_setnkeys |SV* sv|MAGIC* mg | |
1300 | p |int |magic_setpack |SV* sv|MAGIC* mg | |
1301 | p |int |magic_setpos |SV* sv|MAGIC* mg | |
1302 | p |int |magic_setsig |SV* sv|MAGIC* mg | |
1303 | p |int |magic_setsubstr|SV* sv|MAGIC* mg | |
1304 | p |int |magic_settaint |SV* sv|MAGIC* mg | |
1305 | p |int |magic_setuvar |SV* sv|MAGIC* mg | |
1306 | p |int |magic_setvec |SV* sv|MAGIC* mg | |
1307 | p |int |magic_set_all_env|SV* sv|MAGIC* mg | |
1308 | p |U32 |magic_sizepack |SV* sv|MAGIC* mg | |
1309 | p |int |magic_wipepack |SV* sv|MAGIC* mg | |
1310 | p |void |magicname |char* sym|char* name|I32 namlen | |
cea2e8a9 GS |
1311 | #if defined(MYMALLOC) |
1312 | np |MEM_SIZE|malloced_size |void *p | |
1313 | #endif | |
1314 | p |void |markstack_grow | |
1315 | #if defined(USE_LOCALE_COLLATE) | |
1316 | p |char* |mem_collxfrm |const char* s|STRLEN len|STRLEN* xlen | |
1317 | #endif | |
1318 | p |SV* |mess |const char* pat|va_list* args | |
1319 | p |int |mg_clear |SV* sv | |
1320 | p |int |mg_copy |SV* sv|SV* nsv|const char* key|I32 klen | |
1321 | p |MAGIC* |mg_find |SV* sv|int type | |
1322 | p |int |mg_free |SV* sv | |
1323 | p |int |mg_get |SV* sv | |
1324 | p |U32 |mg_length |SV* sv | |
1325 | p |void |mg_magical |SV* sv | |
1326 | p |int |mg_set |SV* sv | |
1327 | p |I32 |mg_size |SV* sv | |
1328 | p |OP* |mod |OP* o|I32 type | |
1329 | p |char* |moreswitches |char* s | |
1330 | p |OP* |my |OP* o | |
cad2e5aa | 1331 | p |NV |my_atof |const char *s |
cea2e8a9 GS |
1332 | #if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY) |
1333 | p |char* |my_bcopy |const char* from|char* to|I32 len | |
1334 | #endif | |
1335 | #if !defined(HAS_BZERO) && !defined(HAS_MEMSET) | |
1336 | p |char* |my_bzero |char* loc|I32 len | |
1337 | #endif | |
1338 | pr |void |my_exit |U32 status | |
1339 | pr |void |my_failure_exit | |
1340 | p |I32 |my_fflush_all | |
1341 | p |I32 |my_lstat | |
1342 | #if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP) | |
1343 | p |I32 |my_memcmp |const char* s1|const char* s2|I32 len | |
1344 | #endif | |
1345 | #if !defined(HAS_MEMSET) | |
1346 | p |void* |my_memset |char* loc|I32 ch|I32 len | |
1347 | #endif | |
1348 | #if !defined(PERL_OBJECT) | |
1349 | p |I32 |my_pclose |PerlIO* ptr | |
1350 | p |PerlIO*|my_popen |char* cmd|char* mode | |
1351 | #endif | |
1352 | p |void |my_setenv |char* nam|char* val | |
1353 | p |I32 |my_stat | |
1354 | #if defined(MYSWAP) | |
1355 | p |short |my_swap |short s | |
1356 | p |long |my_htonl |long l | |
1357 | p |long |my_ntohl |long l | |
1358 | #endif | |
1359 | p |void |my_unexec | |
1360 | p |OP* |newANONLIST |OP* o | |
1361 | p |OP* |newANONHASH |OP* o | |
1362 | p |OP* |newANONSUB |I32 floor|OP* proto|OP* block | |
1363 | p |OP* |newASSIGNOP |I32 flags|OP* left|I32 optype|OP* right | |
1364 | p |OP* |newCONDOP |I32 flags|OP* expr|OP* trueop|OP* falseop | |
1365 | p |void |newCONSTSUB |HV* stash|char* name|SV* sv | |
1366 | p |void |newFORM |I32 floor|OP* o|OP* block | |
1367 | p |OP* |newFOROP |I32 flags|char* label|line_t forline \ | |
1368 | |OP* sclr|OP* expr|OP*block|OP*cont | |
1369 | p |OP* |newLOGOP |I32 optype|I32 flags|OP* left|OP* right | |
1370 | p |OP* |newLOOPEX |I32 type|OP* label | |
1371 | p |OP* |newLOOPOP |I32 flags|I32 debuggable|OP* expr|OP* block | |
1372 | p |OP* |newNULLLIST | |
1373 | p |OP* |newOP |I32 optype|I32 flags | |
1374 | p |void |newPROG |OP* o | |
1375 | p |OP* |newRANGE |I32 flags|OP* left|OP* right | |
1376 | p |OP* |newSLICEOP |I32 flags|OP* subscript|OP* listop | |
1377 | p |OP* |newSTATEOP |I32 flags|char* label|OP* o | |
1378 | p |CV* |newSUB |I32 floor|OP* o|OP* proto|OP* block | |
1379 | p |CV* |newXS |char* name|XSUBADDR_t f|char* filename | |
1380 | p |AV* |newAV | |
1381 | p |OP* |newAVREF |OP* o | |
1382 | p |OP* |newBINOP |I32 type|I32 flags|OP* first|OP* last | |
1383 | p |OP* |newCVREF |I32 flags|OP* o | |
1384 | p |OP* |newGVOP |I32 type|I32 flags|GV* gv | |
1385 | p |GV* |newGVgen |char* pack | |
1386 | p |OP* |newGVREF |I32 type|OP* o | |
1387 | p |OP* |newHVREF |OP* o | |
1388 | p |HV* |newHV | |
1389 | p |HV* |newHVhv |HV* hv | |
1390 | p |IO* |newIO | |
1391 | p |OP* |newLISTOP |I32 type|I32 flags|OP* first|OP* last | |
1392 | p |OP* |newPMOP |I32 type|I32 flags | |
1393 | p |OP* |newPVOP |I32 type|I32 flags|char* pv | |
1394 | p |SV* |newRV |SV* pref | |
1395 | p |SV* |newRV_noinc |SV *sv | |
1396 | p |SV* |newSV |STRLEN len | |
1397 | p |OP* |newSVREF |OP* o | |
1398 | p |OP* |newSVOP |I32 type|I32 flags|SV* sv | |
1399 | p |SV* |newSViv |IV i | |
cad2e5aa | 1400 | p |SV* |newSVnv |NV n |
cea2e8a9 GS |
1401 | p |SV* |newSVpv |const char* s|STRLEN len |
1402 | p |SV* |newSVpvn |const char* s|STRLEN len | |
1403 | p |SV* |newSVpvf |const char* pat|... | |
c5be433b | 1404 | p |SV* |vnewSVpvf |const char* pat|va_list* args |
cea2e8a9 GS |
1405 | p |SV* |newSVrv |SV* rv|const char* classname |
1406 | p |SV* |newSVsv |SV* old | |
1407 | p |OP* |newUNOP |I32 type|I32 flags|OP* first | |
1408 | p |OP* |newWHILEOP |I32 flags|I32 debuggable|LOOP* loop \ | |
1409 | |I32 whileline|OP* expr|OP* block|OP* cont | |
c5be433b | 1410 | |
cea2e8a9 GS |
1411 | p |PERL_SI*|new_stackinfo|I32 stitems|I32 cxitems |
1412 | p |PerlIO*|nextargv |GV* gv | |
1413 | p |char* |ninstr |const char* big|const char* bigend \ | |
1414 | |const char* little|const char* lend | |
1415 | p |OP* |oopsCV |OP* o | |
1416 | p |void |op_free |OP* arg | |
1417 | p |void |package |OP* o | |
1418 | p |PADOFFSET|pad_alloc |I32 optype|U32 tmptype | |
1419 | p |PADOFFSET|pad_allocmy |char* name | |
1420 | p |PADOFFSET|pad_findmy |char* name | |
1421 | p |OP* |oopsAV |OP* o | |
1422 | p |OP* |oopsHV |OP* o | |
1423 | p |void |pad_leavemy |I32 fill | |
1424 | p |SV* |pad_sv |PADOFFSET po | |
1425 | p |void |pad_free |PADOFFSET po | |
1426 | p |void |pad_reset | |
1427 | p |void |pad_swipe |PADOFFSET po | |
1428 | p |void |peep |OP* o | |
0cb96387 GS |
1429 | #if defined(PERL_OBJECT) |
1430 | no |void |perl_construct | |
1431 | no |void |perl_destruct | |
1432 | no |void |perl_free | |
1433 | no |int |perl_run | |
1434 | no |int |perl_parse |XSINIT_t xsinit \ | |
1435 | |int argc|char** argv|char** env | |
1436 | #else | |
cea2e8a9 | 1437 | no |PerlInterpreter* |perl_alloc |
0cb96387 GS |
1438 | no |void |perl_construct |PerlInterpreter* sv_interp |
1439 | no |void |perl_destruct |PerlInterpreter* sv_interp | |
1440 | no |void |perl_free |PerlInterpreter* sv_interp | |
1441 | no |int |perl_run |PerlInterpreter* sv_interp | |
1442 | no |int |perl_parse |PerlInterpreter* sv_interp|XSINIT_t xsinit \ | |
1443 | |int argc|char** argv|char** env | |
c5be433b GS |
1444 | #if defined(USE_THREADS) |
1445 | p |struct perl_thread* |new_struct_thread|struct perl_thread *t | |
1446 | #endif | |
0cb96387 | 1447 | #endif |
cea2e8a9 GS |
1448 | p |void |call_atexit |ATEXIT_t fn|void *ptr |
1449 | p |I32 |call_argv |const char* sub_name|I32 flags|char** argv | |
1450 | p |I32 |call_method |const char* methname|I32 flags | |
1451 | p |I32 |call_pv |const char* sub_name|I32 flags | |
1452 | p |I32 |call_sv |SV* sv|I32 flags | |
cea2e8a9 GS |
1453 | p |SV* |eval_pv |const char* p|I32 croak_on_error |
1454 | p |I32 |eval_sv |SV* sv|I32 flags | |
cea2e8a9 GS |
1455 | p |SV* |get_sv |const char* name|I32 create |
1456 | p |AV* |get_av |const char* name|I32 create | |
1457 | p |HV* |get_hv |const char* name|I32 create | |
1458 | p |CV* |get_cv |const char* name|I32 create | |
1459 | p |int |init_i18nl10n |int printwarn | |
1460 | p |int |init_i18nl14n |int printwarn | |
1461 | p |void |new_collate |const char* newcoll | |
1462 | p |void |new_ctype |const char* newctype | |
1463 | p |void |new_numeric |const char* newcoll | |
1464 | p |void |set_numeric_local | |
097ee67d | 1465 | p |void |set_numeric_radix |
cea2e8a9 | 1466 | p |void |set_numeric_standard |
cea2e8a9 | 1467 | p |void |require_pv |const char* pv |
cea2e8a9 GS |
1468 | p |void |pidgone |int pid|int status |
1469 | p |void |pmflag |U16* pmfl|int ch | |
1470 | p |OP* |pmruntime |OP* pm|OP* expr|OP* repl | |
1471 | p |OP* |pmtrans |OP* o|OP* expr|OP* repl | |
1472 | p |OP* |pop_return | |
1473 | p |void |pop_scope | |
1474 | p |OP* |prepend_elem |I32 optype|OP* head|OP* tail | |
1475 | p |void |push_return |OP* o | |
1476 | p |void |push_scope | |
1477 | p |OP* |ref |OP* o|I32 type | |
1478 | p |OP* |refkids |OP* o|I32 type | |
1479 | p |void |regdump |regexp* r | |
1480 | p |I32 |pregexec |regexp* prog|char* stringarg \ | |
1481 | |char* strend|char* strbeg|I32 minend \ | |
1482 | |SV* screamer|U32 nosave | |
1483 | p |void |pregfree |struct regexp* r | |
1484 | p |regexp*|pregcomp |char* exp|char* xend|PMOP* pm | |
cad2e5aa JH |
1485 | p |char* |re_intuit_start|regexp* prog|SV* sv|char* strpos \ |
1486 | |char* strend|U32 flags \ | |
1487 | |struct re_scream_pos_data_s *data | |
1488 | p |SV* |re_intuit_string|regexp* prog | |
cea2e8a9 GS |
1489 | p |I32 |regexec_flags |regexp* prog|char* stringarg \ |
1490 | |char* strend|char* strbeg|I32 minend \ | |
1491 | |SV* screamer|void* data|U32 flags | |
1492 | p |regnode*|regnext |regnode* p | |
1493 | p |void |regprop |SV* sv|regnode* o | |
1494 | p |void |repeatcpy |char* to|const char* from|I32 len|I32 count | |
1495 | p |char* |rninstr |const char* big|const char* bigend \ | |
1496 | |const char* little|const char* lend | |
1497 | p |Sighandler_t|rsignal |int i|Sighandler_t t | |
1498 | p |int |rsignal_restore|int i|Sigsave_t* t | |
1499 | p |int |rsignal_save |int i|Sighandler_t t1|Sigsave_t* t2 | |
1500 | p |Sighandler_t|rsignal_state|int i | |
1501 | p |void |rxres_free |void** rsp | |
1502 | p |void |rxres_restore |void** rsp|REGEXP* prx | |
1503 | p |void |rxres_save |void** rsp|REGEXP* prx | |
1504 | #if !defined(HAS_RENAME) | |
1505 | p |I32 |same_dirent |char* a|char* b | |
1506 | #endif | |
1507 | p |char* |savepv |const char* sv | |
1508 | p |char* |savepvn |const char* sv|I32 len | |
1509 | p |void |savestack_grow | |
1510 | p |void |save_aelem |AV* av|I32 idx|SV **sptr | |
1511 | p |I32 |save_alloc |I32 size|I32 pad | |
1512 | p |void |save_aptr |AV** aptr | |
1513 | p |AV* |save_ary |GV* gv | |
1514 | p |void |save_clearsv |SV** svp | |
1515 | p |void |save_delete |HV* hv|char* key|I32 klen | |
1516 | p |void |save_destructor|DESTRUCTORFUNC_t f|void* p | |
1517 | p |void |save_freesv |SV* sv | |
1518 | p |void |save_freeop |OP* o | |
1519 | p |void |save_freepv |char* pv | |
1520 | p |void |save_generic_svref|SV** sptr | |
1521 | p |void |save_gp |GV* gv|I32 empty | |
1522 | p |HV* |save_hash |GV* gv | |
1523 | p |void |save_helem |HV* hv|SV *key|SV **sptr | |
1524 | p |void |save_hints | |
1525 | p |void |save_hptr |HV** hptr | |
1526 | p |void |save_I16 |I16* intp | |
1527 | p |void |save_I32 |I32* intp | |
1528 | p |void |save_int |int* intp | |
1529 | p |void |save_item |SV* item | |
1530 | p |void |save_iv |IV* iv | |
1531 | p |void |save_list |SV** sarg|I32 maxsarg | |
1532 | p |void |save_long |long* longp | |
1533 | p |void |save_nogv |GV* gv | |
1534 | p |void |save_op | |
1535 | p |SV* |save_scalar |GV* gv | |
1536 | p |void |save_pptr |char** pptr | |
1537 | p |void |save_re_context | |
1538 | p |void |save_sptr |SV** sptr | |
1539 | p |SV* |save_svref |SV** sptr | |
1540 | p |SV** |save_threadsv |PADOFFSET i | |
1541 | p |OP* |sawparens |OP* o | |
1542 | p |OP* |scalar |OP* o | |
1543 | p |OP* |scalarkids |OP* o | |
1544 | p |OP* |scalarseq |OP* o | |
1545 | p |OP* |scalarvoid |OP* o | |
1546 | p |UV |scan_bin |char* start|I32 len|I32* retlen | |
1547 | p |UV |scan_hex |char* start|I32 len|I32* retlen | |
1548 | p |char* |scan_num |char* s | |
1549 | p |UV |scan_oct |char* start|I32 len|I32* retlen | |
1550 | p |OP* |scope |OP* o | |
1551 | p |char* |screaminstr |SV* bigsv|SV* littlesv|I32 start_shift \ | |
1552 | |I32 end_shift|I32 *state|I32 last | |
1553 | #if !defined(VMS) | |
1554 | p |I32 |setenv_getix |char* nam | |
1555 | #endif | |
1556 | p |void |setdefout |GV* gv | |
1557 | p |char* |sharepvn |const char* sv|I32 len|U32 hash | |
1558 | p |HEK* |share_hek |const char* sv|I32 len|U32 hash | |
1559 | np |Signal_t |sighandler |int sig | |
1560 | p |SV** |stack_grow |SV** sp|SV**p|int n | |
1561 | p |I32 |start_subparse |I32 is_format|U32 flags | |
1562 | p |void |sub_crush_depth|CV* cv | |
1563 | p |bool |sv_2bool |SV* sv | |
1564 | p |CV* |sv_2cv |SV* sv|HV** st|GV** gvp|I32 lref | |
1565 | p |IO* |sv_2io |SV* sv | |
1566 | p |IV |sv_2iv |SV* sv | |
1567 | p |SV* |sv_2mortal |SV* sv | |
cad2e5aa | 1568 | p |NV |sv_2nv |SV* sv |
cea2e8a9 GS |
1569 | p |char* |sv_2pv |SV* sv|STRLEN* lp |
1570 | p |UV |sv_2uv |SV* sv | |
1571 | p |IV |sv_iv |SV* sv | |
1572 | p |UV |sv_uv |SV* sv | |
cad2e5aa | 1573 | p |NV |sv_nv |SV* sv |
cea2e8a9 GS |
1574 | p |char* |sv_pvn |SV *sv|STRLEN *len |
1575 | p |I32 |sv_true |SV *sv | |
1576 | p |void |sv_add_arena |char* ptr|U32 size|U32 flags | |
1577 | p |int |sv_backoff |SV* sv | |
1578 | p |SV* |sv_bless |SV* sv|HV* stash | |
1579 | p |void |sv_catpvf |SV* sv|const char* pat|... | |
c5be433b | 1580 | p |void |sv_vcatpvf |SV* sv|const char* pat|va_list* args |
cea2e8a9 GS |
1581 | p |void |sv_catpv |SV* sv|const char* ptr |
1582 | p |void |sv_catpvn |SV* sv|const char* ptr|STRLEN len | |
1583 | p |void |sv_catsv |SV* dsv|SV* ssv | |
1584 | p |void |sv_chop |SV* sv|char* ptr | |
1585 | p |void |sv_clean_all | |
1586 | p |void |sv_clean_objs | |
1587 | p |void |sv_clear |SV* sv | |
1588 | p |I32 |sv_cmp |SV* sv1|SV* sv2 | |
1589 | p |I32 |sv_cmp_locale |SV* sv1|SV* sv2 | |
1590 | #if defined(USE_LOCALE_COLLATE) | |
1591 | p |char* |sv_collxfrm |SV* sv|STRLEN* nxp | |
1592 | #endif | |
1593 | p |OP* |sv_compile_2op |SV* sv|OP** startp|char* code|AV** avp | |
1594 | p |void |sv_dec |SV* sv | |
1595 | p |void |sv_dump |SV* sv | |
1596 | p |bool |sv_derived_from|SV* sv|const char* name | |
1597 | p |I32 |sv_eq |SV* sv1|SV* sv2 | |
1598 | p |void |sv_free |SV* sv | |
1599 | p |void |sv_free_arenas | |
1600 | p |char* |sv_gets |SV* sv|PerlIO* fp|I32 append | |
1601 | p |char* |sv_grow |SV* sv|STRLEN newlen | |
1602 | p |void |sv_inc |SV* sv | |
1603 | p |void |sv_insert |SV* bigsv|STRLEN offset|STRLEN len \ | |
1604 | |char* little|STRLEN littlelen | |
1605 | p |int |sv_isa |SV* sv|const char* name | |
1606 | p |int |sv_isobject |SV* sv | |
1607 | p |STRLEN |sv_len |SV* sv | |
1608 | p |STRLEN |sv_len_utf8 |SV* sv | |
1609 | p |void |sv_magic |SV* sv|SV* obj|int how|const char* name \ | |
1610 | |I32 namlen | |
1611 | p |SV* |sv_mortalcopy |SV* oldsv | |
1612 | p |SV* |sv_newmortal | |
1613 | p |SV* |sv_newref |SV* sv | |
1614 | p |char* |sv_peek |SV* sv | |
1615 | p |void |sv_pos_u2b |SV* sv|I32* offsetp|I32* lenp | |
1616 | p |void |sv_pos_b2u |SV* sv|I32* offsetp | |
1617 | p |char* |sv_pvn_force |SV* sv|STRLEN* lp | |
1618 | p |char* |sv_reftype |SV* sv|int ob | |
1619 | p |void |sv_replace |SV* sv|SV* nsv | |
1620 | p |void |sv_report_used | |
1621 | p |void |sv_reset |char* s|HV* stash | |
1622 | p |void |sv_setpvf |SV* sv|const char* pat|... | |
c5be433b | 1623 | p |void |sv_vsetpvf |SV* sv|const char* pat|va_list* args |
cea2e8a9 GS |
1624 | p |void |sv_setiv |SV* sv|IV num |
1625 | p |void |sv_setpviv |SV* sv|IV num | |
1626 | p |void |sv_setuv |SV* sv|UV num | |
cad2e5aa | 1627 | p |void |sv_setnv |SV* sv|NV num |
cea2e8a9 | 1628 | p |SV* |sv_setref_iv |SV* rv|const char* classname|IV iv |
cad2e5aa | 1629 | p |SV* |sv_setref_nv |SV* rv|const char* classname|NV nv |
cea2e8a9 GS |
1630 | p |SV* |sv_setref_pv |SV* rv|const char* classname|void* pv |
1631 | p |SV* |sv_setref_pvn |SV* rv|const char* classname|char* pv \ | |
1632 | |STRLEN n | |
1633 | p |void |sv_setpv |SV* sv|const char* ptr | |
1634 | p |void |sv_setpvn |SV* sv|const char* ptr|STRLEN len | |
1635 | p |void |sv_setsv |SV* dsv|SV* ssv | |
1636 | p |void |sv_taint |SV* sv | |
1637 | p |bool |sv_tainted |SV* sv | |
1638 | p |int |sv_unmagic |SV* sv|int type | |
1639 | p |void |sv_unref |SV* sv | |
1640 | p |void |sv_untaint |SV* sv | |
1641 | p |bool |sv_upgrade |SV* sv|U32 mt | |
1642 | p |void |sv_usepvn |SV* sv|char* ptr|STRLEN len | |
1643 | p |void |sv_vcatpvfn |SV* sv|const char* pat|STRLEN patlen \ | |
1644 | |va_list* args|SV** svargs|I32 svmax \ | |
1645 | |bool *used_locale | |
1646 | p |void |sv_vsetpvfn |SV* sv|const char* pat|STRLEN patlen \ | |
1647 | |va_list* args|SV** svargs|I32 svmax \ | |
1648 | |bool *used_locale | |
1649 | p |SV* |swash_init |char* pkg|char* name|SV* listsv \ | |
1650 | |I32 minbits|I32 none | |
1651 | p |UV |swash_fetch |SV *sv|U8 *ptr | |
1652 | p |void |taint_env | |
1653 | p |void |taint_proper |const char* f|char* s | |
1654 | p |UV |to_utf8_lower |U8 *p | |
1655 | p |UV |to_utf8_upper |U8 *p | |
1656 | p |UV |to_utf8_title |U8 *p | |
1657 | #if defined(UNLINK_ALL_VERSIONS) | |
1658 | p |I32 |unlnk |char* f | |
1659 | #endif | |
1660 | #if defined(USE_THREADS) | |
1661 | p |void |unlock_condpair|void* svv | |
1662 | #endif | |
1663 | p |void |unsharepvn |const char* sv|I32 len|U32 hash | |
1664 | p |void |unshare_hek |HEK* hek | |
1665 | p |void |utilize |int aver|I32 floor|OP* version|OP* id|OP* arg | |
1666 | p |U8* |utf16_to_utf8 |U16* p|U8 *d|I32 bytelen | |
1667 | p |U8* |utf16_to_utf8_reversed|U16* p|U8 *d|I32 bytelen | |
1668 | p |I32 |utf8_distance |U8 *a|U8 *b | |
1669 | p |U8* |utf8_hop |U8 *s|I32 off | |
1670 | p |UV |utf8_to_uv |U8 *s|I32* retlen | |
1671 | p |U8* |uv_to_utf8 |U8 *d|UV uv | |
1672 | p |void |vivify_defelem |SV* sv | |
1673 | p |void |vivify_ref |SV* sv|U32 to_what | |
1674 | p |I32 |wait4pid |int pid|int* statusp|int flags | |
1675 | p |void |warn |const char* pat|... | |
c5be433b | 1676 | p |void |vwarn |const char* pat|va_list* args |
cea2e8a9 | 1677 | p |void |warner |U32 err|const char* pat|... |
c5be433b | 1678 | p |void |vwarner |U32 err|const char* pat|va_list* args |
cea2e8a9 GS |
1679 | p |void |watch |char** addr |
1680 | p |I32 |whichsig |char* sig | |
1681 | p |int |yyerror |char* s | |
1682 | #if defined(USE_PURE_BISON) | |
1683 | p |int |yylex |YYSTYPE *lvalp|int *lcharp | |
1684 | #else | |
1685 | p |int |yylex | |
1686 | #endif | |
1687 | p |int |yyparse | |
1688 | p |int |yywarn |char* s | |
1689 | #if defined(MYMALLOC) | |
1690 | p |void |dump_mstats |char* s | |
1691 | pno |Malloc_t|malloc |MEM_SIZE nbytes | |
1692 | pno |Malloc_t|calloc |MEM_SIZE elements|MEM_SIZE size | |
1693 | pno |Malloc_t|realloc |Malloc_t where|MEM_SIZE nbytes | |
1694 | pno |Free_t |mfree |Malloc_t where | |
1695 | #endif | |
4f63d024 GS |
1696 | pn |Malloc_t|safesysmalloc |MEM_SIZE nbytes |
1697 | pn |Malloc_t|safesyscalloc |MEM_SIZE elements|MEM_SIZE size | |
1698 | pn |Malloc_t|safesysrealloc|Malloc_t where|MEM_SIZE nbytes | |
1699 | pn |Free_t |safesysfree |Malloc_t where | |
cea2e8a9 | 1700 | #if defined(LEAKTEST) |
4f63d024 GS |
1701 | pn |Malloc_t|safexmalloc |I32 x|MEM_SIZE size |
1702 | pn |Malloc_t|safexcalloc |I32 x|MEM_SIZE elements|MEM_SIZE size | |
1703 | pn |Malloc_t|safexrealloc |Malloc_t where|MEM_SIZE size | |
1704 | pn |void |safexfree |Malloc_t where | |
cea2e8a9 GS |
1705 | #endif |
1706 | #if defined(PERL_GLOBAL_STRUCT) | |
1707 | p |struct perl_vars *|GetVars | |
1708 | #endif | |
cea2e8a9 GS |
1709 | p |int |runops_standard |
1710 | p |int |runops_debug | |
cea2e8a9 | 1711 | p |void |sv_catpvf_mg |SV *sv|const char* pat|... |
c5be433b | 1712 | p |void |sv_vcatpvf_mg |SV* sv|const char* pat|va_list* args |
cea2e8a9 GS |
1713 | p |void |sv_catpv_mg |SV *sv|const char *ptr |
1714 | p |void |sv_catpvn_mg |SV *sv|const char *ptr|STRLEN len | |
1715 | p |void |sv_catsv_mg |SV *dstr|SV *sstr | |
1716 | p |void |sv_setpvf_mg |SV *sv|const char* pat|... | |
c5be433b | 1717 | p |void |sv_vsetpvf_mg |SV* sv|const char* pat|va_list* args |
cea2e8a9 GS |
1718 | p |void |sv_setiv_mg |SV *sv|IV i |
1719 | p |void |sv_setpviv_mg |SV *sv|IV iv | |
1720 | p |void |sv_setuv_mg |SV *sv|UV u | |
cad2e5aa | 1721 | p |void |sv_setnv_mg |SV *sv|NV num |
cea2e8a9 GS |
1722 | p |void |sv_setpv_mg |SV *sv|const char *ptr |
1723 | p |void |sv_setpvn_mg |SV *sv|const char *ptr|STRLEN len | |
1724 | p |void |sv_setsv_mg |SV *dstr|SV *sstr | |
1725 | p |void |sv_usepvn_mg |SV *sv|char *ptr|STRLEN len | |
1726 | p |MGVTBL*|get_vtbl |int vtbl_id | |
1727 | p |char* |pv_display |SV *sv|char *pv|STRLEN cur|STRLEN len \ | |
1728 | |STRLEN pvlim | |
1729 | p |void |dump_indent |I32 level|PerlIO *file|const char* pat|... | |
c5be433b GS |
1730 | p |void |dump_vindent |I32 level|PerlIO *file|const char* pat \ |
1731 | |va_list *args | |
cea2e8a9 GS |
1732 | p |void |do_gv_dump |I32 level|PerlIO *file|char *name|GV *sv |
1733 | p |void |do_gvgv_dump |I32 level|PerlIO *file|char *name|GV *sv | |
1734 | p |void |do_hv_dump |I32 level|PerlIO *file|char *name|HV *sv | |
1735 | p |void |do_magic_dump |I32 level|PerlIO *file|MAGIC *mg|I32 nest \ | |
1736 | |I32 maxnest|bool dumpops|STRLEN pvlim | |
1737 | p |void |do_op_dump |I32 level|PerlIO *file|OP *o | |
1738 | p |void |do_pmop_dump |I32 level|PerlIO *file|PMOP *pm | |
1739 | p |void |do_sv_dump |I32 level|PerlIO *file|SV *sv|I32 nest \ | |
1740 | |I32 maxnest|bool dumpops|STRLEN pvlim | |
1741 | p |void |magic_dump |MAGIC *mg | |
1742 | p |void* |default_protect|int *excpt|protect_body_t body|... | |
c5be433b | 1743 | p |void* |vdefault_protect|int *excpt|protect_body_t body|va_list *args |
cea2e8a9 GS |
1744 | p |void |reginitcolors |
1745 | p |char* |sv_2pv_nolen |SV* sv | |
1746 | p |char* |sv_pv |SV *sv | |
1747 | p |void |sv_force_normal|SV *sv | |
1748 | p |void |tmps_grow |I32 n | |
1749 | p |SV* |sv_rvweaken |SV *sv | |
1750 | p |int |magic_killbackrefs|SV *sv|MAGIC *mg | |
1751 | ||
0cb96387 GS |
1752 | #if defined(PERL_OBJECT) |
1753 | protected: | |
1754 | #endif | |
1755 | #if defined(PERL_IN_AV_C) || defined(PERL_DECL_PROT) | |
cea2e8a9 GS |
1756 | s |I32 |avhv_index_sv |SV* sv |
1757 | #endif | |
1758 | ||
0cb96387 | 1759 | #if defined(PERL_IN_DOOP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1760 | s |I32 |do_trans_CC_simple |SV *sv |
1761 | s |I32 |do_trans_CC_count |SV *sv | |
1762 | s |I32 |do_trans_CC_complex |SV *sv | |
1763 | s |I32 |do_trans_UU_simple |SV *sv | |
1764 | s |I32 |do_trans_UU_count |SV *sv | |
1765 | s |I32 |do_trans_UU_complex |SV *sv | |
1766 | s |I32 |do_trans_UC_simple |SV *sv | |
1767 | s |I32 |do_trans_CU_simple |SV *sv | |
1768 | s |I32 |do_trans_UC_trivial |SV *sv | |
1769 | s |I32 |do_trans_CU_trivial |SV *sv | |
1770 | #endif | |
1771 | ||
0cb96387 | 1772 | #if defined(PERL_IN_GV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1773 | s |void |gv_init_sv |GV *gv|I32 sv_type |
1774 | #endif | |
1775 | ||
0cb96387 | 1776 | #if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1777 | s |void |hsplit |HV *hv |
1778 | s |void |hfreeentries |HV *hv | |
1779 | s |void |more_he | |
1780 | s |HE* |new_he | |
1781 | s |void |del_he |HE *p | |
1782 | s |HEK* |save_hek |const char *str|I32 len|U32 hash | |
1783 | s |void |hv_magic_check |HV *hv|bool *needs_copy|bool *needs_store | |
1784 | #endif | |
1785 | ||
0cb96387 | 1786 | #if defined(PERL_IN_MG_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1787 | s |void |save_magic |I32 mgs_ix|SV *sv |
1788 | s |int |magic_methpack |SV *sv|MAGIC *mg|char *meth | |
1789 | s |int |magic_methcall |SV *sv|MAGIC *mg|char *meth|I32 f \ | |
1790 | |int n|SV *val | |
cea2e8a9 GS |
1791 | #endif |
1792 | ||
0cb96387 | 1793 | #if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1794 | s |I32 |list_assignment|OP *o |
1795 | s |void |bad_type |I32 n|char *t|char *name|OP *kid | |
3eb57f73 | 1796 | s |void |cop_free |COP *cop |
cea2e8a9 GS |
1797 | s |OP* |modkids |OP *o|I32 type |
1798 | s |void |no_bareword_allowed|OP *o | |
1799 | s |OP* |no_fh_allowed |OP *o | |
1800 | s |OP* |scalarboolean |OP *o | |
1801 | s |OP* |too_few_arguments|OP *o|char* name | |
1802 | s |OP* |too_many_arguments|OP *o|char* name | |
acb36ea4 | 1803 | s |void |op_clear |OP* o |
cea2e8a9 GS |
1804 | s |void |null |OP* o |
1805 | s |PADOFFSET|pad_findlex |char* name|PADOFFSET newoff|U32 seq \ | |
1806 | |CV* startcv|I32 cx_ix|I32 saweval|U32 flags | |
1807 | s |OP* |newDEFSVOP | |
1808 | s |OP* |new_logop |I32 type|I32 flags|OP **firstp|OP **otherp | |
1809 | s |void |simplify_sort |OP *o | |
1810 | s |bool |is_handle_constructor |OP *o|I32 argnum | |
1811 | s |char* |gv_ename |GV *gv | |
1812 | s |CV* |cv_clone2 |CV *proto|CV *outside | |
1813 | s |bool |scalar_mod_type|OP *o|I32 type | |
1814 | # if defined(PL_OP_SLAB_ALLOC) | |
1815 | s |void* |Slab_Alloc |int m|size_t sz | |
1816 | # endif | |
1817 | #endif | |
1818 | ||
0cb96387 | 1819 | #if defined(PERL_IN_PERL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1820 | s |void |find_beginning |
1821 | s |void |forbid_setid |char * | |
1822 | s |void |incpush |char *|int | |
1823 | s |void |init_interp | |
1824 | s |void |init_ids | |
cea2e8a9 GS |
1825 | s |void |init_lexer |
1826 | s |void |init_main_stash | |
1827 | s |void |init_perllib | |
1828 | s |void |init_postdump_symbols|int|char **|char ** | |
1829 | s |void |init_predump_symbols | |
1830 | rs |void |my_exit_jump | |
1831 | s |void |nuke_stacks | |
1832 | s |void |open_script |char *|bool|SV *|int *fd | |
1833 | s |void |usage |char * | |
1834 | s |void |validate_suid |char *|char*|int | |
cea2e8a9 GS |
1835 | # if defined(IAMSUID) |
1836 | s |int |fd_on_nosuid_fs|int fd | |
1837 | # endif | |
1838 | s |void* |parse_body |va_list args | |
1839 | s |void* |run_body |va_list args | |
1840 | s |void* |call_body |va_list args | |
1841 | s |void |call_xbody |OP *myop|int is_eval | |
1842 | s |void* |call_list_body |va_list args | |
1843 | # if defined(USE_THREADS) | |
1844 | s |struct perl_thread * |init_main_thread | |
1845 | # endif | |
1846 | #endif | |
1847 | ||
0cb96387 | 1848 | #if defined(PERL_IN_PP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1849 | s |void |doencodes |SV* sv|char* s|I32 len |
1850 | s |SV* |refto |SV* sv | |
1851 | s |U32 |seed | |
1852 | s |SV* |mul128 |SV *sv|U8 m | |
1853 | s |SV* |is_an_int |char *s|STRLEN l | |
1854 | s |int |div128 |SV *pnum|bool *done | |
1855 | #endif | |
1856 | ||
0cb96387 | 1857 | #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1858 | s |OP* |docatch |OP *o |
1859 | s |void* |docatch_body |va_list args | |
1860 | s |OP* |dofindlabel |OP *o|char *label|OP **opstack|OP **oplimit | |
1861 | s |void |doparseform |SV *sv | |
1862 | s |I32 |dopoptoeval |I32 startingblock | |
1863 | s |I32 |dopoptolabel |char *label | |
1864 | s |I32 |dopoptoloop |I32 startingblock | |
1865 | s |I32 |dopoptosub |I32 startingblock | |
1866 | s |I32 |dopoptosub_at |PERL_CONTEXT* cxstk|I32 startingblock | |
1867 | s |void |free_closures | |
1868 | s |void |save_lines |AV *array|SV *sv | |
1869 | s |OP* |doeval |int gimme|OP** startop | |
1870 | s |PerlIO *|doopen_pmc |const char *name|const char *mode | |
1871 | s |void |qsortsv |SV ** array|size_t num_elts|SVCOMPARE_t f | |
cea2e8a9 GS |
1872 | #endif |
1873 | ||
0cb96387 | 1874 | #if defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT) |
cea2e8a9 | 1875 | s |CV* |get_db_sub |SV **svp|CV *cv |
cea2e8a9 GS |
1876 | #endif |
1877 | ||
0cb96387 | 1878 | #if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1879 | s |OP* |doform |CV *cv|GV *gv|OP *retop |
1880 | s |int |emulate_eaccess|const char* path|int mode | |
1881 | # if !defined(HAS_MKDIR) || !defined(HAS_RMDIR) | |
1882 | s |int |dooneliner |char *cmd|char *filename | |
1883 | # endif | |
1884 | #endif | |
1885 | ||
0cb96387 | 1886 | #if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1887 | s |regnode*|reg |I32|I32 * |
1888 | s |regnode*|reganode |U8|U32 | |
1889 | s |regnode*|regatom |I32 * | |
1890 | s |regnode*|regbranch |I32 *|I32 | |
1891 | s |void |regc |U8|char * | |
1892 | s |void |reguni |UV|char *|I32* | |
1893 | s |regnode*|regclass | |
1894 | s |regnode*|regclassutf8 | |
1895 | s |I32 |regcurly |char * | |
1896 | s |regnode*|reg_node |U8 | |
1897 | s |regnode*|regpiece |I32 * | |
1898 | s |void |reginsert |U8|regnode * | |
1899 | s |void |regoptail |regnode *|regnode * | |
1900 | s |void |regtail |regnode *|regnode * | |
1901 | s |char*|regwhite |char *|char * | |
1902 | s |char*|nextchar | |
1903 | s |regnode*|dumpuntil |regnode *start|regnode *node \ | |
1904 | |regnode *last|SV* sv|I32 l | |
1905 | s |void |scan_commit |scan_data_t *data | |
1906 | s |I32 |study_chunk |regnode **scanp|I32 *deltap \ | |
1907 | |regnode *last|scan_data_t *data|U32 flags | |
1908 | s |I32 |add_data |I32 n|char *s | |
1909 | rs |void|re_croak2 |const char* pat1|const char* pat2|... | |
b8c5462f JH |
1910 | s |I32 |regpposixcc |I32 value |
1911 | s |void |checkposixcc | |
cea2e8a9 GS |
1912 | #endif |
1913 | ||
0cb96387 | 1914 | #if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1915 | s |I32 |regmatch |regnode *prog |
1916 | s |I32 |regrepeat |regnode *p|I32 max | |
1917 | s |I32 |regrepeat_hard |regnode *p|I32 max|I32 *lp | |
1918 | s |I32 |regtry |regexp *prog|char *startpos | |
1919 | s |bool |reginclass |char *p|I32 c | |
1920 | s |bool |reginclassutf8 |regnode *f|U8* p | |
1921 | s |CHECKPOINT|regcppush |I32 parenfloor | |
1922 | s |char*|regcppop | |
1923 | s |char*|regcp_set_to |I32 ss | |
1924 | s |void |cache_re |regexp *prog | |
cea2e8a9 GS |
1925 | s |U8* |reghop |U8 *pos|I32 off |
1926 | s |U8* |reghopmaybe |U8 *pos|I32 off | |
1927 | #endif | |
1928 | ||
0cb96387 | 1929 | #if defined(PERL_IN_RUN_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1930 | s |void |debprof |OP *o |
1931 | #endif | |
1932 | ||
0cb96387 | 1933 | #if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1934 | s |SV* |save_scalar_at |SV **sptr |
1935 | #endif | |
1936 | ||
0cb96387 | 1937 | #if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1938 | s |IV |asIV |SV* sv |
1939 | s |UV |asUV |SV* sv | |
1940 | s |SV* |more_sv | |
1941 | s |void |more_xiv | |
1942 | s |void |more_xnv | |
1943 | s |void |more_xpv | |
1944 | s |void |more_xrv | |
1945 | s |XPVIV* |new_xiv | |
1946 | s |XPVNV* |new_xnv | |
1947 | s |XPV* |new_xpv | |
1948 | s |XRV* |new_xrv | |
1949 | s |void |del_xiv |XPVIV* p | |
1950 | s |void |del_xnv |XPVNV* p | |
1951 | s |void |del_xpv |XPV* p | |
1952 | s |void |del_xrv |XRV* p | |
1953 | s |void |sv_unglob |SV* sv | |
cea2e8a9 GS |
1954 | s |void |not_a_number |SV *sv |
1955 | s |void |visit |SVFUNC_t f | |
1956 | # if defined(PURIFY) | |
1957 | s |void |reg_add |SV *sv | |
1958 | s |void |reg_remove |SV *sv | |
1959 | # else | |
4f63d024 | 1960 | ns |void* |my_safemalloc |MEM_SIZE size |
cea2e8a9 GS |
1961 | # endif |
1962 | s |void |sv_add_backref |SV *tsv|SV *sv | |
1963 | s |void |sv_del_backref |SV *sv | |
1964 | # if defined(DEBUGGING) | |
1965 | s |void |del_sv |SV *p | |
1966 | # endif | |
1967 | #endif | |
1968 | ||
0cb96387 | 1969 | #if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
1970 | s |void |check_uni |
1971 | s |void |force_next |I32 type | |
1972 | s |char* |force_version |char *start | |
1973 | s |char* |force_word |char *start|int token|int check_keyword \ | |
1974 | |int allow_pack|int allow_tick | |
1975 | s |SV* |tokeq |SV *sv | |
1976 | s |char* |scan_const |char *start | |
1977 | s |char* |scan_formline |char *s | |
1978 | s |char* |scan_heredoc |char *s | |
1979 | s |char* |scan_ident |char *s|char *send|char *dest \ | |
1980 | |STRLEN destlen|I32 ck_uni | |
1981 | s |char* |scan_inputsymbol|char *start | |
1982 | s |char* |scan_pat |char *start|I32 type | |
1983 | s |char* |scan_str |char *start | |
1984 | s |char* |scan_subst |char *start | |
1985 | s |char* |scan_trans |char *start | |
1986 | s |char* |scan_word |char *s|char *dest|STRLEN destlen \ | |
1987 | |int allow_package|STRLEN *slp | |
1988 | s |char* |skipspace |char *s | |
1989 | s |void |checkcomma |char *s|char *name|char *what | |
1990 | s |void |force_ident |char *s|int kind | |
1991 | s |void |incline |char *s | |
1992 | s |int |intuit_method |char *s|GV *gv | |
1993 | s |int |intuit_more |char *s | |
1994 | s |I32 |lop |I32 f|expectation x|char *s | |
1995 | s |void |missingterm |char *s | |
1996 | s |void |no_op |char *what|char *s | |
1997 | s |void |set_csh | |
1998 | s |I32 |sublex_done | |
1999 | s |I32 |sublex_push | |
2000 | s |I32 |sublex_start | |
2001 | s |char * |filter_gets |SV *sv|PerlIO *fp|STRLEN append | |
2002 | s |SV* |new_constant |char *s|STRLEN len|char *key|SV *sv \ | |
2003 | |SV *pv|char *type | |
2004 | s |int |ao |int toketype | |
2005 | s |void |depcom | |
2006 | s |char* |incl_perldb | |
2007 | s |I32 |utf16_textfilter|int idx|SV *sv|int maxlen | |
2008 | s |I32 |utf16rev_textfilter|int idx|SV *sv|int maxlen | |
cea2e8a9 GS |
2009 | # if defined(CRIPPLED_CC) |
2010 | s |int |uni |I32 f|char *s | |
2011 | # endif | |
2012 | # if defined(WIN32) | |
2013 | s |I32 |win32_textfilter |int idx|SV *sv|int maxlen | |
2014 | # endif | |
2015 | #endif | |
2016 | ||
0cb96387 | 2017 | #if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2018 | s |SV*|isa_lookup |HV *stash|const char *name|int len|int level |
2019 | #endif | |
2020 | ||
0cb96387 | 2021 | #if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 | 2022 | s |SV* |mess_alloc |
cea2e8a9 GS |
2023 | # if defined(LEAKTEST) |
2024 | s |void |xstat |int | |
2025 | # endif | |
2026 | #endif |