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