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