Reloading File::Copy
[p5sagit/p5-mst-13.2.git] / makedef.pl
1 #
2 # Create the export list for perl.
3 #
4 # Needed by WIN32 and OS/2 for creating perl.dll
5 # and by AIX for creating libperl.a when -Dusershrplib is in effect.
6 #
7 # reads global.sym, pp.sym, perlvars.h, intrpvar.h, thrdvar.h, config.h
8 # On OS/2 reads miniperl.map as well
9
10 my $PLATFORM;
11 my $CCTYPE;
12
13 my %bincompat5005 =
14       (Perl_call_argv           =>      "perl_call_argv",
15        Perl_call_method         =>      "perl_call_method",
16        Perl_call_pv             =>      "perl_call_pv",
17        Perl_call_sv             =>      "perl_call_sv",
18        Perl_get_av              =>      "perl_get_av",
19        Perl_get_cv              =>      "perl_get_cv",
20        Perl_get_hv              =>      "perl_get_hv",
21        Perl_get_sv              =>      "perl_get_sv",
22        Perl_init_i18nl10n       =>      "perl_init_i18nl10n",
23        Perl_init_i18nl14n       =>      "perl_init_i18nl14n",
24        Perl_new_collate         =>      "perl_new_collate",
25        Perl_new_ctype           =>      "perl_new_ctype",
26        Perl_new_numeric         =>      "perl_new_numeric",
27        Perl_require_pv          =>      "perl_require_pv",
28        Perl_safesyscalloc       =>      "Perl_safecalloc",
29        Perl_safesysfree         =>      "Perl_safefree",
30        Perl_safesysmalloc       =>      "Perl_safemalloc",
31        Perl_safesysrealloc      =>      "Perl_saferealloc",
32        Perl_set_numeric_local   =>      "perl_set_numeric_local",
33        Perl_set_numeric_standard  =>    "perl_set_numeric_standard",
34        Perl_malloc              =>      "malloc",
35        Perl_mfree               =>      "free",
36        Perl_realloc             =>      "realloc",
37        Perl_calloc              =>      "calloc",);
38
39 my $bincompat5005 = join("|", keys %bincompat5005);
40
41 while (@ARGV) {
42     my $flag = shift;
43     $define{$1} = 1 if ($flag =~ /^-D(\w+)$/);
44     $define{$1} = $2 if ($flag =~ /^-D(\w+)=(.+)$/);
45     $CCTYPE   = $1 if ($flag =~ /^CCTYPE=(\w+)$/);
46     $PLATFORM = $1 if ($flag =~ /^PLATFORM=(\w+)$/);
47 }
48
49 my @PLATFORM = qw(aix win32 os2);
50 my %PLATFORM;
51 @PLATFORM{@PLATFORM} = ();
52
53 defined $PLATFORM || die "PLATFORM undefined, must be one of: @PLATFORM\n";
54 exists $PLATFORM{$PLATFORM} || die "PLATFORM must be one of: @PLATFORM\n"; 
55
56 my $config_sh   = "config.sh";
57 my $config_h    = "config.h";
58 my $thrdvar_h   = "thrdvar.h";
59 my $intrpvar_h  = "intrpvar.h";
60 my $perlvars_h  = "perlvars.h";
61 my $global_sym  = "global.sym";
62 my $pp_sym      = "pp.sym";
63 my $globvar_sym = "globvar.sym";
64 my $perlio_sym  = "perlio.sym";
65
66 if ($PLATFORM eq 'aix') { 
67     # Nothing for now.
68 }
69 elsif ($PLATFORM eq 'win32') {
70     $CCTYPE = "MSVC" unless defined $CCTYPE;
71     foreach ($thrdvar_h, $intrpvar_h, $perlvars_h, $global_sym, $pp_sym, $globvar_sym) {
72         s!^!..\\!;
73     }
74 }
75
76 unless ($PLATFORM eq 'win32') {
77     open(CFG,$config_sh) || die "Cannot open $config_sh: $!\n";
78     while (<CFG>) {
79         if (/^(?:ccflags|optimize)='(.+)'$/) {
80             $_ = $1;
81             $define{$1} = 1 while /-D(\w+)/g;
82         }
83         if ($PLATFORM eq 'os2') {
84             $CONFIG_ARGS = $1 if /^(?:config_args)='(.+)'$/;
85             $ARCHNAME = $1 if /^(?:archname)='(.+)'$/;
86         }
87     }
88     close(CFG);
89 }
90
91 open(CFG,$config_h) || die "Cannot open $config_h: $!\n";
92 while (<CFG>) {
93     $define{$1} = 1 if /^\s*#\s*define\s+(MYMALLOC)\b/;
94     $define{$1} = 1 if /^\s*#\s*define\s+(USE_THREADS)\b/;
95     $define{$1} = 1 if /^\s*#\s*define\s+(USE_PERLIO)\b/;
96     $define{$1} = 1 if /^\s*#\s*define\s+(MULTIPLICITY)\b/;
97     $define{$1} = 1 if /^\s*#\s*define\s+(PERL_BINCOMPAT_5005)\b/;
98 }
99 close(CFG);
100
101 if ($PLATFORM eq 'win32') {
102     warn join(' ',keys %define)."\n";
103     if ($define{PERL_OBJECT}) {
104         print "LIBRARY Perl56\n";
105         print "DESCRIPTION 'Perl interpreter'\n";
106         print "EXPORTS\n";
107 #    output_symbol("perl_alloc");
108         output_symbol("perl_get_host_info");
109         output_symbol("perl_alloc_override");
110 #    output_symbol("perl_construct");
111 #    output_symbol("perl_destruct");
112 #    output_symbol("perl_free");
113 #    output_symbol("perl_parse");
114 #    output_symbol("perl_run");
115 #    output_symbol("RunPerl");
116 #    exit(0);
117     }
118     else {
119         print "LIBRARY Perl\n";
120         print "DESCRIPTION 'Perl interpreter, export autogenerated'\n";
121         print "EXPORTS\n";
122     } 
123 }
124 elsif ($PLATFORM eq 'os2') {
125     ($v = $]) =~ s/(\d\.\d\d\d)(\d\d)$/$1_$2/;
126     $v .= '-thread' if $ARCHNAME =~ /-thread/;
127     #$sum = 0;
128     #for (split //, $v) {
129     #   $sum = ($sum * 33) + ord;
130     #   $sum &= 0xffffff;
131     #}
132     #$sum += $sum >> 5;
133     #$sum &= 0xffff;
134     #$sum = printf '%X', $sum;
135     ($dll = $define{PERL_DLL}) =~ s/\.dll$//i;
136     # print STDERR "'$dll' <= '$define{PERL_DLL}'\n";
137     print <<"---EOP---";
138 LIBRARY '$dll' INITINSTANCE TERMINSTANCE
139 DESCRIPTION '\@#perl5-porters\@perl.org:$v#\@ Perl interpreter, configured as $CONFIG_ARGS'
140 STACKSIZE 32768
141 CODE LOADONCALL
142 DATA LOADONCALL NONSHARED MULTIPLE
143 EXPORTS
144 ---EOP---
145 }
146 elsif ($PLATFORM eq 'aix') {
147     print "#!\n";
148 }
149
150 my %skip;
151 my %export;
152
153 sub skip_symbols {
154     my $list = shift;
155     foreach my $symbol (@$list) {
156         $skip{$symbol} = 1;
157     }
158 }
159
160 sub emit_symbols {
161     my $list = shift;
162     foreach my $symbol (@$list) {
163         my $skipsym = $symbol;
164         # XXX hack
165         if ($define{PERL_OBJECT}) {
166             $skipsym =~ s/^Perl_[GIT](\w+)_ptr$/PL_$1/;
167         }
168         emit_symbol($symbol) unless exists $skip{$skipsym};
169     }
170 }
171
172 if ($PLATFORM eq 'win32') {
173     skip_symbols [qw(
174                      PL_statusvalue_vms
175                      PL_archpat_auto
176                      PL_cryptseen
177                      PL_DBcv
178                      PL_generation
179                      PL_lastgotoprobe
180                      PL_linestart
181                      PL_modcount
182                      PL_pending_ident
183                      PL_sortcxix
184                      PL_sublex_info
185                      PL_timesbuf
186                      main
187                      Perl_ErrorNo
188                      Perl_GetVars
189                      Perl_do_exec3
190                      Perl_do_ipcctl
191                      Perl_do_ipcget
192                      Perl_do_msgrcv
193                      Perl_do_msgsnd
194                      Perl_do_semop
195                      Perl_do_shmio
196                      Perl_dump_fds
197                      Perl_init_thread_intern
198                      Perl_my_bzero
199                      Perl_my_htonl
200                      Perl_my_ntohl
201                      Perl_my_swap
202                      Perl_my_chsize
203                      Perl_same_dirent
204                      Perl_setenv_getix
205                      Perl_unlnk
206                      Perl_watch
207                      Perl_safexcalloc
208                      Perl_safexmalloc
209                      Perl_safexfree
210                      Perl_safexrealloc
211                      Perl_my_memcmp
212                      Perl_my_memset
213                      PL_cshlen
214                      PL_cshname
215                      PL_opsave
216                      Perl_do_exec
217                      Perl_getenv_len
218                      Perl_my_pclose
219                      Perl_my_popen
220                      )];
221 }
222 elsif ($PLATFORM eq 'aix') {
223     skip_symbols([qw(
224                      Perl_dump_fds
225                      Perl_ErrorNo
226                      Perl_GetVars
227                      Perl_my_bcopy
228                      Perl_my_bzero
229                      Perl_my_chsize
230                      Perl_my_htonl
231                      Perl_my_memcmp
232                      Perl_my_memset
233                      Perl_my_ntohl
234                      Perl_my_swap
235                      Perl_safexcalloc
236                      Perl_safexfree
237                      Perl_safexmalloc
238                      Perl_safexrealloc
239                      Perl_same_dirent
240                      Perl_unlnk
241                      PL_cryptseen
242                      PL_opsave
243                      PL_statusvalue_vms
244                      PL_sys_intern
245                      )]);
246 }
247 elsif ($PLATFORM eq 'os2') {
248     emit_symbols([qw(
249                     ctermid
250                     get_sysinfo
251                     Perl_OS2_init
252                     OS2_Perl_data
253                     dlopen
254                     dlsym
255                     dlerror
256                     my_tmpfile
257                     my_tmpnam
258                     my_flock
259                     malloc_mutex
260                     threads_mutex
261                     nthreads
262                     nthreads_cond
263                     os2_cond_wait
264                     os2_stat
265                     pthread_join
266                     pthread_create
267                     pthread_detach
268                     XS_Cwd_change_drive
269                     XS_Cwd_current_drive
270                     XS_Cwd_extLibpath
271                     XS_Cwd_extLibpath_set
272                     XS_Cwd_sys_abspath
273                     XS_Cwd_sys_chdir
274                     XS_Cwd_sys_cwd
275                     XS_Cwd_sys_is_absolute
276                     XS_Cwd_sys_is_relative
277                     XS_Cwd_sys_is_rooted
278                     XS_DynaLoader_mod2fname
279                     XS_File__Copy_syscopy
280                     Perl_Register_MQ
281                     Perl_Deregister_MQ
282                     Perl_Serve_Messages
283                     Perl_Process_Messages
284                     init_PMWIN_entries
285                     PMWIN_entries
286                     Perl_hab_GET
287                     )]);
288 }
289
290 unless ($define{'DEBUGGING'}) {
291     skip_symbols [qw(
292                     Perl_deb
293                     Perl_deb_growlevel
294                     Perl_debop
295                     Perl_debprofdump
296                     Perl_debstack
297                     Perl_debstackptrs
298                     Perl_runops_debug
299                     Perl_sv_peek
300                     PL_block_type
301                     PL_watchaddr
302                     PL_watchok
303                     )];
304 }
305
306 if ($define{'PERL_IMPLICIT_SYS'}) {
307     skip_symbols [qw(
308                     Perl_getenv_len
309                     Perl_my_popen
310                     Perl_my_pclose
311                     )];
312 }
313 else {
314     skip_symbols [qw(
315                     PL_Mem
316                     PL_MemShared
317                     PL_MemParse
318                     PL_Env
319                     PL_StdIO
320                     PL_LIO
321                     PL_Dir
322                     PL_Sock
323                     PL_Proc
324                     )];
325 }
326
327 if ($define{'MYMALLOC'}) {
328     emit_symbols [qw(
329                     Perl_dump_mstats
330                     Perl_malloc
331                     Perl_mfree
332                     Perl_realloc
333                     Perl_calloc
334                     )];
335     if ($define{'USE_THREADS'} || $define{'USE_ITHREADS'}) {
336         emit_symbols [qw(
337                         PL_malloc_mutex
338                         )];
339     }
340 }
341 else {
342     skip_symbols [qw(
343                     PL_malloc_mutex
344                     Perl_dump_mstats
345                     Perl_malloc
346                     Perl_mfree
347                     Perl_realloc
348                     Perl_calloc
349                     Perl_malloced_size
350                     )];
351 }
352
353 unless ($define{'USE_THREADS'}) {
354     skip_symbols [qw(
355                     PL_thr_key
356                     PL_sv_mutex
357                     PL_strtab_mutex
358                     PL_svref_mutex
359                     PL_cred_mutex
360                     PL_eval_mutex
361                     PL_eval_cond
362                     PL_eval_owner
363                     PL_threads_mutex
364                     PL_nthreads
365                     PL_nthreads_cond
366                     PL_threadnum
367                     PL_threadsv_names
368                     PL_thrsv
369                     PL_vtbl_mutex
370                     Perl_getTHR
371                     Perl_setTHR
372                     Perl_condpair_magic
373                     Perl_new_struct_thread
374                     Perl_per_thread_magicals
375                     Perl_thread_create
376                     Perl_find_threadsv
377                     Perl_unlock_condpair
378                     Perl_magic_mutexfree
379                     )];
380 }
381
382 unless ($define{'USE_ITHREADS'}) {
383     skip_symbols [qw(
384                     PL_ptr_table
385                     Perl_dirp_dup
386                     Perl_cx_dup
387                     Perl_si_dup
388                     Perl_any_dup
389                     Perl_ss_dup
390                     Perl_fp_dup
391                     Perl_gp_dup
392                     Perl_he_dup
393                     Perl_mg_dup
394                     Perl_re_dup
395                     Perl_sv_dup
396                     Perl_sys_intern_dup
397                     Perl_ptr_table_fetch
398                     Perl_ptr_table_new
399                     Perl_ptr_table_split
400                     Perl_ptr_table_store
401                     perl_clone
402                     perl_clone_using
403                     )];
404 }
405
406 unless ($define{'PERL_IMPLICIT_CONTEXT'}) {
407     skip_symbols [qw(
408                     Perl_croak_nocontext
409                     Perl_die_nocontext
410                     Perl_deb_nocontext
411                     Perl_form_nocontext
412                     Perl_mess_nocontext
413                     Perl_warn_nocontext
414                     Perl_warner_nocontext
415                     Perl_newSVpvf_nocontext
416                     Perl_sv_catpvf_nocontext
417                     Perl_sv_setpvf_nocontext
418                     Perl_sv_catpvf_mg_nocontext
419                     Perl_sv_setpvf_mg_nocontext
420                     )];
421 }
422
423 unless ($define{'PERL_IMPLICIT_SYS'}) {
424     skip_symbols [qw(
425                     perl_alloc_using
426                     perl_clone_using
427                     )];
428 }
429
430 unless ($define{'FAKE_THREADS'}) {
431     skip_symbols [qw(PL_curthr)];
432 }
433
434 sub readvar {
435     my $file = shift;
436     my $proc = shift || sub { "PL_$_[2]" };
437     open(VARS,$file) || die "Cannot open $file: $!\n";
438     my @syms;
439     while (<VARS>) {
440         # All symbols have a Perl_ prefix because that's what embed.h
441         # sticks in front of them.
442         push(@syms, &$proc($1,$2,$3)) if (/\bPERLVAR(A?I?C?)\(([IGT])(\w+)/);
443     } 
444     close(VARS); 
445     return \@syms;
446 }
447
448 if ($define{'USE_THREADS'} || $define{'MULTIPLICITY'}) {
449     my $thrd = readvar($thrdvar_h);
450     skip_symbols $thrd;
451 }
452
453 if ($define{'MULTIPLICITY'}) {
454     my $interp = readvar($intrpvar_h);
455     skip_symbols $interp;
456 }
457
458 if ($define{'PERL_GLOBAL_STRUCT'}) {
459     my $global = readvar($perlvars_h);
460     skip_symbols $global;
461     emit_symbol('Perl_GetVars');
462     emit_symbols [qw(PL_Vars PL_VarsPtr)] unless $CCTYPE eq 'GCC';
463 }
464
465 # functions from *.sym files
466
467 my @syms = ($global_sym, $pp_sym, $globvar_sym);
468
469 if ($define{'USE_PERLIO'}) {
470      push @syms, $perlio_sym;
471 }
472
473 for my $syms (@syms) {
474     open (GLOBAL, "<$syms") || die "failed to open $syms: $!\n";
475     while (<GLOBAL>) {
476         next if (!/^[A-Za-z]/);
477         # Functions have a Perl_ prefix
478         # Variables have a PL_ prefix
479         chomp($_);
480         my $symbol = ($syms =~ /var\.sym$/i ? "PL_" : "");
481         $symbol .= $_;
482         emit_symbol($symbol) unless exists $skip{$symbol};
483     }
484     close(GLOBAL);
485 }
486
487 # variables
488
489 if ($define{'PERL_OBJECT'}) {
490     for my $f ($perlvars_h, $intrpvar_h, $thrdvar_h) {
491         my $glob = readvar($f, sub { "Perl_" . $_[1] . $_[2] . "_ptr" });
492         emit_symbols $glob;
493     }
494 }
495 else {
496     unless ($define{'PERL_GLOBAL_STRUCT'}) {
497         my $glob = readvar($perlvars_h);
498         emit_symbols $glob;
499     } 
500     unless ($define{'MULTIPLICITY'}) {
501         my $glob = readvar($intrpvar_h);
502         emit_symbols $glob;
503     } 
504     unless ($define{'MULTIPLICITY'} || $define{'USE_THREADS'}) {
505         my $glob = readvar($thrdvar_h);
506         emit_symbols $glob;
507     } 
508 }
509
510 sub try_symbol {
511     my $symbol = shift;
512
513     return if $symbol !~ /^[A-Za-z]/;
514     return if $symbol =~ /^\#/;
515     $symbol =~s/\r//g;
516     chomp($symbol);
517     return if exists $skip{$symbol};
518     emit_symbol($symbol);
519 }
520
521 while (<DATA>) {
522     try_symbol($_);
523 }
524
525 if ($PLATFORM eq 'win32') {
526     foreach my $symbol (qw(
527                             boot_DynaLoader
528                             Perl_getTHR
529                             Perl_init_os_extras
530                             Perl_setTHR
531                             Perl_thread_create
532                             Perl_win32_init
533                             RunPerl
534                             GetPerlInterpreter
535                             SetPerlInterpreter
536                             win32_errno
537                             win32_environ
538                             win32_stdin
539                             win32_stdout
540                             win32_stderr
541                             win32_ferror
542                             win32_feof
543                             win32_strerror
544                             win32_fprintf
545                             win32_printf
546                             win32_vfprintf
547                             win32_vprintf
548                             win32_fread
549                             win32_fwrite
550                             win32_fopen
551                             win32_fdopen
552                             win32_freopen
553                             win32_fclose
554                             win32_fputs
555                             win32_fputc
556                             win32_ungetc
557                             win32_getc
558                             win32_fileno
559                             win32_clearerr
560                             win32_fflush
561                             win32_ftell
562                             win32_fseek
563                             win32_fgetpos
564                             win32_fsetpos
565                             win32_rewind
566                             win32_tmpfile
567                             win32_abort
568                             win32_fstat
569                             win32_stat
570                             win32_pipe
571                             win32_popen
572                             win32_pclose
573                             win32_rename
574                             win32_setmode
575                             win32_lseek
576                             win32_tell
577                             win32_dup
578                             win32_dup2
579                             win32_open
580                             win32_close
581                             win32_eof
582                             win32_read
583                             win32_write
584                             win32_spawnvp
585                             win32_mkdir
586                             win32_rmdir
587                             win32_chdir
588                             win32_flock
589                             win32_execv
590                             win32_execvp
591                             win32_htons
592                             win32_ntohs
593                             win32_htonl
594                             win32_ntohl
595                             win32_inet_addr
596                             win32_inet_ntoa
597                             win32_socket
598                             win32_bind
599                             win32_listen
600                             win32_accept
601                             win32_connect
602                             win32_send
603                             win32_sendto
604                             win32_recv
605                             win32_recvfrom
606                             win32_shutdown
607                             win32_closesocket
608                             win32_ioctlsocket
609                             win32_setsockopt
610                             win32_getsockopt
611                             win32_getpeername
612                             win32_getsockname
613                             win32_gethostname
614                             win32_gethostbyname
615                             win32_gethostbyaddr
616                             win32_getprotobyname
617                             win32_getprotobynumber
618                             win32_getservbyname
619                             win32_getservbyport
620                             win32_select
621                             win32_endhostent
622                             win32_endnetent
623                             win32_endprotoent
624                             win32_endservent
625                             win32_getnetent
626                             win32_getnetbyname
627                             win32_getnetbyaddr
628                             win32_getprotoent
629                             win32_getservent
630                             win32_sethostent
631                             win32_setnetent
632                             win32_setprotoent
633                             win32_setservent
634                             win32_getenv
635                             win32_putenv
636                             win32_perror
637                             win32_setbuf
638                             win32_setvbuf
639                             win32_flushall
640                             win32_fcloseall
641                             win32_fgets
642                             win32_gets
643                             win32_fgetc
644                             win32_putc
645                             win32_puts
646                             win32_getchar
647                             win32_putchar
648                             win32_malloc
649                             win32_calloc
650                             win32_realloc
651                             win32_free
652                             win32_sleep
653                             win32_times
654                             win32_access
655                             win32_alarm
656                             win32_chmod
657                             win32_open_osfhandle
658                             win32_get_osfhandle
659                             win32_ioctl
660                             win32_link
661                             win32_unlink
662                             win32_utime
663                             win32_uname
664                             win32_wait
665                             win32_waitpid
666                             win32_kill
667                             win32_str_os_error
668                             win32_opendir
669                             win32_readdir
670                             win32_telldir
671                             win32_seekdir
672                             win32_rewinddir
673                             win32_closedir
674                             win32_longpath
675                             win32_os_id
676                             win32_getpid
677                             win32_crypt
678                             win32_dynaload
679                            ))
680     {
681         try_symbol($symbol);
682     }
683 }
684 elsif ($PLATFORM eq 'os2') {
685     open MAP, 'miniperl.map' or die 'Cannot read miniperl.map';
686     /^\s*[\da-f:]+\s+(\w+)/i and $mapped{$1}++ foreach <MAP>;
687     close MAP or die 'Cannot close miniperl.map';
688
689     @missing = grep { !exists $mapped{$_} and !exists $bincompat5005{$_} }
690                     keys %export;
691     delete $export{$_} foreach @missing;
692 }
693
694 # Now all symbols should be defined because
695 # next we are going to output them.
696
697 foreach my $symbol (sort keys %export) {
698     output_symbol($symbol);
699 }
700
701 sub emit_symbol {
702     my $symbol = shift;
703     chomp($symbol); 
704     $export{$symbol} = 1;
705 }
706
707 sub output_symbol {
708     my $symbol = shift;
709     $symbol = $bincompat5005{$symbol}
710         if $define{PERL_BINCOMPAT_5005} and $symbol =~ /^($bincompat5005)$/;
711     if ($PLATFORM eq 'win32') {
712         $symbol = "_$symbol" if $CCTYPE eq 'BORLAND';
713         print "\t$symbol\n";
714 # XXX: binary compatibility between compilers is an exercise
715 # in frustration :-(
716 #        if ($CCTYPE eq "BORLAND") {
717 #           # workaround Borland quirk by exporting both the straight
718 #           # name and a name with leading underscore.  Note the
719 #           # alias *must* come after the symbol itself, if both
720 #           # are to be exported. (Linker bug?)
721 #           print "\t_$symbol\n";
722 #           print "\t$symbol = _$symbol\n";
723 #       }
724 #       elsif ($CCTYPE eq 'GCC') {
725 #           # Symbols have leading _ whole process is $%@"% slow
726 #           # so skip aliases for now
727 #           nprint "\t$symbol\n";
728 #       }
729 #       else {
730 #           # for binary coexistence, export both the symbol and
731 #           # alias with leading underscore
732 #           print "\t$symbol\n";
733 #           print "\t_$symbol = $symbol\n";
734 #       }
735     }
736     elsif ($PLATFORM eq 'os2') {
737         print qq(    "$symbol"\n);
738     }
739     elsif ($PLATFORM eq 'aix') {
740         print "$symbol\n";
741     }
742 }
743
744 1;
745 __DATA__
746 # extra globals not included above.
747 perl_alloc
748 perl_alloc_using
749 perl_clone
750 perl_clone_using
751 perl_construct
752 perl_destruct
753 perl_free
754 perl_parse
755 perl_run