Commit | Line | Data |
---|---|---|
5f05dabc | 1 | #!/usr/bin/perl -w |
e50aee73 | 2 | |
954c1994 GS |
3 | require 5.003; # keep this compatible, an old perl is all we may have before |
4 | # we build the new one | |
5f05dabc | 5 | |
cea2e8a9 GS |
6 | # |
7 | # See database of global and static function prototypes at the __END__. | |
8 | # This is used to generate prototype headers under various configurations, | |
9 | # export symbols lists for different platforms, and macros to provide an | |
10 | # implicit interpreter context argument. | |
11 | # | |
12 | ||
13 | my $END = tell DATA; | |
14 | ||
15 | # walk table providing an array of components in each line to | |
16 | # subroutine, printing the result | |
17 | sub walk_table (&@) { | |
18 | my $function = shift; | |
19 | my $filename = shift || '-'; | |
20 | my $leader = shift; | |
21 | my $trailer = shift; | |
22 | my $F; | |
23 | local *F; | |
24 | if (ref $filename) { # filehandle | |
25 | $F = $filename; | |
26 | } | |
27 | else { | |
57458f80 | 28 | unlink $filename; |
cea2e8a9 GS |
29 | open F, ">$filename" or die "Can't open $filename: $!"; |
30 | $F = \*F; | |
31 | } | |
32 | print $F $leader if $leader; | |
33 | seek DATA, $END, 0; # so we may restart | |
34 | while (<DATA>) { | |
35 | chomp; | |
1d7c1841 | 36 | next if /^:/; |
cea2e8a9 GS |
37 | while (s|\\$||) { |
38 | $_ .= <DATA>; | |
39 | chomp; | |
40 | } | |
41 | my @args; | |
42 | if (/^\s*(#|$)/) { | |
43 | @args = $_; | |
44 | } | |
45 | else { | |
46 | @args = split /\s*\|\s*/, $_; | |
47 | } | |
48 | print $F $function->(@args); | |
49 | } | |
50 | print $F $trailer if $trailer; | |
51 | close $F unless ref $filename; | |
52 | } | |
53 | ||
54 | sub munge_c_files () { | |
55 | my $functions = {}; | |
56 | unless (@ARGV) { | |
57 | warn "\@ARGV empty, nothing to do\n"; | |
58 | return; | |
59 | } | |
60 | walk_table { | |
61 | if (@_ > 1) { | |
62 | $functions->{$_[2]} = \@_ if $_[@_-1] =~ /\.\.\./; | |
63 | } | |
64 | } '/dev/null'; | |
65 | local $^I = '.bak'; | |
66 | while (<>) { | |
67 | # if (/^#\s*include\s+"perl.h"/) { | |
68 | # my $file = uc $ARGV; | |
69 | # $file =~ s/\./_/g; | |
70 | # print "#define PERL_IN_$file\n"; | |
71 | # } | |
72 | # s{^(\w+)\s*\(} | |
73 | # { | |
74 | # my $f = $1; | |
75 | # my $repl = "$f("; | |
76 | # if (exists $functions->{$f}) { | |
77 | # my $flags = $functions->{$f}[0]; | |
78 | # $repl = "Perl_$repl" if $flags =~ /p/; | |
79 | # unless ($flags =~ /n/) { | |
80 | # $repl .= "pTHX"; | |
81 | # $repl .= "_ " if @{$functions->{$f}} > 3; | |
82 | # } | |
83 | # warn("$ARGV:$.:$repl\n"); | |
84 | # } | |
85 | # $repl; | |
86 | # }e; | |
87 | s{(\b(\w+)[ \t]*\([ \t]*(?!aTHX))} | |
88 | { | |
89 | my $repl = $1; | |
90 | my $f = $2; | |
91 | if (exists $functions->{$f}) { | |
92 | $repl .= "aTHX_ "; | |
93 | warn("$ARGV:$.:$`#$repl#$'"); | |
94 | } | |
95 | $repl; | |
96 | }eg; | |
97 | print; | |
98 | close ARGV if eof; # restart $. | |
99 | } | |
100 | exit; | |
101 | } | |
102 | ||
103 | #munge_c_files(); | |
104 | ||
105 | # generate proto.h | |
0cb96387 GS |
106 | my $wrote_protected = 0; |
107 | ||
cea2e8a9 GS |
108 | sub write_protos { |
109 | my $ret = ""; | |
110 | if (@_ == 1) { | |
111 | my $arg = shift; | |
1d7c1841 | 112 | $ret .= "$arg\n"; |
cea2e8a9 GS |
113 | } |
114 | else { | |
115 | my ($flags,$retval,$func,@args) = @_; | |
116 | if ($flags =~ /s/) { | |
117 | $retval = "STATIC $retval"; | |
118 | $func = "S_$func"; | |
119 | } | |
0cb96387 | 120 | else { |
1d7c1841 | 121 | $retval = "PERL_CALLCONV $retval"; |
0cb96387 GS |
122 | if ($flags =~ /p/) { |
123 | $func = "Perl_$func"; | |
124 | } | |
cea2e8a9 GS |
125 | } |
126 | $ret .= "$retval\t$func("; | |
127 | unless ($flags =~ /n/) { | |
128 | $ret .= "pTHX"; | |
129 | $ret .= "_ " if @args; | |
130 | } | |
131 | if (@args) { | |
132 | $ret .= join ", ", @args; | |
133 | } | |
134 | else { | |
135 | $ret .= "void" if $flags =~ /n/; | |
136 | } | |
137 | $ret .= ")"; | |
138 | $ret .= " __attribute__((noreturn))" if $flags =~ /r/; | |
894356b3 GS |
139 | if( $flags =~ /f/ ) { |
140 | my $prefix = $flags =~ /n/ ? '' : 'pTHX_'; | |
141 | my $args = scalar @args; | |
142 | $ret .= "\n#ifdef CHECK_FORMAT\n"; | |
143 | $ret .= sprintf " __attribute__((format(printf,%s%d,%s%d)))", | |
144 | $prefix, $args - 1, $prefix, $args; | |
145 | $ret .= "\n#endif\n"; | |
146 | } | |
cea2e8a9 GS |
147 | $ret .= ";\n"; |
148 | } | |
149 | $ret; | |
150 | } | |
151 | ||
954c1994 | 152 | # generates global.sym (API export list), and populates %global with global symbols |
cea2e8a9 GS |
153 | sub write_global_sym { |
154 | my $ret = ""; | |
155 | if (@_ > 1) { | |
156 | my ($flags,$retval,$func,@args) = @_; | |
954c1994 | 157 | if ($flags =~ /A/ && $flags !~ /x/) { # public API, so export |
cea2e8a9 GS |
158 | $func = "Perl_$func" if $flags =~ /p/; |
159 | $ret = "$func\n"; | |
160 | } | |
161 | } | |
162 | $ret; | |
163 | } | |
164 | ||
165 | ||
166 | walk_table(\&write_protos, 'proto.h', <<'EOT'); | |
167 | /* | |
168 | * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
169 | * This file is autogenerated from data in embed.pl. Edit that file | |
170 | * and run 'make regen_headers' to effect changes. | |
171 | */ | |
172 | ||
173 | EOT | |
174 | ||
175 | walk_table(\&write_global_sym, 'global.sym', <<'EOT'); | |
176 | # | |
177 | # !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
178 | # This file is autogenerated from data in embed.pl. Edit that file | |
179 | # and run 'make regen_headers' to effect changes. | |
180 | # | |
181 | ||
182 | EOT | |
183 | ||
709f4e38 GS |
184 | # XXX others that may need adding |
185 | # warnhook | |
186 | # hints | |
187 | # copline | |
84fee439 NIS |
188 | my @extvars = qw(sv_undef sv_yes sv_no na dowarn |
189 | curcop compiling | |
190 | tainting tainted stack_base stack_sp sv_arenaroot | |
256a4781 | 191 | no_modify |
84fee439 NIS |
192 | curstash DBsub DBsingle debstash |
193 | rsfp | |
194 | stdingv | |
6b88bc9c GS |
195 | defgv |
196 | errgv | |
3070f6ec GS |
197 | rsfp_filters |
198 | perldb | |
709f4e38 GS |
199 | diehook |
200 | dirty | |
201 | perl_destruct_level | |
dda405be | 202 | ppaddr |
84fee439 NIS |
203 | ); |
204 | ||
5f05dabc | 205 | sub readsyms (\%$) { |
206 | my ($syms, $file) = @_; | |
5f05dabc | 207 | local (*FILE, $_); |
208 | open(FILE, "< $file") | |
209 | or die "embed.pl: Can't open $file: $!\n"; | |
210 | while (<FILE>) { | |
211 | s/[ \t]*#.*//; # Delete comments. | |
212 | if (/^\s*(\S+)\s*$/) { | |
22c35a8c GS |
213 | my $sym = $1; |
214 | warn "duplicate symbol $sym while processing $file\n" | |
215 | if exists $$syms{$sym}; | |
216 | $$syms{$sym} = 1; | |
5f05dabc | 217 | } |
218 | } | |
219 | close(FILE); | |
220 | } | |
221 | ||
cea2e8a9 GS |
222 | # Perl_pp_* and Perl_ck_* are in pp.sym |
223 | readsyms my %ppsym, 'pp.sym'; | |
5f05dabc | 224 | |
c6af7a1a GS |
225 | sub readvars(\%$$@) { |
226 | my ($syms, $file,$pre,$keep_pre) = @_; | |
d4cce5f1 NIS |
227 | local (*FILE, $_); |
228 | open(FILE, "< $file") | |
229 | or die "embed.pl: Can't open $file: $!\n"; | |
230 | while (<FILE>) { | |
231 | s/[ \t]*#.*//; # Delete comments. | |
51371543 | 232 | if (/PERLVARA?I?C?\($pre(\w+)/) { |
22c35a8c | 233 | my $sym = $1; |
c6af7a1a | 234 | $sym = $pre . $sym if $keep_pre; |
22c35a8c GS |
235 | warn "duplicate symbol $sym while processing $file\n" |
236 | if exists $$syms{$sym}; | |
51371543 | 237 | $$syms{$sym} = $pre || 1; |
d4cce5f1 NIS |
238 | } |
239 | } | |
240 | close(FILE); | |
241 | } | |
242 | ||
243 | my %intrp; | |
244 | my %thread; | |
245 | ||
246 | readvars %intrp, 'intrpvar.h','I'; | |
247 | readvars %thread, 'thrdvar.h','T'; | |
22239a37 | 248 | readvars %globvar, 'perlvars.h','G'; |
d4cce5f1 | 249 | |
51371543 | 250 | foreach my $sym (sort keys %thread) { |
34b58025 | 251 | warn "$sym in intrpvar.h as well as thrdvar.h\n" if exists $intrp{$sym}; |
51371543 | 252 | } |
d4cce5f1 | 253 | |
c6af7a1a GS |
254 | sub undefine ($) { |
255 | my ($sym) = @_; | |
256 | "#undef $sym\n"; | |
257 | } | |
258 | ||
5f05dabc | 259 | sub hide ($$) { |
260 | my ($from, $to) = @_; | |
261 | my $t = int(length($from) / 8); | |
262 | "#define $from" . "\t" x ($t < 3 ? 3 - $t : 1) . "$to\n"; | |
263 | } | |
c6af7a1a | 264 | |
6f4183fe | 265 | sub bincompat_var ($$) { |
51371543 | 266 | my ($pfx, $sym) = @_; |
c5be433b GS |
267 | my $arg = ($pfx eq 'G' ? 'NULL' : 'aTHXo'); |
268 | undefine("PL_$sym") . hide("PL_$sym", "(*Perl_${pfx}${sym}_ptr($arg))"); | |
c6af7a1a GS |
269 | } |
270 | ||
d4cce5f1 NIS |
271 | sub multon ($$$) { |
272 | my ($sym,$pre,$ptr) = @_; | |
3280af22 | 273 | hide("PL_$sym", "($ptr$pre$sym)"); |
5f05dabc | 274 | } |
54aff467 | 275 | |
d4cce5f1 NIS |
276 | sub multoff ($$) { |
277 | my ($sym,$pre) = @_; | |
533c011a | 278 | return hide("PL_$pre$sym", "PL_$sym"); |
5f05dabc | 279 | } |
280 | ||
281 | unlink 'embed.h'; | |
cea2e8a9 | 282 | open(EM, '> embed.h') or die "Can't create embed.h: $!\n"; |
e50aee73 AD |
283 | |
284 | print EM <<'END'; | |
76b72cf1 | 285 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! |
cea2e8a9 | 286 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, |
c6af7a1a | 287 | perlvars.h and thrdvar.h. Any changes made here will be lost! |
76b72cf1 | 288 | */ |
e50aee73 AD |
289 | |
290 | /* (Doing namespace management portably in C is really gross.) */ | |
291 | ||
22c35a8c | 292 | /* NO_EMBED is no longer supported. i.e. EMBED is always active. */ |
820c3be9 | 293 | |
538feb02 GS |
294 | /* provide binary compatible (but inconsistent) names */ |
295 | #if defined(PERL_BINCOMPAT_5005) | |
c0e79ee6 GS |
296 | # define Perl_call_atexit perl_atexit |
297 | # define Perl_eval_sv perl_eval_sv | |
298 | # define Perl_eval_pv perl_eval_pv | |
538feb02 GS |
299 | # define Perl_call_argv perl_call_argv |
300 | # define Perl_call_method perl_call_method | |
301 | # define Perl_call_pv perl_call_pv | |
302 | # define Perl_call_sv perl_call_sv | |
303 | # define Perl_get_av perl_get_av | |
304 | # define Perl_get_cv perl_get_cv | |
305 | # define Perl_get_hv perl_get_hv | |
306 | # define Perl_get_sv perl_get_sv | |
307 | # define Perl_init_i18nl10n perl_init_i18nl10n | |
308 | # define Perl_init_i18nl14n perl_init_i18nl14n | |
309 | # define Perl_new_collate perl_new_collate | |
310 | # define Perl_new_ctype perl_new_ctype | |
311 | # define Perl_new_numeric perl_new_numeric | |
312 | # define Perl_require_pv perl_require_pv | |
313 | # define Perl_safesyscalloc Perl_safecalloc | |
314 | # define Perl_safesysfree Perl_safefree | |
315 | # define Perl_safesysmalloc Perl_safemalloc | |
316 | # define Perl_safesysrealloc Perl_saferealloc | |
317 | # define Perl_set_numeric_local perl_set_numeric_local | |
318 | # define Perl_set_numeric_standard perl_set_numeric_standard | |
37bd1396 GS |
319 | /* malloc() pollution was the default in earlier versions, so enable |
320 | * it for bincompat; but not for systems that used to do prevent that, | |
321 | * or when they ask for {HIDE,EMBED}MYMALLOC */ | |
322 | # if !defined(EMBEDMYMALLOC) && !defined(HIDEMYMALLOC) | |
323 | # if !defined(NeXT) && !defined(__NeXT) && !defined(__MACHTEN__) && \ | |
324 | !defined(__QNX__) | |
325 | # define PERL_POLLUTE_MALLOC | |
326 | # endif | |
3d3b6b6a | 327 | # endif |
538feb02 GS |
328 | #endif |
329 | ||
22c35a8c | 330 | /* Hide global symbols */ |
5f05dabc | 331 | |
22c35a8c | 332 | #if !defined(PERL_OBJECT) |
cea2e8a9 | 333 | #if !defined(PERL_IMPLICIT_CONTEXT) |
e50aee73 | 334 | |
e50aee73 AD |
335 | END |
336 | ||
cea2e8a9 GS |
337 | walk_table { |
338 | my $ret = ""; | |
339 | if (@_ == 1) { | |
340 | my $arg = shift; | |
12a98ad5 | 341 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifn?def|else|endif)\b/; |
cea2e8a9 GS |
342 | } |
343 | else { | |
344 | my ($flags,$retval,$func,@args) = @_; | |
345 | unless ($flags =~ /o/) { | |
346 | if ($flags =~ /s/) { | |
347 | $ret .= hide($func,"S_$func"); | |
348 | } | |
349 | elsif ($flags =~ /p/) { | |
350 | $ret .= hide($func,"Perl_$func"); | |
351 | } | |
352 | } | |
353 | } | |
354 | $ret; | |
355 | } \*EM; | |
356 | ||
357 | for $sym (sort keys %ppsym) { | |
358 | $sym =~ s/^Perl_//; | |
359 | print EM hide($sym, "Perl_$sym"); | |
360 | } | |
361 | ||
362 | print EM <<'END'; | |
363 | ||
364 | #else /* PERL_IMPLICIT_CONTEXT */ | |
365 | ||
366 | END | |
367 | ||
368 | my @az = ('a'..'z'); | |
369 | ||
370 | walk_table { | |
371 | my $ret = ""; | |
372 | if (@_ == 1) { | |
373 | my $arg = shift; | |
12a98ad5 | 374 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifn?def|else|endif)\b/; |
cea2e8a9 GS |
375 | } |
376 | else { | |
377 | my ($flags,$retval,$func,@args) = @_; | |
378 | unless ($flags =~ /o/) { | |
379 | my $args = scalar @args; | |
380 | if ($args and $args[$args-1] =~ /\.\.\./) { | |
381 | # we're out of luck for varargs functions under CPP | |
382 | } | |
383 | elsif ($flags =~ /n/) { | |
384 | if ($flags =~ /s/) { | |
385 | $ret .= hide($func,"S_$func"); | |
386 | } | |
387 | elsif ($flags =~ /p/) { | |
388 | $ret .= hide($func,"Perl_$func"); | |
389 | } | |
390 | } | |
391 | else { | |
392 | my $alist = join(",", @az[0..$args-1]); | |
393 | $ret = "#define $func($alist)"; | |
394 | my $t = int(length($ret) / 8); | |
395 | $ret .= "\t" x ($t < 4 ? 4 - $t : 1); | |
396 | if ($flags =~ /s/) { | |
397 | $ret .= "S_$func(aTHX"; | |
398 | } | |
399 | elsif ($flags =~ /p/) { | |
400 | $ret .= "Perl_$func(aTHX"; | |
401 | } | |
402 | $ret .= "_ " if $alist; | |
403 | $ret .= $alist . ")\n"; | |
404 | } | |
405 | } | |
406 | } | |
407 | $ret; | |
408 | } \*EM; | |
409 | ||
410 | for $sym (sort keys %ppsym) { | |
411 | $sym =~ s/^Perl_//; | |
412 | if ($sym =~ /^ck_/) { | |
413 | print EM hide("$sym(a)", "Perl_$sym(aTHX_ a)"); | |
414 | } | |
415 | elsif ($sym =~ /^pp_/) { | |
416 | print EM hide("$sym()", "Perl_$sym(aTHX)"); | |
417 | } | |
418 | else { | |
419 | warn "Illegal symbol '$sym' in pp.sym"; | |
420 | } | |
e50aee73 AD |
421 | } |
422 | ||
e50aee73 AD |
423 | print EM <<'END'; |
424 | ||
cea2e8a9 | 425 | #endif /* PERL_IMPLICIT_CONTEXT */ |
22c35a8c GS |
426 | #else /* PERL_OBJECT */ |
427 | ||
428 | END | |
429 | ||
cea2e8a9 GS |
430 | walk_table { |
431 | my $ret = ""; | |
432 | if (@_ == 1) { | |
433 | my $arg = shift; | |
12a98ad5 | 434 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifn?def|else|endif)\b/; |
cea2e8a9 GS |
435 | } |
436 | else { | |
437 | my ($flags,$retval,$func,@args) = @_; | |
0cb96387 | 438 | if ($flags =~ /s/) { |
1d7c1841 | 439 | $ret .= hide("S_$func","CPerlObj::S_$func") if $flags !~ /j/; |
0cb96387 GS |
440 | $ret .= hide($func,"S_$func"); |
441 | } | |
442 | elsif ($flags =~ /p/) { | |
1d7c1841 | 443 | $ret .= hide("Perl_$func","CPerlObj::Perl_$func") if $flags !~ /j/; |
0cb96387 GS |
444 | $ret .= hide($func,"Perl_$func"); |
445 | } | |
446 | else { | |
1d7c1841 | 447 | $ret .= hide($func,"CPerlObj::$func") if $flags !~ /j/; |
cea2e8a9 GS |
448 | } |
449 | } | |
450 | $ret; | |
451 | } \*EM; | |
452 | ||
453 | for $sym (sort keys %ppsym) { | |
454 | $sym =~ s/^Perl_//; | |
0cb96387 GS |
455 | print EM hide("Perl_$sym", "CPerlObj::Perl_$sym"); |
456 | print EM hide($sym, "Perl_$sym"); | |
22c35a8c GS |
457 | } |
458 | ||
459 | print EM <<'END'; | |
460 | ||
461 | #endif /* PERL_OBJECT */ | |
e50aee73 | 462 | |
cea2e8a9 GS |
463 | /* Compatibility stubs. Compile extensions with -DPERL_NOCOMPAT to |
464 | disable them. | |
465 | */ | |
466 | ||
538feb02 | 467 | #if !defined(PERL_CORE) |
5bc28da9 NIS |
468 | # define sv_setptrobj(rv,ptr,name) sv_setref_iv(rv,name,PTR2IV(ptr)) |
469 | # define sv_setptrref(rv,ptr) sv_setref_iv(rv,Nullch,PTR2IV(ptr)) | |
538feb02 | 470 | #endif |
cea2e8a9 | 471 | |
538feb02 | 472 | #if !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) && !defined(PERL_BINCOMPAT_5005) |
cea2e8a9 GS |
473 | |
474 | /* Compatibility for various misnamed functions. All functions | |
475 | in the API that begin with "perl_" (not "Perl_") take an explicit | |
476 | interpreter context pointer. | |
477 | The following are not like that, but since they had a "perl_" | |
478 | prefix in previous versions, we provide compatibility macros. | |
479 | */ | |
65cec589 GS |
480 | # define perl_atexit(a,b) call_atexit(a,b) |
481 | # define perl_call_argv(a,b,c) call_argv(a,b,c) | |
482 | # define perl_call_pv(a,b) call_pv(a,b) | |
483 | # define perl_call_method(a,b) call_method(a,b) | |
484 | # define perl_call_sv(a,b) call_sv(a,b) | |
485 | # define perl_eval_sv(a,b) eval_sv(a,b) | |
486 | # define perl_eval_pv(a,b) eval_pv(a,b) | |
487 | # define perl_require_pv(a) require_pv(a) | |
488 | # define perl_get_sv(a,b) get_sv(a,b) | |
489 | # define perl_get_av(a,b) get_av(a,b) | |
490 | # define perl_get_hv(a,b) get_hv(a,b) | |
491 | # define perl_get_cv(a,b) get_cv(a,b) | |
492 | # define perl_init_i18nl10n(a) init_i18nl10n(a) | |
493 | # define perl_init_i18nl14n(a) init_i18nl14n(a) | |
494 | # define perl_new_ctype(a) new_ctype(a) | |
495 | # define perl_new_collate(a) new_collate(a) | |
496 | # define perl_new_numeric(a) new_numeric(a) | |
cea2e8a9 GS |
497 | |
498 | /* varargs functions can't be handled with CPP macros. :-( | |
499 | This provides a set of compatibility functions that don't take | |
500 | an extra argument but grab the context pointer using the macro | |
501 | dTHX. | |
502 | */ | |
c5be433b | 503 | #if defined(PERL_IMPLICIT_CONTEXT) && !defined(PERL_OBJECT) |
cea2e8a9 | 504 | # define croak Perl_croak_nocontext |
c5be433b | 505 | # define deb Perl_deb_nocontext |
cea2e8a9 GS |
506 | # define die Perl_die_nocontext |
507 | # define form Perl_form_nocontext | |
e4783991 | 508 | # define load_module Perl_load_module_nocontext |
5a844595 | 509 | # define mess Perl_mess_nocontext |
cea2e8a9 GS |
510 | # define newSVpvf Perl_newSVpvf_nocontext |
511 | # define sv_catpvf Perl_sv_catpvf_nocontext | |
512 | # define sv_setpvf Perl_sv_setpvf_nocontext | |
513 | # define warn Perl_warn_nocontext | |
c5be433b | 514 | # define warner Perl_warner_nocontext |
cea2e8a9 GS |
515 | # define sv_catpvf_mg Perl_sv_catpvf_mg_nocontext |
516 | # define sv_setpvf_mg Perl_sv_setpvf_mg_nocontext | |
517 | #endif | |
518 | ||
519 | #endif /* !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) */ | |
520 | ||
521 | #if !defined(PERL_IMPLICIT_CONTEXT) | |
522 | /* undefined symbols, point them back at the usual ones */ | |
523 | # define Perl_croak_nocontext Perl_croak | |
524 | # define Perl_die_nocontext Perl_die | |
c5be433b | 525 | # define Perl_deb_nocontext Perl_deb |
cea2e8a9 | 526 | # define Perl_form_nocontext Perl_form |
e4783991 | 527 | # define Perl_load_module_nocontext Perl_load_module |
5a844595 | 528 | # define Perl_mess_nocontext Perl_mess |
c5be433b GS |
529 | # define Perl_newSVpvf_nocontext Perl_newSVpvf |
530 | # define Perl_sv_catpvf_nocontext Perl_sv_catpvf | |
531 | # define Perl_sv_setpvf_nocontext Perl_sv_setpvf | |
cea2e8a9 | 532 | # define Perl_warn_nocontext Perl_warn |
c5be433b | 533 | # define Perl_warner_nocontext Perl_warner |
cea2e8a9 GS |
534 | # define Perl_sv_catpvf_mg_nocontext Perl_sv_catpvf_mg |
535 | # define Perl_sv_setpvf_mg_nocontext Perl_sv_setpvf_mg | |
536 | #endif | |
db5cf5a9 | 537 | |
d4cce5f1 NIS |
538 | END |
539 | ||
540 | close(EM); | |
541 | ||
542 | unlink 'embedvar.h'; | |
543 | open(EM, '> embedvar.h') | |
544 | or die "Can't create embedvar.h: $!\n"; | |
545 | ||
546 | print EM <<'END'; | |
547 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
cea2e8a9 | 548 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, |
c6af7a1a | 549 | perlvars.h and thrdvar.h. Any changes made here will be lost! |
d4cce5f1 NIS |
550 | */ |
551 | ||
552 | /* (Doing namespace management portably in C is really gross.) */ | |
553 | ||
54aff467 GS |
554 | /* |
555 | The following combinations of MULTIPLICITY, USE_THREADS, PERL_OBJECT | |
556 | and PERL_IMPLICIT_CONTEXT are supported: | |
557 | 1) none | |
558 | 2) MULTIPLICITY # supported for compatibility | |
559 | 3) MULTIPLICITY && PERL_IMPLICIT_CONTEXT | |
560 | 4) USE_THREADS && PERL_IMPLICIT_CONTEXT | |
561 | 5) MULTIPLICITY && USE_THREADS && PERL_IMPLICIT_CONTEXT | |
562 | 6) PERL_OBJECT && PERL_IMPLICIT_CONTEXT | |
563 | ||
564 | All other combinations of these flags are errors. | |
565 | ||
566 | #3, #4, #5, and #6 are supported directly, while #2 is a special | |
567 | case of #3 (supported by redefining vTHX appropriately). | |
568 | */ | |
cea2e8a9 | 569 | |
54aff467 GS |
570 | #if defined(MULTIPLICITY) |
571 | /* cases 2, 3 and 5 above */ | |
cea2e8a9 | 572 | |
54aff467 GS |
573 | # if defined(PERL_IMPLICIT_CONTEXT) |
574 | # define vTHX aTHX | |
575 | # else | |
576 | # define vTHX PERL_GET_INTERP | |
577 | # endif | |
cea2e8a9 | 578 | |
e50aee73 AD |
579 | END |
580 | ||
d4cce5f1 | 581 | for $sym (sort keys %thread) { |
54aff467 | 582 | print EM multon($sym,'T','vTHX->'); |
d4cce5f1 NIS |
583 | } |
584 | ||
585 | print EM <<'END'; | |
586 | ||
54aff467 GS |
587 | # if defined(PERL_OBJECT) |
588 | # include "error: PERL_OBJECT + MULTIPLICITY don't go together" | |
589 | # endif | |
d4cce5f1 | 590 | |
54aff467 GS |
591 | # if defined(USE_THREADS) |
592 | /* case 5 above */ | |
d4cce5f1 NIS |
593 | |
594 | END | |
595 | ||
596 | for $sym (sort keys %intrp) { | |
c5be433b | 597 | print EM multon($sym,'I','PERL_GET_INTERP->'); |
760ac839 | 598 | } |
760ac839 | 599 | |
55497cff | 600 | print EM <<'END'; |
601 | ||
54aff467 GS |
602 | # else /* !USE_THREADS */ |
603 | /* cases 2 and 3 above */ | |
55497cff | 604 | |
605 | END | |
760ac839 | 606 | |
d4cce5f1 | 607 | for $sym (sort keys %intrp) { |
54aff467 | 608 | print EM multon($sym,'I','vTHX->'); |
d4cce5f1 NIS |
609 | } |
610 | ||
611 | print EM <<'END'; | |
612 | ||
54aff467 | 613 | # endif /* USE_THREADS */ |
d4cce5f1 | 614 | |
54aff467 | 615 | #else /* !MULTIPLICITY */ |
1d7c1841 GS |
616 | |
617 | # if defined(PERL_OBJECT) | |
618 | /* case 6 above */ | |
619 | ||
620 | END | |
621 | ||
622 | for $sym (sort keys %thread) { | |
623 | print EM multon($sym,'T','aTHXo->interp.'); | |
624 | } | |
625 | ||
626 | ||
627 | for $sym (sort keys %intrp) { | |
628 | print EM multon($sym,'I','aTHXo->interp.'); | |
629 | } | |
630 | ||
631 | print EM <<'END'; | |
632 | ||
633 | # else /* !PERL_OBJECT */ | |
634 | ||
635 | /* cases 1 and 4 above */ | |
5f05dabc | 636 | |
56d28764 | 637 | END |
e50aee73 | 638 | |
d4cce5f1 | 639 | for $sym (sort keys %intrp) { |
54aff467 | 640 | print EM multoff($sym,'I'); |
d4cce5f1 NIS |
641 | } |
642 | ||
643 | print EM <<'END'; | |
644 | ||
1d7c1841 | 645 | # if defined(USE_THREADS) |
54aff467 | 646 | /* case 4 above */ |
d4cce5f1 NIS |
647 | |
648 | END | |
649 | ||
650 | for $sym (sort keys %thread) { | |
54aff467 | 651 | print EM multon($sym,'T','aTHX->'); |
5f05dabc | 652 | } |
653 | ||
654 | print EM <<'END'; | |
655 | ||
1d7c1841 GS |
656 | # else /* !USE_THREADS */ |
657 | /* case 1 above */ | |
d4cce5f1 NIS |
658 | |
659 | END | |
660 | ||
661 | for $sym (sort keys %thread) { | |
54aff467 | 662 | print EM multoff($sym,'T'); |
d4cce5f1 NIS |
663 | } |
664 | ||
665 | print EM <<'END'; | |
666 | ||
1d7c1841 GS |
667 | # endif /* USE_THREADS */ |
668 | # endif /* PERL_OBJECT */ | |
54aff467 | 669 | #endif /* MULTIPLICITY */ |
d4cce5f1 | 670 | |
54aff467 | 671 | #if defined(PERL_GLOBAL_STRUCT) |
22239a37 NIS |
672 | |
673 | END | |
674 | ||
675 | for $sym (sort keys %globvar) { | |
533c011a | 676 | print EM multon($sym,'G','PL_Vars.'); |
22239a37 NIS |
677 | } |
678 | ||
679 | print EM <<'END'; | |
680 | ||
681 | #else /* !PERL_GLOBAL_STRUCT */ | |
682 | ||
683 | END | |
684 | ||
685 | for $sym (sort keys %globvar) { | |
686 | print EM multoff($sym,'G'); | |
687 | } | |
688 | ||
689 | print EM <<'END'; | |
690 | ||
22239a37 NIS |
691 | #endif /* PERL_GLOBAL_STRUCT */ |
692 | ||
85add8c2 | 693 | #ifdef PERL_POLLUTE /* disabled by default in 5.6.0 */ |
84fee439 NIS |
694 | |
695 | END | |
696 | ||
697 | for $sym (sort @extvars) { | |
698 | print EM hide($sym,"PL_$sym"); | |
699 | } | |
700 | ||
701 | print EM <<'END'; | |
702 | ||
db5cf5a9 | 703 | #endif /* PERL_POLLUTE */ |
84fee439 NIS |
704 | END |
705 | ||
3fe35a81 | 706 | close(EM); |
c6af7a1a GS |
707 | |
708 | unlink 'objXSUB.h'; | |
709 | open(OBX, '> objXSUB.h') | |
710 | or die "Can't create objXSUB.h: $!\n"; | |
711 | ||
712 | print OBX <<'EOT'; | |
713 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
cea2e8a9 | 714 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, |
c6af7a1a GS |
715 | perlvars.h and thrdvar.h. Any changes made here will be lost! |
716 | */ | |
717 | ||
718 | #ifndef __objXSUB_h__ | |
719 | #define __objXSUB_h__ | |
720 | ||
6f4183fe | 721 | /* method calls via pPerl (static functions without a "this" pointer need these) */ |
c6af7a1a | 722 | |
6f4183fe | 723 | #if defined(PERL_CORE) && defined(PERL_OBJECT) |
c5be433b GS |
724 | |
725 | /* XXX soon to be eliminated, only a few things in PERLCORE need these now */ | |
726 | ||
c6af7a1a GS |
727 | EOT |
728 | ||
cea2e8a9 GS |
729 | walk_table { |
730 | my $ret = ""; | |
731 | if (@_ == 1) { | |
732 | my $arg = shift; | |
12a98ad5 | 733 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifn?def|else|endif)\b/; |
cea2e8a9 GS |
734 | } |
735 | else { | |
736 | my ($flags,$retval,$func,@args) = @_; | |
954c1994 | 737 | if ($flags =~ /A/ && $flags !~ /j/) { # API function needing macros |
cea2e8a9 | 738 | if ($flags =~ /p/) { |
0cb96387 GS |
739 | $ret .= undefine("Perl_$func") . hide("Perl_$func","pPerl->Perl_$func"); |
740 | $ret .= undefine($func) . hide($func,"Perl_$func"); | |
741 | } | |
742 | else { | |
cea2e8a9 GS |
743 | $ret .= undefine($func) . hide($func,"pPerl->$func"); |
744 | } | |
745 | } | |
746 | } | |
747 | $ret; | |
748 | } \*OBX; | |
c6af7a1a | 749 | |
954c1994 GS |
750 | # NOTE: not part of API |
751 | #for $sym (sort keys %ppsym) { | |
752 | # $sym =~ s/^Perl_//; | |
753 | # print OBX undefine("Perl_$sym") . hide("Perl_$sym", "pPerl->Perl_$sym"); | |
754 | # print OBX undefine($sym) . hide($sym, "Perl_$sym"); | |
755 | #} | |
c6af7a1a | 756 | |
c6af7a1a GS |
757 | print OBX <<'EOT'; |
758 | ||
6f4183fe | 759 | #endif /* PERL_CORE && PERL_OBJECT */ |
c6af7a1a GS |
760 | #endif /* __objXSUB_h__ */ |
761 | EOT | |
762 | ||
763 | close(OBX); | |
cea2e8a9 | 764 | |
51371543 GS |
765 | unlink 'perlapi.h'; |
766 | unlink 'perlapi.c'; | |
767 | open(CAPI, '> perlapi.c') or die "Can't create perlapi.c: $!\n"; | |
768 | open(CAPIH, '> perlapi.h') or die "Can't create perlapi.h: $!\n"; | |
769 | ||
770 | print CAPIH <<'EOT'; | |
771 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
772 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, | |
773 | perlvars.h and thrdvar.h. Any changes made here will be lost! | |
774 | */ | |
775 | ||
51371543 | 776 | /* declare accessor functions for Perl variables */ |
6f4183fe GS |
777 | #ifndef __perlapi_h__ |
778 | #define __perlapi_h__ | |
51371543 | 779 | |
6f4183fe | 780 | #if defined(PERL_OBJECT) || defined (MULTIPLICITY) |
c5be433b GS |
781 | |
782 | #if defined(PERL_OBJECT) | |
783 | # undef aTHXo | |
784 | # define aTHXo pPerl | |
785 | # undef aTHXo_ | |
786 | # define aTHXo_ aTHXo, | |
c5be433b GS |
787 | #endif /* PERL_OBJECT */ |
788 | ||
51371543 GS |
789 | START_EXTERN_C |
790 | ||
791 | #undef PERLVAR | |
792 | #undef PERLVARA | |
793 | #undef PERLVARI | |
794 | #undef PERLVARIC | |
c5be433b | 795 | #define PERLVAR(v,t) EXTERN_C t* Perl_##v##_ptr(pTHXo); |
51371543 | 796 | #define PERLVARA(v,n,t) typedef t PL_##v##_t[n]; \ |
c5be433b | 797 | EXTERN_C PL_##v##_t* Perl_##v##_ptr(pTHXo); |
51371543 | 798 | #define PERLVARI(v,t,i) PERLVAR(v,t) |
c5be433b | 799 | #define PERLVARIC(v,t,i) PERLVAR(v, const t) |
51371543 GS |
800 | |
801 | #include "thrdvar.h" | |
802 | #include "intrpvar.h" | |
803 | #include "perlvars.h" | |
804 | ||
805 | #undef PERLVAR | |
806 | #undef PERLVARA | |
807 | #undef PERLVARI | |
808 | #undef PERLVARIC | |
809 | ||
810 | END_EXTERN_C | |
811 | ||
682fc664 | 812 | #if defined(PERL_CORE) |
6f4183fe | 813 | |
682fc664 GS |
814 | /* accessor functions for Perl variables (provide binary compatibility) */ |
815 | ||
816 | /* these need to be mentioned here, or most linkers won't put them in | |
817 | the perl executable */ | |
818 | ||
819 | #ifndef PERL_NO_FORCE_LINK | |
820 | ||
821 | START_EXTERN_C | |
822 | ||
823 | #ifndef DOINIT | |
824 | EXT void *PL_force_link_funcs[]; | |
825 | #else | |
826 | EXT void *PL_force_link_funcs[] = { | |
827 | #undef PERLVAR | |
828 | #undef PERLVARA | |
829 | #undef PERLVARI | |
830 | #undef PERLVARIC | |
ea1f607c | 831 | #define PERLVAR(v,t) (void*)Perl_##v##_ptr, |
682fc664 GS |
832 | #define PERLVARA(v,n,t) PERLVAR(v,t) |
833 | #define PERLVARI(v,t,i) PERLVAR(v,t) | |
834 | #define PERLVARIC(v,t,i) PERLVAR(v,t) | |
835 | ||
836 | #include "thrdvar.h" | |
837 | #include "intrpvar.h" | |
838 | #include "perlvars.h" | |
839 | ||
840 | #undef PERLVAR | |
841 | #undef PERLVARA | |
842 | #undef PERLVARI | |
843 | #undef PERLVARIC | |
844 | }; | |
845 | #endif /* DOINIT */ | |
846 | ||
847 | START_EXTERN_C | |
848 | ||
849 | #endif /* PERL_NO_FORCE_LINK */ | |
850 | ||
851 | #else /* !PERL_CORE */ | |
51371543 GS |
852 | |
853 | EOT | |
854 | ||
6f4183fe GS |
855 | foreach my $sym (sort keys %intrp) { |
856 | print CAPIH bincompat_var('I',$sym); | |
857 | } | |
858 | ||
859 | foreach my $sym (sort keys %thread) { | |
860 | print CAPIH bincompat_var('T',$sym); | |
861 | } | |
862 | ||
863 | foreach my $sym (sort keys %globvar) { | |
864 | print CAPIH bincompat_var('G',$sym); | |
865 | } | |
866 | ||
867 | print CAPIH <<'EOT'; | |
868 | ||
869 | #endif /* !PERL_CORE */ | |
870 | #endif /* PERL_OBJECT || MULTIPLICITY */ | |
871 | ||
872 | #endif /* __perlapi_h__ */ | |
873 | ||
874 | EOT | |
d98f61e7 | 875 | close CAPIH; |
51371543 GS |
876 | |
877 | print CAPI <<'EOT'; | |
878 | /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | |
879 | This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, | |
880 | perlvars.h and thrdvar.h. Any changes made here will be lost! | |
881 | */ | |
882 | ||
883 | #include "EXTERN.h" | |
884 | #include "perl.h" | |
885 | #include "perlapi.h" | |
886 | ||
6f4183fe | 887 | #if defined(PERL_OBJECT) || defined (MULTIPLICITY) |
51371543 GS |
888 | |
889 | /* accessor functions for Perl variables (provides binary compatibility) */ | |
890 | START_EXTERN_C | |
891 | ||
892 | #undef PERLVAR | |
893 | #undef PERLVARA | |
894 | #undef PERLVARI | |
895 | #undef PERLVARIC | |
6f4183fe GS |
896 | |
897 | #if defined(PERL_OBJECT) | |
c5be433b | 898 | #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHXo) \ |
1d7c1841 | 899 | { return &(aTHXo->interp.v); } |
c5be433b | 900 | #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHXo) \ |
1d7c1841 | 901 | { return &(aTHXo->interp.v); } |
6f4183fe GS |
902 | #else /* MULTIPLICITY */ |
903 | #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \ | |
904 | { return &(aTHX->v); } | |
905 | #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \ | |
906 | { return &(aTHX->v); } | |
907 | #endif | |
908 | ||
51371543 | 909 | #define PERLVARI(v,t,i) PERLVAR(v,t) |
c5be433b | 910 | #define PERLVARIC(v,t,i) PERLVAR(v, const t) |
51371543 GS |
911 | |
912 | #include "thrdvar.h" | |
913 | #include "intrpvar.h" | |
c5be433b GS |
914 | |
915 | #undef PERLVAR | |
916 | #undef PERLVARA | |
917 | #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHXo) \ | |
918 | { return &(PL_##v); } | |
919 | #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHXo) \ | |
920 | { return &(PL_##v); } | |
0dff5aa1 GS |
921 | #undef PERLVARIC |
922 | #define PERLVARIC(v,t,i) const t* Perl_##v##_ptr(pTHXo) \ | |
923 | { return (const t *)&(PL_##v); } | |
51371543 GS |
924 | #include "perlvars.h" |
925 | ||
926 | #undef PERLVAR | |
927 | #undef PERLVARA | |
928 | #undef PERLVARI | |
929 | #undef PERLVARIC | |
930 | ||
6f4183fe GS |
931 | #if defined(PERL_OBJECT) |
932 | ||
933 | /* C-API layer for PERL_OBJECT */ | |
934 | ||
51371543 GS |
935 | EOT |
936 | ||
c5be433b | 937 | # functions that take va_list* for implementing vararg functions |
08cd8952 | 938 | # NOTE: makedef.pl must be updated if you add symbols to %vfuncs |
c5be433b GS |
939 | my %vfuncs = qw( |
940 | Perl_croak Perl_vcroak | |
941 | Perl_warn Perl_vwarn | |
942 | Perl_warner Perl_vwarner | |
943 | Perl_die Perl_vdie | |
944 | Perl_form Perl_vform | |
e4783991 | 945 | Perl_load_module Perl_vload_module |
5a844595 | 946 | Perl_mess Perl_vmess |
c5be433b GS |
947 | Perl_deb Perl_vdeb |
948 | Perl_newSVpvf Perl_vnewSVpvf | |
949 | Perl_sv_setpvf Perl_sv_vsetpvf | |
950 | Perl_sv_setpvf_mg Perl_sv_vsetpvf_mg | |
951 | Perl_sv_catpvf Perl_sv_vcatpvf | |
952 | Perl_sv_catpvf_mg Perl_sv_vcatpvf_mg | |
953 | Perl_dump_indent Perl_dump_vindent | |
954 | Perl_default_protect Perl_vdefault_protect | |
955 | ); | |
956 | ||
51371543 | 957 | sub emit_func { |
c5be433b | 958 | my ($addcontext, $rettype,$func,@args) = @_; |
51371543 | 959 | my @aargs = @args; |
954c1994 GS |
960 | my $a; |
961 | for $a (@aargs) { $a =~ s/^.*\b(\w+)$/$1/ } | |
c5be433b GS |
962 | my $ctxarg = ''; |
963 | if (not $addcontext) { | |
964 | $ctxarg = 'pTHXo'; | |
965 | $ctxarg .= '_ ' if @args; | |
966 | } | |
967 | my $decl = ''; | |
968 | if ($addcontext) { | |
969 | $decl .= " dTHXo;\n"; | |
970 | } | |
51371543 | 971 | local $" = ', '; |
c5be433b GS |
972 | my $return = ($rettype =~ /^\s*(void|Free_t|Signal_t)\s*$/ |
973 | ? '' : 'return '); | |
974 | my $emitval = ''; | |
975 | if (@args and $args[$#args] =~ /\.\.\./) { | |
c5be433b GS |
976 | pop @aargs; |
977 | my $retarg = ''; | |
978 | my $ctxfunc = $func; | |
979 | $ctxfunc =~ s/_nocontext$//; | |
980 | return $emitval unless exists $vfuncs{$ctxfunc}; | |
981 | if (length $return) { | |
982 | $decl .= " $rettype retval;\n"; | |
983 | $retarg .= "retval = "; | |
984 | $return = "\n ${return}retval;\n"; | |
985 | } | |
986 | $emitval .= <<EOT | |
987 | $rettype | |
988 | $func($ctxarg@args) | |
51371543 | 989 | { |
c5be433b GS |
990 | $decl va_list args; |
991 | va_start(args, $aargs[$#aargs]); | |
992 | $retarg((CPerlObj*)pPerl)->$vfuncs{$ctxfunc}(@aargs, &args); | |
993 | va_end(args);$return | |
51371543 GS |
994 | } |
995 | EOT | |
c5be433b GS |
996 | } |
997 | else { | |
998 | $emitval .= <<EOT | |
999 | $rettype | |
1000 | $func($ctxarg@args) | |
1001 | { | |
1002 | $decl $return((CPerlObj*)pPerl)->$func(@aargs); | |
1003 | } | |
1004 | EOT | |
1005 | } | |
1006 | $emitval; | |
51371543 GS |
1007 | } |
1008 | ||
1009 | # XXXX temporary hack | |
954c1994 GS |
1010 | my $sym; |
1011 | for $sym (qw( | |
51371543 GS |
1012 | perl_construct |
1013 | perl_destruct | |
1014 | perl_free | |
1015 | perl_run | |
1016 | perl_parse | |
1017 | )) | |
1018 | { | |
1019 | $skipapi_funcs{$sym}++; | |
1020 | } | |
1021 | ||
1022 | walk_table { | |
1023 | my $ret = ""; | |
1024 | if (@_ == 1) { | |
1025 | my $arg = shift; | |
12a98ad5 | 1026 | $ret .= "$arg\n" if $arg =~ /^#\s*(if|ifn?def|else|endif)\b/; |
51371543 GS |
1027 | } |
1028 | else { | |
1029 | my ($flags,$retval,$func,@args) = @_; | |
1030 | return $ret if exists $skipapi_funcs{$func}; | |
954c1994 | 1031 | if ($flags =~ /A/ && $flags !~ /j/) { # in public API, needed for XSUBS |
c5be433b GS |
1032 | $ret .= "\n"; |
1033 | my $addctx = 1 if $flags =~ /n/; | |
1034 | if ($flags =~ /p/) { | |
1035 | $ret .= undefine("Perl_$func"); | |
1036 | $ret .= emit_func($addctx,$retval,"Perl_$func",@args); | |
1037 | } | |
1038 | else { | |
1039 | $ret .= undefine($func); | |
1040 | $ret .= emit_func($addctx,$retval,$func,@args); | |
51371543 GS |
1041 | } |
1042 | } | |
1043 | } | |
1044 | $ret; | |
1045 | } \*CAPI; | |
1046 | ||
954c1994 GS |
1047 | # NOTE: not part of the API |
1048 | #for $sym (sort keys %ppsym) { | |
1049 | # $sym =~ s/^Perl_//; | |
1050 | # print CAPI "\n"; | |
1051 | # print CAPI undefine("Perl_$sym"); | |
1052 | # if ($sym =~ /^ck_/) { | |
1053 | # print CAPI emit_func(0, 'OP *',"Perl_$sym",'OP *o'); | |
1054 | # } | |
1055 | # else { # pp_foo | |
1056 | # print CAPI emit_func(0, 'OP *',"Perl_$sym"); | |
1057 | # } | |
1058 | #} | |
51371543 GS |
1059 | |
1060 | print CAPI <<'EOT'; | |
1061 | ||
c5be433b GS |
1062 | #undef Perl_fprintf_nocontext |
1063 | int | |
1064 | Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...) | |
1065 | { | |
1066 | dTHXo; | |
1067 | va_list(arglist); | |
1068 | va_start(arglist, format); | |
1d7c1841 | 1069 | return (*PL_StdIO->pVprintf)(PL_StdIO, stream, format, arglist); |
c5be433b GS |
1070 | } |
1071 | ||
241ea079 GS |
1072 | #undef Perl_printf_nocontext |
1073 | int | |
1074 | Perl_printf_nocontext(const char *format, ...) | |
1075 | { | |
1076 | dTHXo; | |
1077 | va_list(arglist); | |
1078 | va_start(arglist, format); | |
1079 | return (*PL_StdIO->pVprintf)(PL_StdIO, PerlIO_stdout(), format, arglist); | |
1080 | } | |
1081 | ||
51371543 GS |
1082 | END_EXTERN_C |
1083 | ||
1084 | #endif /* PERL_OBJECT */ | |
6f4183fe | 1085 | #endif /* PERL_OBJECT || MULTIPLICITY */ |
51371543 GS |
1086 | EOT |
1087 | ||
954c1994 GS |
1088 | close(CAPI); |
1089 | ||
1090 | # autogenerate documentation from comments in source files | |
1091 | ||
1092 | my %apidocs; | |
1093 | my %gutsdocs; | |
1094 | my %docfuncs; | |
1095 | ||
639ce7b8 GS |
1096 | sub autodoc ($$) { # parse a file and extract documentation info |
1097 | my($fh,$file) = @_; | |
1a5780eb | 1098 | my($in, $doc, $line); |
954c1994 GS |
1099 | FUNC: |
1100 | while (defined($in = <$fh>)) { | |
1a5780eb | 1101 | $line++; |
954c1994 GS |
1102 | if ($in =~ /^=for\s+apidoc\s+(.*)\n/) { |
1103 | my $proto = $1; | |
1104 | $proto = "||$proto" unless $proto =~ /\|/; | |
1105 | my($flags, $ret, $name, @args) = split /\|/, $proto; | |
1106 | my $docs = ""; | |
1107 | DOC: | |
1108 | while (defined($doc = <$fh>)) { | |
1a5780eb | 1109 | $line++; |
954c1994 | 1110 | last DOC if $doc =~ /^=\w+/; |
1a5780eb GS |
1111 | if ($doc =~ m:^\*/$:) { |
1112 | warn "=cut missing? $file:$line:$doc";; | |
1113 | last DOC; | |
1114 | } | |
954c1994 GS |
1115 | $docs .= $doc; |
1116 | } | |
1117 | $docs = "\n$docs" if $docs and $docs !~ /^\n/; | |
1118 | if ($flags =~ /m/) { | |
1119 | if ($flags =~ /A/) { | |
639ce7b8 | 1120 | $apidocs{$name} = [$flags, $docs, $ret, $file, @args]; |
954c1994 GS |
1121 | } |
1122 | else { | |
639ce7b8 | 1123 | $gutsdocs{$name} = [$flags, $docs, $ret, $file, @args]; |
954c1994 GS |
1124 | } |
1125 | } | |
1126 | else { | |
639ce7b8 | 1127 | $docfuncs{$name} = [$flags, $docs, $ret, $file, @args]; |
954c1994 | 1128 | } |
1a5780eb GS |
1129 | if (defined $doc) { |
1130 | if ($doc =~ /^=for/) { | |
1131 | $in = $doc; | |
1132 | redo FUNC; | |
1133 | } | |
1134 | } else { | |
1135 | warn "$file:$line:$in"; | |
954c1994 GS |
1136 | } |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | sub docout ($$$) { # output the docs for one function | |
1142 | my($fh, $name, $docref) = @_; | |
639ce7b8 | 1143 | my($flags, $docs, $ret, $file, @args) = @$docref; |
954c1994 | 1144 | |
a40b7efc HS |
1145 | $docs .= "NOTE: this function is experimental and may change or be |
1146 | removed without notice.\n\n" if $flags =~ /x/; | |
954c1994 GS |
1147 | $docs .= "NOTE: the perl_ form of this function is deprecated.\n\n" |
1148 | if $flags =~ /p/; | |
1149 | ||
1150 | print $fh "=item $name\n$docs"; | |
1151 | ||
1152 | if ($flags =~ /U/) { # no usage | |
1153 | # nothing | |
1154 | } elsif ($flags =~ /s/) { # semicolon ("dTHR;") | |
1155 | print $fh "\t\t$name;\n\n"; | |
1156 | } elsif ($flags =~ /n/) { # no args | |
1157 | print $fh "\t$ret\t$name\n\n"; | |
1158 | } else { # full usage | |
1159 | print $fh "\t$ret\t$name"; | |
1160 | print $fh "(" . join(", ", @args) . ")"; | |
1161 | print $fh "\n\n"; | |
1162 | } | |
639ce7b8 | 1163 | print $fh "=for hackers\nFound in file $file\n\n"; |
954c1994 GS |
1164 | } |
1165 | ||
1166 | my $file; | |
1167 | for $file (glob('*.c'), glob('*.h')) { | |
1168 | open F, "< $file" or die "Cannot open $file for docs: $!\n"; | |
639ce7b8 | 1169 | autodoc(\*F,$file); |
954c1994 GS |
1170 | close F or die "Error closing $file: $!\n"; |
1171 | } | |
1172 | ||
1173 | unlink "pod/perlapi.pod"; | |
1174 | open (DOC, ">pod/perlapi.pod") or | |
1175 | die "Can't create pod/perlapi.pod: $!\n"; | |
1176 | ||
1177 | walk_table { # load documented functions into approriate hash | |
1178 | if (@_ > 1) { | |
1179 | my($flags, $retval, $func, @args) = @_; | |
1180 | return "" unless $flags =~ /d/; | |
1181 | $func =~ s/\t//g; $flags =~ s/p//; # clean up fields from embed.pl | |
1182 | $retval =~ s/\t//; | |
1183 | if ($flags =~ /A/) { | |
1184 | my $docref = delete $docfuncs{$func}; | |
1185 | warn "no docs for $func\n" unless $docref and @$docref; | |
a40b7efc | 1186 | $docref->[0].="x" if $flags =~ /M/; |
639ce7b8 GS |
1187 | $apidocs{$func} = [$docref->[0] . 'A', $docref->[1], $retval, |
1188 | $docref->[3], @args]; | |
954c1994 GS |
1189 | } else { |
1190 | my $docref = delete $docfuncs{$func}; | |
639ce7b8 GS |
1191 | $gutsdocs{$func} = [$docref->[0], $docref->[1], $retval, |
1192 | $docref->[3], @args]; | |
954c1994 GS |
1193 | } |
1194 | } | |
1195 | return ""; | |
1196 | } \*DOC; | |
1197 | ||
1198 | for (sort keys %docfuncs) { | |
1a5780eb GS |
1199 | # Have you used a full for apidoc or just a func name? |
1200 | # Have you used Ap instead of Am in the for apidoc? | |
954c1994 GS |
1201 | warn "Unable to place $_!\n"; |
1202 | } | |
1203 | ||
1204 | print DOC <<'_EOB_'; | |
1205 | =head1 NAME | |
1206 | ||
1207 | perlapi - autogenerated documentation for the perl public API | |
1208 | ||
1209 | =head1 DESCRIPTION | |
1210 | ||
1211 | This file contains the documentation of the perl public API generated by | |
1212 | embed.pl, specifically a listing of functions, macros, flags, and variables | |
1213 | that may be used by extension writers. The interfaces of any functions that | |
1214 | are not listed here are subject to change without notice. For this reason, | |
1215 | blindly using functions listed in proto.h is to be avoided when writing | |
1216 | extensions. | |
1217 | ||
1218 | Note that all Perl API global variables must be referenced with the C<PL_> | |
1219 | prefix. Some macros are provided for compatibility with the older, | |
1220 | unadorned names, but this support may be disabled in a future release. | |
1221 | ||
1222 | The listing is alphabetical, case insensitive. | |
1223 | ||
1224 | =over 8 | |
1225 | ||
1226 | _EOB_ | |
1227 | ||
1228 | my $key; | |
1229 | for $key (sort { uc($a) cmp uc($b); } keys %apidocs) { # case insensitive sort | |
1230 | docout(\*DOC, $key, $apidocs{$key}); | |
1231 | } | |
1232 | ||
1233 | print DOC <<'_EOE_'; | |
1234 | =back | |
1235 | ||
1236 | =head1 AUTHORS | |
1237 | ||
1238 | Until May 1997, this document was maintained by Jeff Okamoto | |
1239 | <okamoto@corp.hp.com>. It is now maintained as part of Perl itself. | |
1240 | ||
1241 | With lots of help and suggestions from Dean Roehrich, Malcolm Beattie, | |
1242 | Andreas Koenig, Paul Hudson, Ilya Zakharevich, Paul Marquess, Neil | |
1243 | Bowers, Matthew Green, Tim Bunce, Spider Boardman, Ulrich Pfeifer, | |
1244 | Stephen McCamant, and Gurusamy Sarathy. | |
1245 | ||
1246 | API Listing originally by Dean Roehrich <roehrich@cray.com>. | |
1247 | ||
1248 | Updated to be autogenerated from comments in the source by Benjamin Stuhl. | |
1249 | ||
1250 | =head1 SEE ALSO | |
1251 | ||
1252 | perlguts(1), perlxs(1), perlxstut(1), perlintern(1) | |
1253 | ||
1254 | _EOE_ | |
1255 | ||
1256 | ||
1257 | close(DOC); | |
1258 | ||
1259 | open(GUTS, ">pod/perlintern.pod") or | |
1260 | die "Unable to create pod/perlintern.pod: $!\n"; | |
1261 | print GUTS <<'END'; | |
1262 | =head1 NAME | |
1263 | ||
1264 | perlintern - autogenerated documentation of purely B<internal> | |
1265 | Perl functions | |
1266 | ||
1267 | =head1 DESCRIPTION | |
1268 | ||
1269 | This file is the autogenerated documentation of functions in the | |
4375e838 | 1270 | Perl interpreter that are documented using Perl's internal documentation |
954c1994 GS |
1271 | format but are not marked as part of the Perl API. In other words, |
1272 | B<they are not for use in extensions>! | |
1273 | ||
1274 | =over 8 | |
1275 | ||
1276 | END | |
1277 | ||
1278 | for $key (sort { uc($a) cmp uc($b); } keys %gutsdocs) { | |
1279 | docout(\*GUTS, $key, $gutsdocs{$key}); | |
1280 | } | |
1281 | ||
1282 | print GUTS <<'END'; | |
1283 | =back | |
1284 | ||
1285 | =head1 AUTHORS | |
1286 | ||
4375e838 | 1287 | The autodocumentation system was originally added to the Perl core by |
954c1994 GS |
1288 | Benjamin Stuhl. Documentation is by whoever was kind enough to |
1289 | document their functions. | |
1290 | ||
1291 | =head1 SEE ALSO | |
1292 | ||
1293 | perlguts(1), perlapi(1) | |
1294 | ||
1295 | END | |
1296 | ||
1297 | close GUTS; | |
1298 | ||
1299 | ||
cea2e8a9 GS |
1300 | __END__ |
1301 | ||
1d7c1841 GS |
1302 | : Lines are of the form: |
1303 | : flags|return_type|function_name|arg1|arg2|...|argN | |
1304 | : | |
1305 | : A line may be continued on another by ending it with a backslash. | |
1306 | : Leading and trailing whitespace will be ignored in each component. | |
1307 | : | |
1308 | : flags are single letters with following meanings: | |
954c1994 GS |
1309 | : A member of public API |
1310 | : d function has documentation with its source | |
1d7c1841 | 1311 | : s static function, should have an S_ prefix in source |
954c1994 | 1312 | : file |
1d7c1841 GS |
1313 | : n has no implicit interpreter/thread context argument |
1314 | : p function has a Perl_ prefix | |
894356b3 | 1315 | : f function takes printf style format string, varargs |
1d7c1841 GS |
1316 | : r function never returns |
1317 | : o has no compatibility macro (#define foo Perl_foo) | |
1318 | : j not a member of CPerlObj | |
1319 | : x not exported | |
a40b7efc | 1320 | : M may change |
1d7c1841 GS |
1321 | : |
1322 | : Individual flags may be separated by whitespace. | |
1323 | : | |
1324 | : New global functions should be added at the end for binary compatibility | |
1325 | : in some configurations. | |
1d7c1841 GS |
1326 | |
1327 | START_EXTERN_C | |
1328 | ||
1329 | #if defined(PERL_IMPLICIT_SYS) | |
954c1994 | 1330 | Ajno |PerlInterpreter* |perl_alloc_using \ |
1d7c1841 GS |
1331 | |struct IPerlMem* m|struct IPerlMem* ms \ |
1332 | |struct IPerlMem* mp|struct IPerlEnv* e \ | |
1333 | |struct IPerlStdIO* io|struct IPerlLIO* lio \ | |
1334 | |struct IPerlDir* d|struct IPerlSock* s \ | |
1335 | |struct IPerlProc* p | |
1d7c1841 | 1336 | #endif |
b46bc2b6 | 1337 | Ajnod |PerlInterpreter* |perl_alloc |
954c1994 GS |
1338 | Ajnod |void |perl_construct |PerlInterpreter* interp |
1339 | Ajnod |void |perl_destruct |PerlInterpreter* interp | |
1340 | Ajnod |void |perl_free |PerlInterpreter* interp | |
1341 | Ajnod |int |perl_run |PerlInterpreter* interp | |
1342 | Ajnod |int |perl_parse |PerlInterpreter* interp|XSINIT_t xsinit \ | |
1d7c1841 GS |
1343 | |int argc|char** argv|char** env |
1344 | #if defined(USE_ITHREADS) | |
954c1994 GS |
1345 | : XXX: perl_clone needs docs |
1346 | Ajno |PerlInterpreter*|perl_clone|PerlInterpreter* interp, UV flags | |
1d7c1841 | 1347 | # if defined(PERL_IMPLICIT_SYS) |
954c1994 | 1348 | Ajno |PerlInterpreter*|perl_clone_using|PerlInterpreter *interp|UV flags \ |
1d7c1841 GS |
1349 | |struct IPerlMem* m|struct IPerlMem* ms \ |
1350 | |struct IPerlMem* mp|struct IPerlEnv* e \ | |
1351 | |struct IPerlStdIO* io|struct IPerlLIO* lio \ | |
1352 | |struct IPerlDir* d|struct IPerlSock* s \ | |
1353 | |struct IPerlProc* p | |
1354 | # endif | |
1355 | #endif | |
1356 | ||
1357 | #if defined(MYMALLOC) | |
954c1994 GS |
1358 | Ajnop |Malloc_t|malloc |MEM_SIZE nbytes |
1359 | Ajnop |Malloc_t|calloc |MEM_SIZE elements|MEM_SIZE size | |
1360 | Ajnop |Malloc_t|realloc |Malloc_t where|MEM_SIZE nbytes | |
1361 | Ajnop |Free_t |mfree |Malloc_t where | |
1d7c1841 GS |
1362 | jnp |MEM_SIZE|malloced_size |void *p |
1363 | #endif | |
cea2e8a9 | 1364 | |
ba869deb GS |
1365 | Ajnp |void* |get_context |
1366 | Ajnp |void |set_context |void *thx | |
1367 | ||
1d7c1841 GS |
1368 | END_EXTERN_C |
1369 | ||
1370 | /* functions with flag 'n' should come before here */ | |
0cb96387 | 1371 | #if defined(PERL_OBJECT) |
1d7c1841 | 1372 | class CPerlObj { |
0cb96387 | 1373 | public: |
1d7c1841 GS |
1374 | struct interpreter interp; |
1375 | CPerlObj(IPerlMem*, IPerlMem*, IPerlMem*, IPerlEnv*, IPerlStdIO*, | |
1376 | IPerlLIO*, IPerlDir*, IPerlSock*, IPerlProc*); | |
1377 | void* operator new(size_t nSize, IPerlMem *pvtbl); | |
12a98ad5 | 1378 | #ifndef __BORLANDC__ |
1d7c1841 | 1379 | static void operator delete(void* pPerl, IPerlMem *pvtbl); |
12a98ad5 | 1380 | #endif |
1d7c1841 GS |
1381 | int do_aspawn (void *vreally, void **vmark, void **vsp); |
1382 | #endif | |
1383 | #if defined(PERL_OBJECT) | |
1384 | public: | |
1385 | #else | |
1386 | START_EXTERN_C | |
0cb96387 | 1387 | #endif |
1d7c1841 | 1388 | # include "pp_proto.h" |
954c1994 GS |
1389 | Ap |SV* |amagic_call |SV* left|SV* right|int method|int dir |
1390 | Ap |bool |Gv_AMupdate |HV* stash | |
cea2e8a9 GS |
1391 | p |OP* |append_elem |I32 optype|OP* head|OP* tail |
1392 | p |OP* |append_list |I32 optype|LISTOP* first|LISTOP* last | |
1393 | p |I32 |apply |I32 type|SV** mark|SV** sp | |
67368f91 | 1394 | Ap |void |apply_attrs_string|char *stashpv|CV *cv|char *attrstr|STRLEN len |
954c1994 GS |
1395 | Ap |SV* |avhv_delete_ent|AV *ar|SV* keysv|I32 flags|U32 hash |
1396 | Ap |bool |avhv_exists_ent|AV *ar|SV* keysv|U32 hash | |
1397 | Ap |SV** |avhv_fetch_ent |AV *ar|SV* keysv|I32 lval|U32 hash | |
10c8fecd | 1398 | Ap |SV** |avhv_store_ent |AV *ar|SV* keysv|SV* val|U32 hash |
954c1994 GS |
1399 | Ap |HE* |avhv_iternext |AV *ar |
1400 | Ap |SV* |avhv_iterval |AV *ar|HE* entry | |
1401 | Ap |HV* |avhv_keys |AV *ar | |
1402 | Apd |void |av_clear |AV* ar | |
c16eb38b GS |
1403 | Apd |SV* |av_delete |AV* ar|I32 key|I32 flags |
1404 | Apd |bool |av_exists |AV* ar|I32 key | |
954c1994 | 1405 | Apd |void |av_extend |AV* ar|I32 key |
c16eb38b | 1406 | p |AV* |av_fake |I32 size|SV** svp |
954c1994 | 1407 | Apd |SV** |av_fetch |AV* ar|I32 key|I32 lval |
c16eb38b | 1408 | Apd |void |av_fill |AV* ar|I32 fill |
954c1994 GS |
1409 | Apd |I32 |av_len |AV* ar |
1410 | Apd |AV* |av_make |I32 size|SV** svp | |
1411 | Apd |SV* |av_pop |AV* ar | |
1412 | Apd |void |av_push |AV* ar|SV* val | |
c16eb38b | 1413 | p |void |av_reify |AV* ar |
954c1994 GS |
1414 | Apd |SV* |av_shift |AV* ar |
1415 | Apd |SV** |av_store |AV* ar|I32 key|SV* val | |
1416 | Apd |void |av_undef |AV* ar | |
1417 | Apd |void |av_unshift |AV* ar|I32 num | |
cea2e8a9 GS |
1418 | p |OP* |bind_match |I32 type|OP* left|OP* pat |
1419 | p |OP* |block_end |I32 floor|OP* seq | |
954c1994 | 1420 | Ap |I32 |block_gimme |
cea2e8a9 GS |
1421 | p |int |block_start |int full |
1422 | p |void |boot_core_UNIVERSAL | |
1be9d9c6 | 1423 | Ap |void |call_list |I32 oldscope|AV* av_list |
7f4774ae | 1424 | p |bool |cando |Mode_t mode|Uid_t effective|Stat_t* statbufp |
954c1994 GS |
1425 | Ap |U32 |cast_ulong |NV f |
1426 | Ap |I32 |cast_i32 |NV f | |
1427 | Ap |IV |cast_iv |NV f | |
1428 | Ap |UV |cast_uv |NV f | |
cea2e8a9 | 1429 | #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP) |
954c1994 | 1430 | Ap |I32 |my_chsize |int fd|Off_t length |
cea2e8a9 GS |
1431 | #endif |
1432 | #if defined(USE_THREADS) | |
1be9d9c6 | 1433 | Ap |MAGIC* |condpair_magic |SV *sv |
cea2e8a9 GS |
1434 | #endif |
1435 | p |OP* |convert |I32 optype|I32 flags|OP* o | |
954c1994 GS |
1436 | Afprd |void |croak |const char* pat|... |
1437 | Apr |void |vcroak |const char* pat|va_list* args | |
cea2e8a9 | 1438 | #if defined(PERL_IMPLICIT_CONTEXT) |
954c1994 GS |
1439 | Afnrp |void |croak_nocontext|const char* pat|... |
1440 | Afnp |OP* |die_nocontext |const char* pat|... | |
1441 | Afnp |void |deb_nocontext |const char* pat|... | |
1442 | Afnp |char* |form_nocontext |const char* pat|... | |
72d299db | 1443 | Anp |void |load_module_nocontext|U32 flags|SV* name|SV* ver|... |
954c1994 GS |
1444 | Afnp |SV* |mess_nocontext |const char* pat|... |
1445 | Afnp |void |warn_nocontext |const char* pat|... | |
1446 | Afnp |void |warner_nocontext|U32 err|const char* pat|... | |
1447 | Afnp |SV* |newSVpvf_nocontext|const char* pat|... | |
1448 | Afnp |void |sv_catpvf_nocontext|SV* sv|const char* pat|... | |
1449 | Afnp |void |sv_setpvf_nocontext|SV* sv|const char* pat|... | |
1450 | Afnp |void |sv_catpvf_mg_nocontext|SV* sv|const char* pat|... | |
1451 | Afnp |void |sv_setpvf_mg_nocontext|SV* sv|const char* pat|... | |
1452 | Afnp |int |fprintf_nocontext|PerlIO* stream|const char* fmt|... | |
241ea079 | 1453 | Afnp |int |printf_nocontext|const char* fmt|... |
cea2e8a9 GS |
1454 | #endif |
1455 | p |void |cv_ckproto |CV* cv|GV* gv|char* p | |
1456 | p |CV* |cv_clone |CV* proto | |
d0674b55 | 1457 | Ap |SV* |cv_const_sv |CV* cv |
cea2e8a9 | 1458 | p |SV* |op_const_sv |OP* o|CV* cv |
d0674b55 | 1459 | Ap |void |cv_undef |CV* cv |
954c1994 GS |
1460 | Ap |void |cx_dump |PERL_CONTEXT* cs |
1461 | Ap |SV* |filter_add |filter_t funcp|SV* datasv | |
1462 | Ap |void |filter_del |filter_t funcp | |
1463 | Ap |I32 |filter_read |int idx|SV* buffer|int maxlen | |
1464 | Ap |char** |get_op_descs | |
1465 | Ap |char** |get_op_names | |
cea2e8a9 GS |
1466 | p |char* |get_no_modify |
1467 | p |U32* |get_opargs | |
954c1994 | 1468 | Ap |PPADDR_t*|get_ppaddr |
cea2e8a9 | 1469 | p |I32 |cxinc |
954c1994 GS |
1470 | Afp |void |deb |const char* pat|... |
1471 | Ap |void |vdeb |const char* pat|va_list* args | |
1472 | Ap |void |debprofdump | |
1473 | Ap |I32 |debop |OP* o | |
1474 | Ap |I32 |debstack | |
1475 | Ap |I32 |debstackptrs | |
1476 | Ap |char* |delimcpy |char* to|char* toend|char* from \ | |
cea2e8a9 GS |
1477 | |char* fromend|int delim|I32* retlen |
1478 | p |void |deprecate |char* s | |
1be9d9c6 | 1479 | Afp |OP* |die |const char* pat|... |
c5be433b | 1480 | p |OP* |vdie |const char* pat|va_list* args |
cea2e8a9 | 1481 | p |OP* |die_where |char* message|STRLEN msglen |
1be9d9c6 | 1482 | Ap |void |dounwind |I32 cxix |
cea2e8a9 | 1483 | p |bool |do_aexec |SV* really|SV** mark|SV** sp |
d5a9bfb0 | 1484 | p |bool |do_aexec5 |SV* really|SV** mark|SV** sp|int fd|int flag |
412d7f2a | 1485 | Ap |int |do_binmode |PerlIO *fp|int iotype|int mode |
cea2e8a9 | 1486 | p |void |do_chop |SV* asv|SV* sv |
1c0ca838 | 1487 | Ap |bool |do_close |GV* gv|bool not_implicit |
cea2e8a9 GS |
1488 | p |bool |do_eof |GV* gv |
1489 | p |bool |do_exec |char* cmd | |
1490 | #if !defined(WIN32) | |
1491 | p |bool |do_exec3 |char* cmd|int fd|int flag | |
1492 | #endif | |
1493 | p |void |do_execfree | |
1494 | #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM) | |
1495 | p |I32 |do_ipcctl |I32 optype|SV** mark|SV** sp | |
1496 | p |I32 |do_ipcget |I32 optype|SV** mark|SV** sp | |
1497 | p |I32 |do_msgrcv |SV** mark|SV** sp | |
1498 | p |I32 |do_msgsnd |SV** mark|SV** sp | |
1499 | p |I32 |do_semop |SV** mark|SV** sp | |
1500 | p |I32 |do_shmio |I32 optype|SV** mark|SV** sp | |
1501 | #endif | |
412d7f2a | 1502 | Ap |void |do_join |SV* sv|SV* del|SV** mark|SV** sp |
cea2e8a9 | 1503 | p |OP* |do_kv |
954c1994 | 1504 | Ap |bool |do_open |GV* gv|char* name|I32 len|int as_raw \ |
cea2e8a9 | 1505 | |int rawmode|int rawperm|PerlIO* supplied_fp |
954c1994 | 1506 | Ap |bool |do_open9 |GV *gv|char *name|I32 len|int as_raw \ |
6170680b IZ |
1507 | |int rawmode|int rawperm|PerlIO *supplied_fp \ |
1508 | |SV *svs|I32 num | |
cea2e8a9 GS |
1509 | p |void |do_pipe |SV* sv|GV* rgv|GV* wgv |
1510 | p |bool |do_print |SV* sv|PerlIO* fp | |
1511 | p |OP* |do_readline | |
1512 | p |I32 |do_chomp |SV* sv | |
1513 | p |bool |do_seek |GV* gv|Off_t pos|int whence | |
1514 | p |void |do_sprintf |SV* sv|I32 len|SV** sarg | |
1515 | p |Off_t |do_sysseek |GV* gv|Off_t pos|int whence | |
1516 | p |Off_t |do_tell |GV* gv | |
1517 | p |I32 |do_trans |SV* sv | |
81e118e0 | 1518 | p |UV |do_vecget |SV* sv|I32 offset|I32 size |
cea2e8a9 GS |
1519 | p |void |do_vecset |SV* sv |
1520 | p |void |do_vop |I32 optype|SV* sv|SV* left|SV* right | |
1521 | p |OP* |dofile |OP* term | |
954c1994 GS |
1522 | Ap |I32 |dowantarray |
1523 | Ap |void |dump_all | |
1524 | Ap |void |dump_eval | |
cea2e8a9 | 1525 | #if defined(DUMP_FDS) |
954c1994 | 1526 | Ap |void |dump_fds |char* s |
cea2e8a9 | 1527 | #endif |
954c1994 GS |
1528 | Ap |void |dump_form |GV* gv |
1529 | Ap |void |gv_dump |GV* gv | |
1530 | Ap |void |op_dump |OP* arg | |
1531 | Ap |void |pmop_dump |PMOP* pm | |
1532 | Ap |void |dump_packsubs |HV* stash | |
1533 | Ap |void |dump_sub |GV* gv | |
1534 | Apd |void |fbm_compile |SV* sv|U32 flags | |
1535 | Apd |char* |fbm_instr |unsigned char* big|unsigned char* bigend \ | |
cea2e8a9 GS |
1536 | |SV* littlesv|U32 flags |
1537 | p |char* |find_script |char *scriptname|bool dosearch \ | |
1538 | |char **search_ext|I32 flags | |
1539 | #if defined(USE_THREADS) | |
1540 | p |PADOFFSET|find_threadsv|const char *name | |
1541 | #endif | |
1542 | p |OP* |force_list |OP* arg | |
1543 | p |OP* |fold_constants |OP* arg | |
954c1994 GS |
1544 | Afp |char* |form |const char* pat|... |
1545 | Ap |char* |vform |const char* pat|va_list* args | |
1546 | Ap |void |free_tmps | |
cea2e8a9 GS |
1547 | p |OP* |gen_constant_list|OP* o |
1548 | #if !defined(HAS_GETENV_LEN) | |
c0c883f4 | 1549 | p |char* |getenv_len |const char* key|unsigned long *len |
cea2e8a9 | 1550 | #endif |
954c1994 GS |
1551 | Ap |void |gp_free |GV* gv |
1552 | Ap |GP* |gp_ref |GP* gp | |
1553 | Ap |GV* |gv_AVadd |GV* gv | |
1554 | Ap |GV* |gv_HVadd |GV* gv | |
1555 | Ap |GV* |gv_IOadd |GV* gv | |
1556 | Ap |GV* |gv_autoload4 |HV* stash|const char* name|STRLEN len \ | |
cea2e8a9 | 1557 | |I32 method |
954c1994 GS |
1558 | Ap |void |gv_check |HV* stash |
1559 | Ap |void |gv_efullname |SV* sv|GV* gv | |
1560 | Ap |void |gv_efullname3 |SV* sv|GV* gv|const char* prefix | |
f87d2592 | 1561 | Ap |void |gv_efullname4 |SV* sv|GV* gv|const char* prefix|bool keepmain |
954c1994 GS |
1562 | Ap |GV* |gv_fetchfile |const char* name |
1563 | Apd |GV* |gv_fetchmeth |HV* stash|const char* name|STRLEN len \ | |
cea2e8a9 | 1564 | |I32 level |
954c1994 GS |
1565 | Apd |GV* |gv_fetchmethod |HV* stash|const char* name |
1566 | Apd |GV* |gv_fetchmethod_autoload|HV* stash|const char* name \ | |
cea2e8a9 | 1567 | |I32 autoload |
954c1994 GS |
1568 | Ap |GV* |gv_fetchpv |const char* name|I32 add|I32 sv_type |
1569 | Ap |void |gv_fullname |SV* sv|GV* gv | |
1570 | Ap |void |gv_fullname3 |SV* sv|GV* gv|const char* prefix | |
f87d2592 | 1571 | Ap |void |gv_fullname4 |SV* sv|GV* gv|const char* prefix|bool keepmain |
954c1994 | 1572 | Ap |void |gv_init |GV* gv|HV* stash|const char* name \ |
cea2e8a9 | 1573 | |STRLEN len|int multi |
954c1994 GS |
1574 | Apd |HV* |gv_stashpv |const char* name|I32 create |
1575 | Ap |HV* |gv_stashpvn |const char* name|U32 namelen|I32 create | |
1576 | Apd |HV* |gv_stashsv |SV* sv|I32 create | |
1577 | Apd |void |hv_clear |HV* tb | |
1578 | Ap |void |hv_delayfree_ent|HV* hv|HE* entry | |
99c4f437 | 1579 | Apd |SV* |hv_delete |HV* tb|const char* key|U32 klen|I32 flags |
954c1994 | 1580 | Apd |SV* |hv_delete_ent |HV* tb|SV* key|I32 flags|U32 hash |
99c4f437 | 1581 | Apd |bool |hv_exists |HV* tb|const char* key|U32 klen |
954c1994 | 1582 | Apd |bool |hv_exists_ent |HV* tb|SV* key|U32 hash |
99c4f437 | 1583 | Apd |SV** |hv_fetch |HV* tb|const char* key|U32 klen|I32 lval |
954c1994 GS |
1584 | Apd |HE* |hv_fetch_ent |HV* tb|SV* key|I32 lval|U32 hash |
1585 | Ap |void |hv_free_ent |HV* hv|HE* entry | |
1586 | Apd |I32 |hv_iterinit |HV* tb | |
1587 | Apd |char* |hv_iterkey |HE* entry|I32* retlen | |
1588 | Apd |SV* |hv_iterkeysv |HE* entry | |
1589 | Apd |HE* |hv_iternext |HV* tb | |
1590 | Apd |SV* |hv_iternextsv |HV* hv|char** key|I32* retlen | |
1591 | Apd |SV* |hv_iterval |HV* tb|HE* entry | |
1592 | Ap |void |hv_ksplit |HV* hv|IV newmax | |
1593 | Apd |void |hv_magic |HV* hv|GV* gv|int how | |
99c4f437 | 1594 | Apd |SV** |hv_store |HV* tb|const char* key|U32 klen|SV* val \ |
cea2e8a9 | 1595 | |U32 hash |
954c1994 GS |
1596 | Apd |HE* |hv_store_ent |HV* tb|SV* key|SV* val|U32 hash |
1597 | Apd |void |hv_undef |HV* tb | |
1598 | Ap |I32 |ibcmp |const char* a|const char* b|I32 len | |
1599 | Ap |I32 |ibcmp_locale |const char* a|const char* b|I32 len | |
d8eceb89 | 1600 | p |bool |ingroup |Gid_t testgid|Uid_t effective |
1ee4443e | 1601 | p |void |init_debugger |
1be9d9c6 | 1602 | Ap |void |init_stacks |
cea2e8a9 | 1603 | p |U32 |intro_my |
954c1994 | 1604 | Ap |char* |instr |const char* big|const char* little |
f2b5be74 | 1605 | p |bool |io_close |IO* io|bool not_implicit |
cea2e8a9 | 1606 | p |OP* |invert |OP* cmd |
c9d5ac95 | 1607 | dp |bool |is_gv_magical |char *name|STRLEN len|U32 flags |
84615ddc | 1608 | p |I32 |is_lvalue_sub |
954c1994 GS |
1609 | Ap |bool |is_uni_alnum |U32 c |
1610 | Ap |bool |is_uni_alnumc |U32 c | |
1611 | Ap |bool |is_uni_idfirst |U32 c | |
1612 | Ap |bool |is_uni_alpha |U32 c | |
1613 | Ap |bool |is_uni_ascii |U32 c | |
1614 | Ap |bool |is_uni_space |U32 c | |
1615 | Ap |bool |is_uni_cntrl |U32 c | |
1616 | Ap |bool |is_uni_graph |U32 c | |
1617 | Ap |bool |is_uni_digit |U32 c | |
1618 | Ap |bool |is_uni_upper |U32 c | |
1619 | Ap |bool |is_uni_lower |U32 c | |
1620 | Ap |bool |is_uni_print |U32 c | |
1621 | Ap |bool |is_uni_punct |U32 c | |
1622 | Ap |bool |is_uni_xdigit |U32 c | |
1623 | Ap |U32 |to_uni_upper |U32 c | |
1624 | Ap |U32 |to_uni_title |U32 c | |
1625 | Ap |U32 |to_uni_lower |U32 c | |
1626 | Ap |bool |is_uni_alnum_lc|U32 c | |
1627 | Ap |bool |is_uni_alnumc_lc|U32 c | |
1628 | Ap |bool |is_uni_idfirst_lc|U32 c | |
1629 | Ap |bool |is_uni_alpha_lc|U32 c | |
1630 | Ap |bool |is_uni_ascii_lc|U32 c | |
1631 | Ap |bool |is_uni_space_lc|U32 c | |
1632 | Ap |bool |is_uni_cntrl_lc|U32 c | |
1633 | Ap |bool |is_uni_graph_lc|U32 c | |
1634 | Ap |bool |is_uni_digit_lc|U32 c | |
1635 | Ap |bool |is_uni_upper_lc|U32 c | |
1636 | Ap |bool |is_uni_lower_lc|U32 c | |
1637 | Ap |bool |is_uni_print_lc|U32 c | |
1638 | Ap |bool |is_uni_punct_lc|U32 c | |
1639 | Ap |bool |is_uni_xdigit_lc|U32 c | |
1640 | Ap |U32 |to_uni_upper_lc|U32 c | |
1641 | Ap |U32 |to_uni_title_lc|U32 c | |
1642 | Ap |U32 |to_uni_lower_lc|U32 c | |
397a990d JH |
1643 | Apd |STRLEN |is_utf8_char |U8 *p |
1644 | Apd |bool |is_utf8_string |U8 *s|STRLEN len | |
954c1994 GS |
1645 | Ap |bool |is_utf8_alnum |U8 *p |
1646 | Ap |bool |is_utf8_alnumc |U8 *p | |
1647 | Ap |bool |is_utf8_idfirst|U8 *p | |
1648 | Ap |bool |is_utf8_alpha |U8 *p | |
1649 | Ap |bool |is_utf8_ascii |U8 *p | |
1650 | Ap |bool |is_utf8_space |U8 *p | |
1651 | Ap |bool |is_utf8_cntrl |U8 *p | |
1652 | Ap |bool |is_utf8_digit |U8 *p | |
1653 | Ap |bool |is_utf8_graph |U8 *p | |
1654 | Ap |bool |is_utf8_upper |U8 *p | |
1655 | Ap |bool |is_utf8_lower |U8 *p | |
1656 | Ap |bool |is_utf8_print |U8 *p | |
1657 | Ap |bool |is_utf8_punct |U8 *p | |
1658 | Ap |bool |is_utf8_xdigit |U8 *p | |
1659 | Ap |bool |is_utf8_mark |U8 *p | |
cea2e8a9 GS |
1660 | p |OP* |jmaybe |OP* arg |
1661 | p |I32 |keyword |char* d|I32 len | |
1be9d9c6 | 1662 | Ap |void |leave_scope |I32 base |
cea2e8a9 GS |
1663 | p |void |lex_end |
1664 | p |void |lex_start |SV* line | |
1665 | p |OP* |linklist |OP* o | |
1666 | p |OP* |list |OP* o | |
1667 | p |OP* |listkids |OP* o | |
72d299db | 1668 | Ap |void |load_module|U32 flags|SV* name|SV* ver|... |
e4783991 | 1669 | Ap |void |vload_module|U32 flags|SV* name|SV* ver|va_list* args |
cea2e8a9 | 1670 | p |OP* |localize |OP* arg|I32 lexical |
954c1994 | 1671 | Apd |I32 |looks_like_number|SV* sv |
cea2e8a9 GS |
1672 | p |int |magic_clearenv |SV* sv|MAGIC* mg |
1673 | p |int |magic_clear_all_env|SV* sv|MAGIC* mg | |
1674 | p |int |magic_clearpack|SV* sv|MAGIC* mg | |
1675 | p |int |magic_clearsig |SV* sv|MAGIC* mg | |
1676 | p |int |magic_existspack|SV* sv|MAGIC* mg | |
1677 | p |int |magic_freeregexp|SV* sv|MAGIC* mg | |
1678 | p |int |magic_get |SV* sv|MAGIC* mg | |
1679 | p |int |magic_getarylen|SV* sv|MAGIC* mg | |
1680 | p |int |magic_getdefelem|SV* sv|MAGIC* mg | |
1681 | p |int |magic_getglob |SV* sv|MAGIC* mg | |
1682 | p |int |magic_getnkeys |SV* sv|MAGIC* mg | |
1683 | p |int |magic_getpack |SV* sv|MAGIC* mg | |
1684 | p |int |magic_getpos |SV* sv|MAGIC* mg | |
1685 | p |int |magic_getsig |SV* sv|MAGIC* mg | |
1686 | p |int |magic_getsubstr|SV* sv|MAGIC* mg | |
1687 | p |int |magic_gettaint |SV* sv|MAGIC* mg | |
1688 | p |int |magic_getuvar |SV* sv|MAGIC* mg | |
1689 | p |int |magic_getvec |SV* sv|MAGIC* mg | |
1690 | p |U32 |magic_len |SV* sv|MAGIC* mg | |
1691 | #if defined(USE_THREADS) | |
1692 | p |int |magic_mutexfree|SV* sv|MAGIC* mg | |
1693 | #endif | |
1694 | p |int |magic_nextpack |SV* sv|MAGIC* mg|SV* key | |
1695 | p |U32 |magic_regdata_cnt|SV* sv|MAGIC* mg | |
1696 | p |int |magic_regdatum_get|SV* sv|MAGIC* mg | |
5e1047cb | 1697 | p |int |magic_regdatum_set|SV* sv|MAGIC* mg |
cea2e8a9 GS |
1698 | p |int |magic_set |SV* sv|MAGIC* mg |
1699 | p |int |magic_setamagic|SV* sv|MAGIC* mg | |
1700 | p |int |magic_setarylen|SV* sv|MAGIC* mg | |
1701 | p |int |magic_setbm |SV* sv|MAGIC* mg | |
1702 | p |int |magic_setdbline|SV* sv|MAGIC* mg | |
1703 | #if defined(USE_LOCALE_COLLATE) | |
1704 | p |int |magic_setcollxfrm|SV* sv|MAGIC* mg | |
1705 | #endif | |
1706 | p |int |magic_setdefelem|SV* sv|MAGIC* mg | |
1707 | p |int |magic_setenv |SV* sv|MAGIC* mg | |
1708 | p |int |magic_setfm |SV* sv|MAGIC* mg | |
1709 | p |int |magic_setisa |SV* sv|MAGIC* mg | |
1710 | p |int |magic_setglob |SV* sv|MAGIC* mg | |
1711 | p |int |magic_setmglob |SV* sv|MAGIC* mg | |
1712 | p |int |magic_setnkeys |SV* sv|MAGIC* mg | |
1713 | p |int |magic_setpack |SV* sv|MAGIC* mg | |
1714 | p |int |magic_setpos |SV* sv|MAGIC* mg | |
1715 | p |int |magic_setsig |SV* sv|MAGIC* mg | |
1716 | p |int |magic_setsubstr|SV* sv|MAGIC* mg | |
1717 | p |int |magic_settaint |SV* sv|MAGIC* mg | |
1718 | p |int |magic_setuvar |SV* sv|MAGIC* mg | |
1719 | p |int |magic_setvec |SV* sv|MAGIC* mg | |
1720 | p |int |magic_set_all_env|SV* sv|MAGIC* mg | |
1721 | p |U32 |magic_sizepack |SV* sv|MAGIC* mg | |
1722 | p |int |magic_wipepack |SV* sv|MAGIC* mg | |
1723 | p |void |magicname |char* sym|char* name|I32 namlen | |
954c1994 | 1724 | Ap |void |markstack_grow |
cea2e8a9 GS |
1725 | #if defined(USE_LOCALE_COLLATE) |
1726 | p |char* |mem_collxfrm |const char* s|STRLEN len|STRLEN* xlen | |
1727 | #endif | |
954c1994 GS |
1728 | Afp |SV* |mess |const char* pat|... |
1729 | Ap |SV* |vmess |const char* pat|va_list* args | |
5a844595 | 1730 | p |void |qerror |SV* err |
954c1994 GS |
1731 | Apd |int |mg_clear |SV* sv |
1732 | Apd |int |mg_copy |SV* sv|SV* nsv|const char* key|I32 klen | |
1733 | Apd |MAGIC* |mg_find |SV* sv|int type | |
1734 | Apd |int |mg_free |SV* sv | |
1735 | Apd |int |mg_get |SV* sv | |
1736 | Apd |U32 |mg_length |SV* sv | |
1737 | Apd |void |mg_magical |SV* sv | |
1738 | Apd |int |mg_set |SV* sv | |
1739 | Ap |I32 |mg_size |SV* sv | |
cea2e8a9 | 1740 | p |OP* |mod |OP* o|I32 type |
16fe6d59 | 1741 | p |int |mode_from_discipline|SV* discp |
1be9d9c6 | 1742 | Ap |char* |moreswitches |char* s |
cea2e8a9 | 1743 | p |OP* |my |OP* o |
954c1994 | 1744 | Ap |NV |my_atof |const char *s |
cea2e8a9 | 1745 | #if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY) |
954c1994 | 1746 | Anp |char* |my_bcopy |const char* from|char* to|I32 len |
cea2e8a9 GS |
1747 | #endif |
1748 | #if !defined(HAS_BZERO) && !defined(HAS_MEMSET) | |
954c1994 | 1749 | Anp |char* |my_bzero |char* loc|I32 len |
cea2e8a9 | 1750 | #endif |
954c1994 GS |
1751 | Apr |void |my_exit |U32 status |
1752 | Apr |void |my_failure_exit | |
1753 | Ap |I32 |my_fflush_all | |
1754 | Ap |I32 |my_lstat | |
cea2e8a9 | 1755 | #if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP) |
954c1994 | 1756 | Anp |I32 |my_memcmp |const char* s1|const char* s2|I32 len |
cea2e8a9 GS |
1757 | #endif |
1758 | #if !defined(HAS_MEMSET) | |
954c1994 | 1759 | Anp |void* |my_memset |char* loc|I32 ch|I32 len |
cea2e8a9 GS |
1760 | #endif |
1761 | #if !defined(PERL_OBJECT) | |
954c1994 GS |
1762 | Ap |I32 |my_pclose |PerlIO* ptr |
1763 | Ap |PerlIO*|my_popen |char* cmd|char* mode | |
cea2e8a9 | 1764 | #endif |
954c1994 GS |
1765 | Ap |void |my_setenv |char* nam|char* val |
1766 | Ap |I32 |my_stat | |
cea2e8a9 | 1767 | #if defined(MYSWAP) |
954c1994 GS |
1768 | Ap |short |my_swap |short s |
1769 | Ap |long |my_htonl |long l | |
1770 | Ap |long |my_ntohl |long l | |
cea2e8a9 GS |
1771 | #endif |
1772 | p |void |my_unexec | |
954c1994 GS |
1773 | Ap |OP* |newANONLIST |OP* o |
1774 | Ap |OP* |newANONHASH |OP* o | |
1775 | Ap |OP* |newANONSUB |I32 floor|OP* proto|OP* block | |
1776 | Ap |OP* |newASSIGNOP |I32 flags|OP* left|I32 optype|OP* right | |
1777 | Ap |OP* |newCONDOP |I32 flags|OP* expr|OP* trueop|OP* falseop | |
1778 | Apd |void |newCONSTSUB |HV* stash|char* name|SV* sv | |
1779 | Ap |void |newFORM |I32 floor|OP* o|OP* block | |
1780 | Ap |OP* |newFOROP |I32 flags|char* label|line_t forline \ | |
cea2e8a9 | 1781 | |OP* sclr|OP* expr|OP*block|OP*cont |
954c1994 GS |
1782 | Ap |OP* |newLOGOP |I32 optype|I32 flags|OP* left|OP* right |
1783 | Ap |OP* |newLOOPEX |I32 type|OP* label | |
1784 | Ap |OP* |newLOOPOP |I32 flags|I32 debuggable|OP* expr|OP* block | |
1785 | Ap |OP* |newNULLLIST | |
1786 | Ap |OP* |newOP |I32 optype|I32 flags | |
1787 | Ap |void |newPROG |OP* o | |
1788 | Ap |OP* |newRANGE |I32 flags|OP* left|OP* right | |
1789 | Ap |OP* |newSLICEOP |I32 flags|OP* subscript|OP* listop | |
1790 | Ap |OP* |newSTATEOP |I32 flags|char* label|OP* o | |
1791 | Ap |CV* |newSUB |I32 floor|OP* o|OP* proto|OP* block | |
1792 | Apd |CV* |newXS |char* name|XSUBADDR_t f|char* filename | |
1793 | Apd |AV* |newAV | |
1794 | Ap |OP* |newAVREF |OP* o | |
1795 | Ap |OP* |newBINOP |I32 type|I32 flags|OP* first|OP* last | |
1796 | Ap |OP* |newCVREF |I32 flags|OP* o | |
1797 | Ap |OP* |newGVOP |I32 type|I32 flags|GV* gv | |
1798 | Ap |GV* |newGVgen |char* pack | |
1799 | Ap |OP* |newGVREF |I32 type|OP* o | |
1800 | Ap |OP* |newHVREF |OP* o | |
1801 | Apd |HV* |newHV | |
1802 | Ap |HV* |newHVhv |HV* hv | |
1803 | Ap |IO* |newIO | |
1804 | Ap |OP* |newLISTOP |I32 type|I32 flags|OP* first|OP* last | |
1805 | Ap |OP* |newPADOP |I32 type|I32 flags|SV* sv | |
1806 | Ap |OP* |newPMOP |I32 type|I32 flags | |
1807 | Ap |OP* |newPVOP |I32 type|I32 flags|char* pv | |
1808 | Ap |SV* |newRV |SV* pref | |
1809 | Apd |SV* |newRV_noinc |SV *sv | |
1810 | Ap |SV* |newSV |STRLEN len | |
1811 | Ap |OP* |newSVREF |OP* o | |
1812 | Ap |OP* |newSVOP |I32 type|I32 flags|SV* sv | |
1813 | Apd |SV* |newSViv |IV i | |
1a3327fb | 1814 | Apd |SV* |newSVuv |UV u |
954c1994 GS |
1815 | Apd |SV* |newSVnv |NV n |
1816 | Apd |SV* |newSVpv |const char* s|STRLEN len | |
1817 | Apd |SV* |newSVpvn |const char* s|STRLEN len | |
1818 | Afpd |SV* |newSVpvf |const char* pat|... | |
1819 | Ap |SV* |vnewSVpvf |const char* pat|va_list* args | |
1820 | Apd |SV* |newSVrv |SV* rv|const char* classname | |
1821 | Apd |SV* |newSVsv |SV* old | |
1822 | Ap |OP* |newUNOP |I32 type|I32 flags|OP* first | |
1823 | Ap |OP* |newWHILEOP |I32 flags|I32 debuggable|LOOP* loop \ | |
cea2e8a9 | 1824 | |I32 whileline|OP* expr|OP* block|OP* cont |
c5be433b | 1825 | |
1be9d9c6 | 1826 | Ap |PERL_SI*|new_stackinfo|I32 stitems|I32 cxitems |
cea2e8a9 | 1827 | p |PerlIO*|nextargv |GV* gv |
954c1994 | 1828 | Ap |char* |ninstr |const char* big|const char* bigend \ |
cea2e8a9 GS |
1829 | |const char* little|const char* lend |
1830 | p |OP* |oopsCV |OP* o | |
1be9d9c6 | 1831 | Ap |void |op_free |OP* arg |
cea2e8a9 GS |
1832 | p |void |package |OP* o |
1833 | p |PADOFFSET|pad_alloc |I32 optype|U32 tmptype | |
1834 | p |PADOFFSET|pad_allocmy |char* name | |
1835 | p |PADOFFSET|pad_findmy |char* name | |
1836 | p |OP* |oopsAV |OP* o | |
1837 | p |OP* |oopsHV |OP* o | |
1838 | p |void |pad_leavemy |I32 fill | |
1be9d9c6 | 1839 | Ap |SV* |pad_sv |PADOFFSET po |
cea2e8a9 GS |
1840 | p |void |pad_free |PADOFFSET po |
1841 | p |void |pad_reset | |
1842 | p |void |pad_swipe |PADOFFSET po | |
1843 | p |void |peep |OP* o | |
0cb96387 | 1844 | #if defined(PERL_OBJECT) |
954c1994 GS |
1845 | Aox |void |Perl_construct |
1846 | Aox |void |Perl_destruct | |
1847 | Aox |void |Perl_free | |
1848 | Aox |int |Perl_run | |
1849 | Aox |int |Perl_parse |XSINIT_t xsinit \ | |
0cb96387 | 1850 | |int argc|char** argv|char** env |
1d7c1841 | 1851 | #endif |
c5be433b | 1852 | #if defined(USE_THREADS) |
954c1994 | 1853 | Ap |struct perl_thread* |new_struct_thread|struct perl_thread *t |
c5be433b | 1854 | #endif |
954c1994 GS |
1855 | Ap |void |call_atexit |ATEXIT_t fn|void *ptr |
1856 | Apd |I32 |call_argv |const char* sub_name|I32 flags|char** argv | |
1857 | Apd |I32 |call_method |const char* methname|I32 flags | |
1858 | Apd |I32 |call_pv |const char* sub_name|I32 flags | |
1859 | Apd |I32 |call_sv |SV* sv|I32 flags | |
1860 | Apd |SV* |eval_pv |const char* p|I32 croak_on_error | |
1861 | Apd |I32 |eval_sv |SV* sv|I32 flags | |
1862 | Apd |SV* |get_sv |const char* name|I32 create | |
1863 | Apd |AV* |get_av |const char* name|I32 create | |
1864 | Apd |HV* |get_hv |const char* name|I32 create | |
1865 | Apd |CV* |get_cv |const char* name|I32 create | |
1be9d9c6 GS |
1866 | Ap |int |init_i18nl10n |int printwarn |
1867 | Ap |int |init_i18nl14n |int printwarn | |
bd3a7847 GS |
1868 | Ap |void |new_collate |char* newcoll |
1869 | Ap |void |new_ctype |char* newctype | |
1870 | Ap |void |new_numeric |char* newcoll | |
954c1994 GS |
1871 | Ap |void |set_numeric_local |
1872 | Ap |void |set_numeric_radix | |
1873 | Ap |void |set_numeric_standard | |
1874 | Apd |void |require_pv |const char* pv | |
d8a83dd3 | 1875 | p |void |pidgone |Pid_t pid|int status |
1be9d9c6 | 1876 | Ap |void |pmflag |U16* pmfl|int ch |
cea2e8a9 GS |
1877 | p |OP* |pmruntime |OP* pm|OP* expr|OP* repl |
1878 | p |OP* |pmtrans |OP* o|OP* expr|OP* repl | |
1879 | p |OP* |pop_return | |
954c1994 | 1880 | Ap |void |pop_scope |
cea2e8a9 GS |
1881 | p |OP* |prepend_elem |I32 optype|OP* head|OP* tail |
1882 | p |void |push_return |OP* o | |
954c1994 | 1883 | Ap |void |push_scope |
cea2e8a9 GS |
1884 | p |OP* |ref |OP* o|I32 type |
1885 | p |OP* |refkids |OP* o|I32 type | |
954c1994 | 1886 | Ap |void |regdump |regexp* r |
a86f0dc9 | 1887 | Ap |I32 |pregexec |regexp* prog|char* stringarg \ |
cea2e8a9 GS |
1888 | |char* strend|char* strbeg|I32 minend \ |
1889 | |SV* screamer|U32 nosave | |
1be9d9c6 GS |
1890 | Ap |void |pregfree |struct regexp* r |
1891 | Ap |regexp*|pregcomp |char* exp|char* xend|PMOP* pm | |
1892 | Ap |char* |re_intuit_start|regexp* prog|SV* sv|char* strpos \ | |
cad2e5aa JH |
1893 | |char* strend|U32 flags \ |
1894 | |struct re_scream_pos_data_s *data | |
1be9d9c6 GS |
1895 | Ap |SV* |re_intuit_string|regexp* prog |
1896 | Ap |I32 |regexec_flags |regexp* prog|char* stringarg \ | |
cea2e8a9 GS |
1897 | |char* strend|char* strbeg|I32 minend \ |
1898 | |SV* screamer|void* data|U32 flags | |
1be9d9c6 | 1899 | Ap |regnode*|regnext |regnode* p |
cea2e8a9 | 1900 | p |void |regprop |SV* sv|regnode* o |
1be9d9c6 | 1901 | Ap |void |repeatcpy |char* to|const char* from|I32 len|I32 count |
954c1994 | 1902 | Ap |char* |rninstr |const char* big|const char* bigend \ |
cea2e8a9 | 1903 | |const char* little|const char* lend |
412d7f2a | 1904 | Ap |Sighandler_t|rsignal |int i|Sighandler_t t |
cea2e8a9 GS |
1905 | p |int |rsignal_restore|int i|Sigsave_t* t |
1906 | p |int |rsignal_save |int i|Sighandler_t t1|Sigsave_t* t2 | |
1907 | p |Sighandler_t|rsignal_state|int i | |
1908 | p |void |rxres_free |void** rsp | |
1909 | p |void |rxres_restore |void** rsp|REGEXP* prx | |
1910 | p |void |rxres_save |void** rsp|REGEXP* prx | |
1911 | #if !defined(HAS_RENAME) | |
1912 | p |I32 |same_dirent |char* a|char* b | |
1913 | #endif | |
954c1994 GS |
1914 | Apd |char* |savepv |const char* sv |
1915 | Apd |char* |savepvn |const char* sv|I32 len | |
1916 | Ap |void |savestack_grow | |
1917 | Ap |void |save_aelem |AV* av|I32 idx|SV **sptr | |
1918 | Ap |I32 |save_alloc |I32 size|I32 pad | |
1919 | Ap |void |save_aptr |AV** aptr | |
1920 | Ap |AV* |save_ary |GV* gv | |
1921 | Ap |void |save_clearsv |SV** svp | |
1922 | Ap |void |save_delete |HV* hv|char* key|I32 klen | |
1923 | Ap |void |save_destructor|DESTRUCTORFUNC_NOCONTEXT_t f|void* p | |
1924 | Ap |void |save_destructor_x|DESTRUCTORFUNC_t f|void* p | |
1925 | Ap |void |save_freesv |SV* sv | |
cea2e8a9 | 1926 | p |void |save_freeop |OP* o |
954c1994 GS |
1927 | Ap |void |save_freepv |char* pv |
1928 | Ap |void |save_generic_svref|SV** sptr | |
f4dd75d9 | 1929 | Ap |void |save_generic_pvref|char** str |
954c1994 GS |
1930 | Ap |void |save_gp |GV* gv|I32 empty |
1931 | Ap |HV* |save_hash |GV* gv | |
1932 | Ap |void |save_helem |HV* hv|SV *key|SV **sptr | |
1933 | Ap |void |save_hints | |
1934 | Ap |void |save_hptr |HV** hptr | |
1935 | Ap |void |save_I16 |I16* intp | |
1936 | Ap |void |save_I32 |I32* intp | |
1937 | Ap |void |save_I8 |I8* bytep | |
1938 | Ap |void |save_int |int* intp | |
1939 | Ap |void |save_item |SV* item | |
1940 | Ap |void |save_iv |IV* iv | |
1941 | Ap |void |save_list |SV** sarg|I32 maxsarg | |
1942 | Ap |void |save_long |long* longp | |
1943 | Ap |void |save_nogv |GV* gv | |
cea2e8a9 | 1944 | p |void |save_op |
954c1994 GS |
1945 | Ap |SV* |save_scalar |GV* gv |
1946 | Ap |void |save_pptr |char** pptr | |
1947 | Ap |void |save_vptr |void* pptr | |
1948 | Ap |void |save_re_context | |
ccaecade | 1949 | Ap |void |save_padsv |PADOFFSET off |
954c1994 GS |
1950 | Ap |void |save_sptr |SV** sptr |
1951 | Ap |SV* |save_svref |SV** sptr | |
1952 | Ap |SV** |save_threadsv |PADOFFSET i | |
cea2e8a9 GS |
1953 | p |OP* |sawparens |OP* o |
1954 | p |OP* |scalar |OP* o | |
1955 | p |OP* |scalarkids |OP* o | |
1956 | p |OP* |scalarseq |OP* o | |
1957 | p |OP* |scalarvoid |OP* o | |
a4bf32d5 A |
1958 | Ap |NV |scan_bin |char* start|STRLEN len|STRLEN* retlen |
1959 | Ap |NV |scan_hex |char* start|STRLEN len|STRLEN* retlen | |
e2439105 | 1960 | Ap |char* |scan_num |char* s|YYSTYPE *lvalp |
a4bf32d5 | 1961 | Ap |NV |scan_oct |char* start|STRLEN len|STRLEN* retlen |
cea2e8a9 | 1962 | p |OP* |scope |OP* o |
1be9d9c6 | 1963 | Ap |char* |screaminstr |SV* bigsv|SV* littlesv|I32 start_shift \ |
cea2e8a9 GS |
1964 | |I32 end_shift|I32 *state|I32 last |
1965 | #if !defined(VMS) | |
1966 | p |I32 |setenv_getix |char* nam | |
1967 | #endif | |
1968 | p |void |setdefout |GV* gv | |
1be9d9c6 | 1969 | Ap |char* |sharepvn |const char* sv|I32 len|U32 hash |
cea2e8a9 GS |
1970 | p |HEK* |share_hek |const char* sv|I32 len|U32 hash |
1971 | np |Signal_t |sighandler |int sig | |
954c1994 GS |
1972 | Ap |SV** |stack_grow |SV** sp|SV**p|int n |
1973 | Ap |I32 |start_subparse |I32 is_format|U32 flags | |
cea2e8a9 | 1974 | p |void |sub_crush_depth|CV* cv |
954c1994 GS |
1975 | Ap |bool |sv_2bool |SV* sv |
1976 | Ap |CV* |sv_2cv |SV* sv|HV** st|GV** gvp|I32 lref | |
1977 | Ap |IO* |sv_2io |SV* sv | |
1978 | Ap |IV |sv_2iv |SV* sv | |
1979 | Apd |SV* |sv_2mortal |SV* sv | |
1980 | Ap |NV |sv_2nv |SV* sv | |
1981 | Ap |char* |sv_2pv |SV* sv|STRLEN* lp | |
1982 | Ap |char* |sv_2pvutf8 |SV* sv|STRLEN* lp | |
1983 | Ap |char* |sv_2pvbyte |SV* sv|STRLEN* lp | |
1984 | Ap |UV |sv_2uv |SV* sv | |
1985 | Ap |IV |sv_iv |SV* sv | |
1986 | Ap |UV |sv_uv |SV* sv | |
1987 | Ap |NV |sv_nv |SV* sv | |
1988 | Ap |char* |sv_pvn |SV *sv|STRLEN *len | |
1989 | Ap |char* |sv_pvutf8n |SV *sv|STRLEN *len | |
1990 | Ap |char* |sv_pvbyten |SV *sv|STRLEN *len | |
a40b7efc | 1991 | Apd |I32 |sv_true |SV *sv |
cea2e8a9 | 1992 | p |void |sv_add_arena |char* ptr|U32 size|U32 flags |
954c1994 GS |
1993 | Ap |int |sv_backoff |SV* sv |
1994 | Apd |SV* |sv_bless |SV* sv|HV* stash | |
1995 | Afpd |void |sv_catpvf |SV* sv|const char* pat|... | |
1996 | Ap |void |sv_vcatpvf |SV* sv|const char* pat|va_list* args | |
1997 | Apd |void |sv_catpv |SV* sv|const char* ptr | |
1998 | Apd |void |sv_catpvn |SV* sv|const char* ptr|STRLEN len | |
1999 | Apd |void |sv_catsv |SV* dsv|SV* ssv | |
2000 | Apd |void |sv_chop |SV* sv|char* ptr | |
ec3d44d0 | 2001 | p |I32 |sv_clean_all |
cea2e8a9 | 2002 | p |void |sv_clean_objs |
a40b7efc | 2003 | Apd |void |sv_clear |SV* sv |
954c1994 | 2004 | Apd |I32 |sv_cmp |SV* sv1|SV* sv2 |
a40b7efc | 2005 | Apd |I32 |sv_cmp_locale |SV* sv1|SV* sv2 |
cea2e8a9 | 2006 | #if defined(USE_LOCALE_COLLATE) |
954c1994 | 2007 | Ap |char* |sv_collxfrm |SV* sv|STRLEN* nxp |
cea2e8a9 | 2008 | #endif |
1be9d9c6 | 2009 | Ap |OP* |sv_compile_2op |SV* sv|OP** startp|char* code|AV** avp |
954c1994 GS |
2010 | Apd |void |sv_dec |SV* sv |
2011 | Ap |void |sv_dump |SV* sv | |
2012 | Apd |bool |sv_derived_from|SV* sv|const char* name | |
2013 | Apd |I32 |sv_eq |SV* sv1|SV* sv2 | |
a40b7efc | 2014 | Apd |void |sv_free |SV* sv |
cea2e8a9 | 2015 | p |void |sv_free_arenas |
a40b7efc | 2016 | Apd |char* |sv_gets |SV* sv|PerlIO* fp|I32 append |
954c1994 GS |
2017 | Apd |char* |sv_grow |SV* sv|STRLEN newlen |
2018 | Apd |void |sv_inc |SV* sv | |
2019 | Apd |void |sv_insert |SV* bigsv|STRLEN offset|STRLEN len \ | |
cea2e8a9 | 2020 | |char* little|STRLEN littlelen |
954c1994 GS |
2021 | Apd |int |sv_isa |SV* sv|const char* name |
2022 | Apd |int |sv_isobject |SV* sv | |
2023 | Apd |STRLEN |sv_len |SV* sv | |
a40b7efc | 2024 | Apd |STRLEN |sv_len_utf8 |SV* sv |
954c1994 | 2025 | Apd |void |sv_magic |SV* sv|SV* obj|int how|const char* name \ |
cea2e8a9 | 2026 | |I32 namlen |
954c1994 GS |
2027 | Apd |SV* |sv_mortalcopy |SV* oldsv |
2028 | Apd |SV* |sv_newmortal | |
2029 | Ap |SV* |sv_newref |SV* sv | |
2030 | Ap |char* |sv_peek |SV* sv | |
2031 | Ap |void |sv_pos_u2b |SV* sv|I32* offsetp|I32* lenp | |
2032 | Ap |void |sv_pos_b2u |SV* sv|I32* offsetp | |
a40b7efc HS |
2033 | Apd |char* |sv_pvn_force |SV* sv|STRLEN* lp |
2034 | Apd |char* |sv_pvutf8n_force|SV* sv|STRLEN* lp | |
954c1994 | 2035 | Ap |char* |sv_pvbyten_force|SV* sv|STRLEN* lp |
a40b7efc HS |
2036 | Apd |char* |sv_reftype |SV* sv|int ob |
2037 | Apd |void |sv_replace |SV* sv|SV* nsv | |
954c1994 GS |
2038 | Ap |void |sv_report_used |
2039 | Ap |void |sv_reset |char* s|HV* stash | |
2040 | Afpd |void |sv_setpvf |SV* sv|const char* pat|... | |
2041 | Ap |void |sv_vsetpvf |SV* sv|const char* pat|va_list* args | |
2042 | Apd |void |sv_setiv |SV* sv|IV num | |
2043 | Apd |void |sv_setpviv |SV* sv|IV num | |
2044 | Apd |void |sv_setuv |SV* sv|UV num | |
2045 | Apd |void |sv_setnv |SV* sv|NV num | |
2046 | Apd |SV* |sv_setref_iv |SV* rv|const char* classname|IV iv | |
2047 | Apd |SV* |sv_setref_nv |SV* rv|const char* classname|NV nv | |
2048 | Apd |SV* |sv_setref_pv |SV* rv|const char* classname|void* pv | |
2049 | Apd |SV* |sv_setref_pvn |SV* rv|const char* classname|char* pv \ | |
cea2e8a9 | 2050 | |STRLEN n |
954c1994 GS |
2051 | Apd |void |sv_setpv |SV* sv|const char* ptr |
2052 | Apd |void |sv_setpvn |SV* sv|const char* ptr|STRLEN len | |
2053 | Apd |void |sv_setsv |SV* dsv|SV* ssv | |
2054 | Ap |void |sv_taint |SV* sv | |
2055 | Ap |bool |sv_tainted |SV* sv | |
a40b7efc | 2056 | Apd |int |sv_unmagic |SV* sv|int type |
954c1994 GS |
2057 | Apd |void |sv_unref |SV* sv |
2058 | Ap |void |sv_untaint |SV* sv | |
2059 | Apd |bool |sv_upgrade |SV* sv|U32 mt | |
2060 | Apd |void |sv_usepvn |SV* sv|char* ptr|STRLEN len | |
2061 | Apd |void |sv_vcatpvfn |SV* sv|const char* pat|STRLEN patlen \ | |
cea2e8a9 | 2062 | |va_list* args|SV** svargs|I32 svmax \ |
5bc28da9 | 2063 | |bool *maybe_tainted |
954c1994 | 2064 | Apd |void |sv_vsetpvfn |SV* sv|const char* pat|STRLEN patlen \ |
cea2e8a9 | 2065 | |va_list* args|SV** svargs|I32 svmax \ |
5bc28da9 | 2066 | |bool *maybe_tainted |
1571675a | 2067 | Ap |NV |str_to_version |SV *sv |
1be9d9c6 | 2068 | Ap |SV* |swash_init |char* pkg|char* name|SV* listsv \ |
cea2e8a9 | 2069 | |I32 minbits|I32 none |
1be9d9c6 | 2070 | Ap |UV |swash_fetch |SV *sv|U8 *ptr |
954c1994 GS |
2071 | Ap |void |taint_env |
2072 | Ap |void |taint_proper |const char* f|const char* s | |
2073 | Ap |UV |to_utf8_lower |U8 *p | |
2074 | Ap |UV |to_utf8_upper |U8 *p | |
2075 | Ap |UV |to_utf8_title |U8 *p | |
cea2e8a9 | 2076 | #if defined(UNLINK_ALL_VERSIONS) |
954c1994 | 2077 | Ap |I32 |unlnk |char* f |
cea2e8a9 GS |
2078 | #endif |
2079 | #if defined(USE_THREADS) | |
1be9d9c6 | 2080 | Ap |void |unlock_condpair|void* svv |
cea2e8a9 | 2081 | #endif |
1be9d9c6 | 2082 | Ap |void |unsharepvn |const char* sv|I32 len|U32 hash |
cea2e8a9 GS |
2083 | p |void |unshare_hek |HEK* hek |
2084 | p |void |utilize |int aver|I32 floor|OP* version|OP* id|OP* arg | |
4f4d7711 JH |
2085 | ApM |U8* |utf16_to_utf8 |U8* p|U8 *d|I32 bytelen|I32 *newlen |
2086 | ApM |U8* |utf16_to_utf8_reversed|U8* p|U8 *d|I32 bytelen|I32 *newlen | |
2087 | ApMd |STRLEN |utf8_length |U8* s|U8 *e | |
2088 | ApMd |IV |utf8_distance |U8 *a|U8 *b | |
2089 | ApMd |U8* |utf8_hop |U8 *s|I32 off | |
397a990d JH |
2090 | ApMd |U8* |utf8_to_bytes |U8 *s|STRLEN *len |
2091 | ApMd |U8* |bytes_from_utf8|U8 *s|STRLEN *len|bool *is_utf8 | |
2092 | ApMd |U8* |bytes_to_utf8 |U8 *s|STRLEN *len | |
4f4d7711 JH |
2093 | ApMd |UV |utf8_to_uv_simple|U8 *s|STRLEN* retlen |
2094 | ApMd |UV |utf8_to_uv |U8 *s|STRLEN curlen|STRLEN* retlen|U32 flags | |
2095 | ApMd |U8* |uv_to_utf8 |U8 *d|UV uv | |
cea2e8a9 GS |
2096 | p |void |vivify_defelem |SV* sv |
2097 | p |void |vivify_ref |SV* sv|U32 to_what | |
d8a83dd3 | 2098 | p |I32 |wait4pid |Pid_t pid|int* statusp|int flags |
f87d2592 | 2099 | p |void |report_evil_fh |GV *gv|IO *io|I32 op |
1d7c1841 | 2100 | p |void |report_uninit |
954c1994 GS |
2101 | Afpd |void |warn |const char* pat|... |
2102 | Ap |void |vwarn |const char* pat|va_list* args | |
2103 | Afp |void |warner |U32 err|const char* pat|... | |
2104 | Ap |void |vwarner |U32 err|const char* pat|va_list* args | |
cea2e8a9 | 2105 | p |void |watch |char** addr |
412d7f2a | 2106 | Ap |I32 |whichsig |char* sig |
cea2e8a9 | 2107 | p |int |yyerror |char* s |
7f8989c3 GS |
2108 | #ifdef USE_PURE_BISON |
2109 | p |int |yylex_r |YYSTYPE *lvalp|int *lcharp | |
cea2e8a9 GS |
2110 | p |int |yylex |YYSTYPE *lvalp|int *lcharp |
2111 | #else | |
2112 | p |int |yylex | |
2113 | #endif | |
2114 | p |int |yyparse | |
2115 | p |int |yywarn |char* s | |
2116 | #if defined(MYMALLOC) | |
954c1994 | 2117 | Ap |void |dump_mstats |char* s |
827e134a | 2118 | Ap |int |get_mstats |perl_mstats_t *buf|int buflen|int level |
cea2e8a9 | 2119 | #endif |
954c1994 GS |
2120 | Anp |Malloc_t|safesysmalloc |MEM_SIZE nbytes |
2121 | Anp |Malloc_t|safesyscalloc |MEM_SIZE elements|MEM_SIZE size | |
2122 | Anp |Malloc_t|safesysrealloc|Malloc_t where|MEM_SIZE nbytes | |
2123 | Anp |Free_t |safesysfree |Malloc_t where | |
cea2e8a9 | 2124 | #if defined(LEAKTEST) |
954c1994 GS |
2125 | Anp |Malloc_t|safexmalloc |I32 x|MEM_SIZE size |
2126 | Anp |Malloc_t|safexcalloc |I32 x|MEM_SIZE elements|MEM_SIZE size | |
2127 | Anp |Malloc_t|safexrealloc |Malloc_t where|MEM_SIZE size | |
2128 | Anp |void |safexfree |Malloc_t where | |
cea2e8a9 GS |
2129 | #endif |
2130 | #if defined(PERL_GLOBAL_STRUCT) | |
954c1994 | 2131 | Ap |struct perl_vars *|GetVars |
cea2e8a9 | 2132 | #endif |
954c1994 GS |
2133 | Ap |int |runops_standard |
2134 | Ap |int |runops_debug | |
1cb75286 BS |
2135 | #if defined(USE_THREADS) |
2136 | Ap |SV* |sv_lock |SV *sv | |
2137 | #endif | |
954c1994 GS |
2138 | Afpd |void |sv_catpvf_mg |SV *sv|const char* pat|... |
2139 | Ap |void |sv_vcatpvf_mg |SV* sv|const char* pat|va_list* args | |
2140 | Apd |void |sv_catpv_mg |SV *sv|const char *ptr | |
2141 | Apd |void |sv_catpvn_mg |SV *sv|const char *ptr|STRLEN len | |
2142 | Apd |void |sv_catsv_mg |SV *dstr|SV *sstr | |
2143 | Afpd |void |sv_setpvf_mg |SV *sv|const char* pat|... | |
2144 | Ap |void |sv_vsetpvf_mg |SV* sv|const char* pat|va_list* args | |
2145 | Apd |void |sv_setiv_mg |SV *sv|IV i | |
2146 | Apd |void |sv_setpviv_mg |SV *sv|IV iv | |
2147 | Apd |void |sv_setuv_mg |SV *sv|UV u | |
2148 | Apd |void |sv_setnv_mg |SV *sv|NV num | |
2149 | Apd |void |sv_setpv_mg |SV *sv|const char *ptr | |
2150 | Apd |void |sv_setpvn_mg |SV *sv|const char *ptr|STRLEN len | |
2151 | Apd |void |sv_setsv_mg |SV *dstr|SV *sstr | |
2152 | Apd |void |sv_usepvn_mg |SV *sv|char *ptr|STRLEN len | |
2153 | Ap |MGVTBL*|get_vtbl |int vtbl_id | |
cea2e8a9 GS |
2154 | p |char* |pv_display |SV *sv|char *pv|STRLEN cur|STRLEN len \ |
2155 | |STRLEN pvlim | |
954c1994 GS |
2156 | Afp |void |dump_indent |I32 level|PerlIO *file|const char* pat|... |
2157 | Ap |void |dump_vindent |I32 level|PerlIO *file|const char* pat \ | |
c5be433b | 2158 | |va_list *args |
954c1994 GS |
2159 | Ap |void |do_gv_dump |I32 level|PerlIO *file|char *name|GV *sv |
2160 | Ap |void |do_gvgv_dump |I32 level|PerlIO *file|char *name|GV *sv | |
2161 | Ap |void |do_hv_dump |I32 level|PerlIO *file|char *name|HV *sv | |
2162 | Ap |void |do_magic_dump |I32 level|PerlIO *file|MAGIC *mg|I32 nest \ | |
cea2e8a9 | 2163 | |I32 maxnest|bool dumpops|STRLEN pvlim |
954c1994 GS |
2164 | Ap |void |do_op_dump |I32 level|PerlIO *file|OP *o |
2165 | Ap |void |do_pmop_dump |I32 level|PerlIO *file|PMOP *pm | |
2166 | Ap |void |do_sv_dump |I32 level|PerlIO *file|SV *sv|I32 nest \ | |
cea2e8a9 | 2167 | |I32 maxnest|bool dumpops|STRLEN pvlim |
954c1994 | 2168 | Ap |void |magic_dump |MAGIC *mg |
14dd3ad8 | 2169 | #if defined(PERL_FLEXIBLE_EXCEPTIONS) |
954c1994 | 2170 | Ap |void* |default_protect|volatile JMPENV *je|int *excpt \ |
db36c5a1 | 2171 | |protect_body_t body|... |
954c1994 | 2172 | Ap |void* |vdefault_protect|volatile JMPENV *je|int *excpt \ |
db36c5a1 | 2173 | |protect_body_t body|va_list *args |
14dd3ad8 | 2174 | #endif |
954c1994 GS |
2175 | Ap |void |reginitcolors |
2176 | Ap |char* |sv_2pv_nolen |SV* sv | |
2177 | Ap |char* |sv_2pvutf8_nolen|SV* sv | |
2178 | Ap |char* |sv_2pvbyte_nolen|SV* sv | |
2179 | Ap |char* |sv_pv |SV *sv | |
2180 | Ap |char* |sv_pvutf8 |SV *sv | |
2181 | Ap |char* |sv_pvbyte |SV *sv | |
4f4d7711 JH |
2182 | ApMd |void |sv_utf8_upgrade|SV *sv |
2183 | ApMd |bool |sv_utf8_downgrade|SV *sv|bool fail_ok | |
2184 | ApMd |void |sv_utf8_encode |SV *sv | |
2185 | ApM |bool |sv_utf8_decode |SV *sv | |
954c1994 | 2186 | Ap |void |sv_force_normal|SV *sv |
fea65482 GS |
2187 | Ap |void |sv_add_backref |SV *tsv|SV *sv |
2188 | Ap |void |sv_del_backref |SV *sv | |
954c1994 | 2189 | Ap |void |tmps_grow |I32 n |
a40b7efc | 2190 | Apd |SV* |sv_rvweaken |SV *sv |
cea2e8a9 | 2191 | p |int |magic_killbackrefs|SV *sv|MAGIC *mg |
954c1994 GS |
2192 | Ap |OP* |newANONATTRSUB |I32 floor|OP *proto|OP *attrs|OP *block |
2193 | Ap |CV* |newATTRSUB |I32 floor|OP *o|OP *proto|OP *attrs|OP *block | |
2194 | Ap |void |newMYSUB |I32 floor|OP *o|OP *proto|OP *attrs|OP *block | |
09bef843 SB |
2195 | p |OP * |my_attrs |OP *o|OP *attrs |
2196 | p |void |boot_core_xsutils | |
1d7c1841 | 2197 | #if defined(USE_ITHREADS) |
954c1994 GS |
2198 | Ap |PERL_CONTEXT*|cx_dup |PERL_CONTEXT* cx|I32 ix|I32 max |
2199 | Ap |PERL_SI*|si_dup |PERL_SI* si | |
2200 | Ap |ANY* |ss_dup |PerlInterpreter* proto_perl | |
2201 | Ap |void* |any_dup |void* v|PerlInterpreter* proto_perl | |
2202 | Ap |HE* |he_dup |HE* e|bool shared | |
2203 | Ap |REGEXP*|re_dup |REGEXP* r | |
2204 | Ap |PerlIO*|fp_dup |PerlIO* fp|char type | |
2205 | Ap |DIR* |dirp_dup |DIR* dp | |
2206 | Ap |GP* |gp_dup |GP* gp | |
2207 | Ap |MAGIC* |mg_dup |MAGIC* mg | |
2208 | Ap |SV* |sv_dup |SV* sstr | |
1d7c1841 | 2209 | #if defined(HAVE_INTERP_INTERN) |
954c1994 | 2210 | Ap |void |sys_intern_dup |struct interp_intern* src \ |
1d7c1841 GS |
2211 | |struct interp_intern* dst |
2212 | #endif | |
954c1994 GS |
2213 | Ap |PTR_TBL_t*|ptr_table_new |
2214 | Ap |void* |ptr_table_fetch|PTR_TBL_t *tbl|void *sv | |
2215 | Ap |void |ptr_table_store|PTR_TBL_t *tbl|void *oldsv|void *newsv | |
2216 | Ap |void |ptr_table_split|PTR_TBL_t *tbl | |
1d7c1841 | 2217 | #endif |
52853b95 | 2218 | #if defined(HAVE_INTERP_INTERN) |
1cb75286 | 2219 | Ap |void |sys_intern_clear |
52853b95 GS |
2220 | Ap |void |sys_intern_init |
2221 | #endif | |
cea2e8a9 | 2222 | |
0cb96387 GS |
2223 | #if defined(PERL_OBJECT) |
2224 | protected: | |
1d7c1841 GS |
2225 | #else |
2226 | END_EXTERN_C | |
0cb96387 | 2227 | #endif |
1d7c1841 | 2228 | |
0cb96387 | 2229 | #if defined(PERL_IN_AV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 | 2230 | s |I32 |avhv_index_sv |SV* sv |
10c8fecd | 2231 | s |I32 |avhv_index |AV* av|SV* sv|U32 hash |
cea2e8a9 GS |
2232 | #endif |
2233 | ||
0cb96387 | 2234 | #if defined(PERL_IN_DOOP_C) || defined(PERL_DECL_PROT) |
b1fb3988 GS |
2235 | s |I32 |do_trans_simple |SV *sv |
2236 | s |I32 |do_trans_count |SV *sv | |
2237 | s |I32 |do_trans_complex |SV *sv | |
2238 | s |I32 |do_trans_simple_utf8 |SV *sv | |
2239 | s |I32 |do_trans_count_utf8 |SV *sv | |
2240 | s |I32 |do_trans_complex_utf8 |SV *sv | |
cea2e8a9 GS |
2241 | #endif |
2242 | ||
0cb96387 | 2243 | #if defined(PERL_IN_GV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2244 | s |void |gv_init_sv |GV *gv|I32 sv_type |
2245 | #endif | |
2246 | ||
0cb96387 | 2247 | #if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2248 | s |void |hsplit |HV *hv |
2249 | s |void |hfreeentries |HV *hv | |
2250 | s |void |more_he | |
2251 | s |HE* |new_he | |
2252 | s |void |del_he |HE *p | |
2253 | s |HEK* |save_hek |const char *str|I32 len|U32 hash | |
2254 | s |void |hv_magic_check |HV *hv|bool *needs_copy|bool *needs_store | |
2255 | #endif | |
2256 | ||
0cb96387 | 2257 | #if defined(PERL_IN_MG_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2258 | s |void |save_magic |I32 mgs_ix|SV *sv |
2259 | s |int |magic_methpack |SV *sv|MAGIC *mg|char *meth | |
2260 | s |int |magic_methcall |SV *sv|MAGIC *mg|char *meth|I32 f \ | |
2261 | |int n|SV *val | |
cea2e8a9 GS |
2262 | #endif |
2263 | ||
0cb96387 | 2264 | #if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2265 | s |I32 |list_assignment|OP *o |
2266 | s |void |bad_type |I32 n|char *t|char *name|OP *kid | |
3eb57f73 | 2267 | s |void |cop_free |COP *cop |
cea2e8a9 GS |
2268 | s |OP* |modkids |OP *o|I32 type |
2269 | s |void |no_bareword_allowed|OP *o | |
2270 | s |OP* |no_fh_allowed |OP *o | |
2271 | s |OP* |scalarboolean |OP *o | |
2272 | s |OP* |too_few_arguments|OP *o|char* name | |
2273 | s |OP* |too_many_arguments|OP *o|char* name | |
a8ae6a0b | 2274 | s |U8* |trlist_upgrade |U8** sp|U8** ep |
acb36ea4 | 2275 | s |void |op_clear |OP* o |
cea2e8a9 | 2276 | s |void |null |OP* o |
94f23f41 | 2277 | s |PADOFFSET|pad_addlex |SV* name |
cea2e8a9 GS |
2278 | s |PADOFFSET|pad_findlex |char* name|PADOFFSET newoff|U32 seq \ |
2279 | |CV* startcv|I32 cx_ix|I32 saweval|U32 flags | |
2280 | s |OP* |newDEFSVOP | |
2281 | s |OP* |new_logop |I32 type|I32 flags|OP **firstp|OP **otherp | |
2282 | s |void |simplify_sort |OP *o | |
2283 | s |bool |is_handle_constructor |OP *o|I32 argnum | |
2284 | s |char* |gv_ename |GV *gv | |
1d7c1841 | 2285 | s |void |cv_dump |CV *cv |
cea2e8a9 GS |
2286 | s |CV* |cv_clone2 |CV *proto|CV *outside |
2287 | s |bool |scalar_mod_type|OP *o|I32 type | |
09bef843 SB |
2288 | s |OP * |my_kid |OP *o|OP *attrs |
2289 | s |OP * |dup_attrlist |OP *o | |
2290 | s |void |apply_attrs |HV *stash|SV *target|OP *attrs | |
cea2e8a9 GS |
2291 | # if defined(PL_OP_SLAB_ALLOC) |
2292 | s |void* |Slab_Alloc |int m|size_t sz | |
2293 | # endif | |
2294 | #endif | |
2295 | ||
0cb96387 | 2296 | #if defined(PERL_IN_PERL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2297 | s |void |find_beginning |
2298 | s |void |forbid_setid |char * | |
9c8a64f0 | 2299 | s |void |incpush |char *|int|int |
cea2e8a9 GS |
2300 | s |void |init_interp |
2301 | s |void |init_ids | |
cea2e8a9 GS |
2302 | s |void |init_lexer |
2303 | s |void |init_main_stash | |
2304 | s |void |init_perllib | |
2305 | s |void |init_postdump_symbols|int|char **|char ** | |
2306 | s |void |init_predump_symbols | |
2307 | rs |void |my_exit_jump | |
2308 | s |void |nuke_stacks | |
2309 | s |void |open_script |char *|bool|SV *|int *fd | |
2310 | s |void |usage |char * | |
2311 | s |void |validate_suid |char *|char*|int | |
cea2e8a9 GS |
2312 | # if defined(IAMSUID) |
2313 | s |int |fd_on_nosuid_fs|int fd | |
2314 | # endif | |
14dd3ad8 GS |
2315 | s |void* |parse_body |char **env|XSINIT_t xsinit |
2316 | s |void* |run_body |I32 oldscope | |
2317 | s |void |call_body |OP *myop|int is_eval | |
2318 | s |void* |call_list_body |CV *cv | |
2319 | #if defined(PERL_FLEXIBLE_EXCEPTIONS) | |
2320 | s |void* |vparse_body |va_list args | |
2321 | s |void* |vrun_body |va_list args | |
2322 | s |void* |vcall_body |va_list args | |
2323 | s |void* |vcall_list_body|va_list args | |
2324 | #endif | |
cea2e8a9 GS |
2325 | # if defined(USE_THREADS) |
2326 | s |struct perl_thread * |init_main_thread | |
2327 | # endif | |
2328 | #endif | |
2329 | ||
0cb96387 | 2330 | #if defined(PERL_IN_PP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2331 | s |void |doencodes |SV* sv|char* s|I32 len |
2332 | s |SV* |refto |SV* sv | |
2333 | s |U32 |seed | |
2334 | s |SV* |mul128 |SV *sv|U8 m | |
2335 | s |SV* |is_an_int |char *s|STRLEN l | |
2336 | s |int |div128 |SV *pnum|bool *done | |
2337 | #endif | |
2338 | ||
0cb96387 | 2339 | #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 | 2340 | s |OP* |docatch |OP *o |
14dd3ad8 GS |
2341 | s |void* |docatch_body |
2342 | #if defined(PERL_FLEXIBLE_EXCEPTIONS) | |
2343 | s |void* |vdocatch_body |va_list args | |
2344 | #endif | |
cea2e8a9 GS |
2345 | s |OP* |dofindlabel |OP *o|char *label|OP **opstack|OP **oplimit |
2346 | s |void |doparseform |SV *sv | |
2347 | s |I32 |dopoptoeval |I32 startingblock | |
2348 | s |I32 |dopoptolabel |char *label | |
2349 | s |I32 |dopoptoloop |I32 startingblock | |
2350 | s |I32 |dopoptosub |I32 startingblock | |
2351 | s |I32 |dopoptosub_at |PERL_CONTEXT* cxstk|I32 startingblock | |
cea2e8a9 GS |
2352 | s |void |save_lines |AV *array|SV *sv |
2353 | s |OP* |doeval |int gimme|OP** startop | |
2354 | s |PerlIO *|doopen_pmc |const char *name|const char *mode | |
2355 | s |void |qsortsv |SV ** array|size_t num_elts|SVCOMPARE_t f | |
cea2e8a9 GS |
2356 | #endif |
2357 | ||
0cb96387 | 2358 | #if defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT) |
10c8fecd GS |
2359 | s |int |do_maybe_phash |AV *ary|SV **lelem|SV **firstlelem \ |
2360 | |SV **relem|SV **lastrelem | |
2361 | s |void |do_oddball |HV *hash|SV **relem|SV **firstrelem | |
cea2e8a9 | 2362 | s |CV* |get_db_sub |SV **svp|CV *cv |
f5d5a27c | 2363 | s |SV* |method_common |SV* meth|U32* hashp |
cea2e8a9 GS |
2364 | #endif |
2365 | ||
0cb96387 | 2366 | #if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT) |
cea2e8a9 | 2367 | s |OP* |doform |CV *cv|GV *gv|OP *retop |
7f4774ae | 2368 | s |int |emulate_eaccess|const char* path|Mode_t mode |
cea2e8a9 GS |
2369 | # if !defined(HAS_MKDIR) || !defined(HAS_RMDIR) |
2370 | s |int |dooneliner |char *cmd|char *filename | |
2371 | # endif | |
2372 | #endif | |
2373 | ||
0cb96387 | 2374 | #if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2375 | s |regnode*|reg |I32|I32 * |
2376 | s |regnode*|reganode |U8|U32 | |
2377 | s |regnode*|regatom |I32 * | |
2378 | s |regnode*|regbranch |I32 *|I32 | |
a4bf32d5 | 2379 | s |void |reguni |UV|char *|STRLEN* |
cea2e8a9 GS |
2380 | s |regnode*|regclass |
2381 | s |regnode*|regclassutf8 | |
2382 | s |I32 |regcurly |char * | |
2383 | s |regnode*|reg_node |U8 | |
2384 | s |regnode*|regpiece |I32 * | |
2385 | s |void |reginsert |U8|regnode * | |
2386 | s |void |regoptail |regnode *|regnode * | |
2387 | s |void |regtail |regnode *|regnode * | |
2388 | s |char*|regwhite |char *|char * | |
2389 | s |char*|nextchar | |
2390 | s |regnode*|dumpuntil |regnode *start|regnode *node \ | |
2391 | |regnode *last|SV* sv|I32 l | |
1d7c1841 | 2392 | s |void |put_byte |SV* sv|int c |
82ba1be6 | 2393 | s |void |scan_commit |struct scan_data_t *data |
1d7c1841 GS |
2394 | s |void |cl_anything |struct regnode_charclass_class *cl |
2395 | s |int |cl_is_anything |struct regnode_charclass_class *cl | |
2396 | s |void |cl_init |struct regnode_charclass_class *cl | |
2397 | s |void |cl_init_zero |struct regnode_charclass_class *cl | |
2398 | s |void |cl_and |struct regnode_charclass_class *cl \ | |
2399 | |struct regnode_charclass_class *and_with | |
2400 | s |void |cl_or |struct regnode_charclass_class *cl \ | |
2401 | |struct regnode_charclass_class *or_with | |
cea2e8a9 | 2402 | s |I32 |study_chunk |regnode **scanp|I32 *deltap \ |
82ba1be6 IZ |
2403 | |regnode *last|struct scan_data_t *data \ |
2404 | |U32 flags | |
cea2e8a9 GS |
2405 | s |I32 |add_data |I32 n|char *s |
2406 | rs |void|re_croak2 |const char* pat1|const char* pat2|... | |
b8c5462f JH |
2407 | s |I32 |regpposixcc |I32 value |
2408 | s |void |checkposixcc | |
cea2e8a9 GS |
2409 | #endif |
2410 | ||
0cb96387 | 2411 | #if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2412 | s |I32 |regmatch |regnode *prog |
2413 | s |I32 |regrepeat |regnode *p|I32 max | |
2414 | s |I32 |regrepeat_hard |regnode *p|I32 max|I32 *lp | |
2415 | s |I32 |regtry |regexp *prog|char *startpos | |
1d7c1841 | 2416 | s |bool |reginclass |regnode *p|I32 c |
cea2e8a9 GS |
2417 | s |bool |reginclassutf8 |regnode *f|U8* p |
2418 | s |CHECKPOINT|regcppush |I32 parenfloor | |
2419 | s |char*|regcppop | |
2420 | s |char*|regcp_set_to |I32 ss | |
2421 | s |void |cache_re |regexp *prog | |
cea2e8a9 GS |
2422 | s |U8* |reghop |U8 *pos|I32 off |
2423 | s |U8* |reghopmaybe |U8 *pos|I32 off | |
1d7c1841 | 2424 | s |char* |find_byclass |regexp * prog|regnode *c|char *s|char *strend|char *startpos|I32 norun |
cea2e8a9 GS |
2425 | #endif |
2426 | ||
0cb96387 | 2427 | #if defined(PERL_IN_RUN_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2428 | s |void |debprof |OP *o |
2429 | #endif | |
2430 | ||
0cb96387 | 2431 | #if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2432 | s |SV* |save_scalar_at |SV **sptr |
2433 | #endif | |
2434 | ||
0cb96387 | 2435 | #if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2436 | s |IV |asIV |SV* sv |
2437 | s |UV |asUV |SV* sv | |
2438 | s |SV* |more_sv | |
2439 | s |void |more_xiv | |
2440 | s |void |more_xnv | |
2441 | s |void |more_xpv | |
932e9ff9 VB |
2442 | s |void |more_xpviv |
2443 | s |void |more_xpvnv | |
2444 | s |void |more_xpvcv | |
2445 | s |void |more_xpvav | |
2446 | s |void |more_xpvhv | |
2447 | s |void |more_xpvmg | |
2448 | s |void |more_xpvlv | |
2449 | s |void |more_xpvbm | |
cea2e8a9 GS |
2450 | s |void |more_xrv |
2451 | s |XPVIV* |new_xiv | |
2452 | s |XPVNV* |new_xnv | |
2453 | s |XPV* |new_xpv | |
932e9ff9 VB |
2454 | s |XPVIV* |new_xpviv |
2455 | s |XPVNV* |new_xpvnv | |
2456 | s |XPVCV* |new_xpvcv | |
2457 | s |XPVAV* |new_xpvav | |
2458 | s |XPVHV* |new_xpvhv | |
2459 | s |XPVMG* |new_xpvmg | |
2460 | s |XPVLV* |new_xpvlv | |
2461 | s |XPVBM* |new_xpvbm | |
cea2e8a9 GS |
2462 | s |XRV* |new_xrv |
2463 | s |void |del_xiv |XPVIV* p | |
2464 | s |void |del_xnv |XPVNV* p | |
2465 | s |void |del_xpv |XPV* p | |
932e9ff9 VB |
2466 | s |void |del_xpviv |XPVIV* p |
2467 | s |void |del_xpvnv |XPVNV* p | |
2468 | s |void |del_xpvcv |XPVCV* p | |
2469 | s |void |del_xpvav |XPVAV* p | |
2470 | s |void |del_xpvhv |XPVHV* p | |
2471 | s |void |del_xpvmg |XPVMG* p | |
2472 | s |void |del_xpvlv |XPVLV* p | |
2473 | s |void |del_xpvbm |XPVBM* p | |
cea2e8a9 GS |
2474 | s |void |del_xrv |XRV* p |
2475 | s |void |sv_unglob |SV* sv | |
cea2e8a9 | 2476 | s |void |not_a_number |SV *sv |
ec3d44d0 | 2477 | s |I32 |visit |SVFUNC_t f |
cea2e8a9 GS |
2478 | # if defined(DEBUGGING) |
2479 | s |void |del_sv |SV *p | |
2480 | # endif | |
2481 | #endif | |
2482 | ||
0cb96387 | 2483 | #if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2484 | s |void |check_uni |
2485 | s |void |force_next |I32 type | |
2486 | s |char* |force_version |char *start | |
2487 | s |char* |force_word |char *start|int token|int check_keyword \ | |
2488 | |int allow_pack|int allow_tick | |
2489 | s |SV* |tokeq |SV *sv | |
2490 | s |char* |scan_const |char *start | |
2491 | s |char* |scan_formline |char *s | |
2492 | s |char* |scan_heredoc |char *s | |
2493 | s |char* |scan_ident |char *s|char *send|char *dest \ | |
2494 | |STRLEN destlen|I32 ck_uni | |
2495 | s |char* |scan_inputsymbol|char *start | |
2496 | s |char* |scan_pat |char *start|I32 type | |
09bef843 | 2497 | s |char* |scan_str |char *start|int keep_quoted|int keep_delims |
cea2e8a9 GS |
2498 | s |char* |scan_subst |char *start |
2499 | s |char* |scan_trans |char *start | |
2500 | s |char* |scan_word |char *s|char *dest|STRLEN destlen \ | |
2501 | |int allow_package|STRLEN *slp | |
2502 | s |char* |skipspace |char *s | |
67368f91 | 2503 | s |char* |swallow_bom |U8 *s |
cea2e8a9 GS |
2504 | s |void |checkcomma |char *s|char *name|char *what |
2505 | s |void |force_ident |char *s|int kind | |
2506 | s |void |incline |char *s | |
2507 | s |int |intuit_method |char *s|GV *gv | |
2508 | s |int |intuit_more |char *s | |
1d7c1841 | 2509 | s |I32 |lop |I32 f|int x|char *s |
cea2e8a9 GS |
2510 | s |void |missingterm |char *s |
2511 | s |void |no_op |char *what|char *s | |
2512 | s |void |set_csh | |
2513 | s |I32 |sublex_done | |
2514 | s |I32 |sublex_push | |
2515 | s |I32 |sublex_start | |
2516 | s |char * |filter_gets |SV *sv|PerlIO *fp|STRLEN append | |
a5e3f89e | 2517 | s |HV * |find_in_my_stash|char *pkgname|I32 len |
1d7c1841 GS |
2518 | s |SV* |new_constant |char *s|STRLEN len|const char *key|SV *sv \ |
2519 | |SV *pv|const char *type | |
cea2e8a9 GS |
2520 | s |int |ao |int toketype |
2521 | s |void |depcom | |
2522 | s |char* |incl_perldb | |
155aba94 | 2523 | #if 0 |
cea2e8a9 GS |
2524 | s |I32 |utf16_textfilter|int idx|SV *sv|int maxlen |
2525 | s |I32 |utf16rev_textfilter|int idx|SV *sv|int maxlen | |
155aba94 | 2526 | #endif |
cea2e8a9 GS |
2527 | # if defined(CRIPPLED_CC) |
2528 | s |int |uni |I32 f|char *s | |
2529 | # endif | |
c39cd008 GS |
2530 | # if defined(PERL_CR_FILTER) |
2531 | s |I32 |cr_textfilter |int idx|SV *sv|int maxlen | |
cea2e8a9 GS |
2532 | # endif |
2533 | #endif | |
2534 | ||
0cb96387 | 2535 | #if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT) |
cea2e8a9 GS |
2536 | s |SV*|isa_lookup |HV *stash|const char *name|int len|int level |
2537 | #endif | |
2538 | ||
0cb96387 | 2539 | #if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT) |
bd3a7847 | 2540 | s |char* |stdize_locale |char* locs |
cea2e8a9 | 2541 | s |SV* |mess_alloc |
cea2e8a9 GS |
2542 | # if defined(LEAKTEST) |
2543 | s |void |xstat |int | |
2544 | # endif | |
2545 | #endif | |
1d7c1841 GS |
2546 | |
2547 | #if defined(PERL_OBJECT) | |
2548 | }; | |
2549 | #endif |