3 # Create the export list for perl.
5 # Needed by WIN32 and OS/2 for creating perl.dll,
6 # and by AIX for creating libperl.a when -Duseshrplib is in effect,
7 # and by VMS for creating perlshr.exe.
9 # Reads from information stored in
11 # %Config::Config (ie config.sh)
16 # miniperl.map (on OS/2)
17 # perl5.def (on OS/2; this is the old version of the file being made)
22 # plus long lists of function names hard-coded directly in this script.
24 # Writes the result to STDOUT.
26 # Normally this script is invoked from a makefile (e.g. win32/Makefile),
27 # which redirects STDOUT to a suitable file, such as:
40 BEGIN { unshift @INC, "lib" }
44 %ARGS = (CCTYPE => 'MSVC', TARG_DIR => '');
46 sub process_cc_flags {
47 foreach (map {split /\s+/, $_} @_) {
48 $define{$1} = $2 // 1 if /^-D(\w+)(?:=(.+))?/;
54 if ($flag =~ /^(?:CC_FLAGS=)?(-D\w.*)/) {
56 } elsif ($flag =~ /^(CCTYPE|FILETYPE|PLATFORM|TARG_DIR)=(.+)$/) {
58 } elsif ($flag eq '--sort-fold') {
62 my @PLATFORM = qw(aix win32 wince os2 netware vms test);
64 @PLATFORM{@PLATFORM} = ();
66 die "PLATFORM undefined, must be one of: @PLATFORM\n"
67 unless defined $ARGS{PLATFORM};
68 die "PLATFORM must be one of: @PLATFORM\n"
69 unless exists $PLATFORM{$ARGS{PLATFORM}};
71 use constant PLATFORM => $ARGS{PLATFORM};
73 require "./$ARGS{TARG_DIR}regen/embed_lib.pl";
75 # Is the following guard strictly necessary? Added during refactoring
76 # to keep the same behaviour when merging other code into here.
77 process_cc_flags(@Config{qw(ccflags optimize)})
78 if $ARGS{PLATFORM} ne 'win32' && $ARGS{PLATFORM} ne 'wince'
79 && $ARGS{PLATFORM} ne 'netware';
81 # Add the compile-time options that miniperl was built with to %define.
82 # On Win32 these are not the same options as perl itself will be built
83 # with since miniperl is built with a canned config (one of the win32/
84 # config_H.*) and none of the BUILDOPT's that are set in the makefiles,
85 # but they do include some #define's that are hard-coded in various
86 # source files and header files and don't include any BUILDOPT's that
87 # the user might have chosen to disable because the canned configs are
88 # minimal configs that don't include any of those options.
90 #don't use the host Perl's -V defines for the WinCE Perl
91 if($ARGS{PLATFORM} ne 'wince') {
92 my @options = sort(Config::bincompat_options(), Config::non_bincompat_options());
93 print STDERR "Options: (@options)\n" unless $ARGS{PLATFORM} eq 'test';
94 $define{$_} = 1 foreach @options;
97 my %exportperlmalloc =
99 Perl_malloc => "malloc",
100 Perl_mfree => "free",
101 Perl_realloc => "realloc",
102 Perl_calloc => "calloc",
105 my $exportperlmalloc = $ARGS{PLATFORM} eq 'os2';
107 my $config_h = 'config.h';
108 open(CFG, '<', $config_h) || die "Cannot open $config_h: $!\n";
110 $define{$1} = 1 if /^\s*\#\s*define\s+(MYMALLOC|MULTIPLICITY
112 |(?:PERL|USE|HAS)_\w+)\b/x;
116 # perl.h logic duplication begins
118 if ($define{USE_ITHREADS}) {
119 if (!$define{MULTIPLICITY}) {
120 $define{MULTIPLICITY} = 1;
124 $define{PERL_IMPLICIT_CONTEXT} ||=
125 $define{USE_ITHREADS} ||
126 $define{MULTIPLICITY} ;
128 if ($define{USE_ITHREADS} && $ARGS{PLATFORM} ne 'win32' && $ARGS{PLATFORM} ne 'netware') {
129 $define{USE_REENTRANT_API} = 1;
132 if (! $define{NO_LOCALE}) {
133 if ( ! $define{NO_POSIX_2008_LOCALE}
134 && $define{HAS_NEWLOCALE}
135 && $define{HAS_USELOCALE}
136 && $define{HAS_DUPLOCALE}
137 && $define{HAS_FREELOCALE})
139 $define{HAS_POSIX_2008_LOCALE} = 1;
140 $define{USE_LOCALE} = 1;
142 elsif ($define{HAS_SETLOCALE}) {
143 $define{USE_LOCALE} = 1;
147 my $cctype = $ARGS{CCTYPE} =~ s/MSVC//r;
148 if (! $define{HAS_SETLOCALE} && $define{HAS_POSIX_2008_LOCALE}) {
149 $define{USE_POSIX_2008_LOCALE} = 1;
150 $define{USE_THREAD_SAFE_LOCALE} = 1;
152 elsif ( ($define{USE_ITHREADS} || $define{USE_THREAD_SAFE_LOCALE})
153 && ( $define{HAS_POSIX_2008_LOCALE}
154 || ($ARGS{PLATFORM} eq 'win32' && ( $cctype !~ /\D/
156 && ! $define{NO_THREAD_SAFE_LOCALE})
158 $define{USE_THREAD_SAFE_LOCALE} = 1 unless $define{USE_THREAD_SAFE_LOCALE};
159 $define{USE_POSIX_2008_LOCALE} = 1 if $define{HAS_POSIX_2008_LOCALE};
162 if ( $ARGS{PLATFORM} eq 'win32'
163 && $define{USE_THREAD_SAFE_LOCALE}
166 $define{TS_W32_BROKEN_LOCALECONV} = 1;
169 # perl.h logic duplication ends
171 print STDERR "Defines: (" . join(' ', sort keys %define) . ")\n"
172 unless $ARGS{PLATFORM} eq 'test';
177 if ($ARGS{PLATFORM} eq 'os2') {
178 if (open my $fh, '<', 'perl5.def') {
180 last if /^\s*EXPORTS\b/;
183 $ordinal{$1} = $2 if /^\s*"(\w+)"\s*(?:=\s*"\w+"\s*)?\@(\d+)\s*$/;
184 # This allows skipping ordinals which were used in older versions
185 $sym_ord = $1 if /^\s*;\s*LAST_ORDINAL\s*=\s*(\d+)\s*$/;
187 $sym_ord < $_ and $sym_ord = $_ for values %ordinal; # Take the max
192 # All platforms export boot_DynaLoader unconditionally.
193 my %export = ( boot_DynaLoader => 1 );
196 foreach my $symbol (@_) {
197 ++$export{$symbol} unless exists $skip{$symbol};
202 # $hash is the hash that we're adding to. For one of our callers, it will
203 # actually be the skip hash but that doesn't affect the intent of what
204 # we're doing, as in that case we skip adding something to the skip hash
205 # for the second time.
207 my $file = $ARGS{TARG_DIR} . shift;
210 open my $vars, '<', $file or die die "Cannot open $file: $!\n";
213 # All symbols have a Perl_ prefix because that's what embed.h sticks
214 # in front of them. The A?I?S?C? is strictly speaking wrong.
215 next unless /\bPERLVAR(A?I?S?C?)\(([IGT]),\s*(\w+)/;
218 my $symbol = $proc ? &$proc($1,$2,$3) : $var;
219 ++$hash->{$symbol} unless exists $skip{$var};
223 if ($ARGS{PLATFORM} ne 'os2') {
224 ++$skip{$_} foreach qw(
238 if ($ARGS{PLATFORM} eq 'vms') {
239 ++$skip{PL_statusvalue_posix};
240 # This is a wrapper if we have symlink, not a replacement
242 ++$skip{Perl_my_symlink} unless $Config{d_symlink};
244 ++$skip{PL_statusvalue_vms};
245 ++$skip{PL_perllib_sep};
246 if ($ARGS{PLATFORM} ne 'aix') {
247 ++$skip{$_} foreach qw(
258 if ($ARGS{PLATFORM} ne 'vms') {
259 # VMS does its own thing for these symbols.
260 ++$skip{$_} foreach qw(
261 PL_sig_handlers_initted
265 if ($ARGS{PLATFORM} ne 'win32') {
266 ++$skip{$_} foreach qw(
274 if ($ARGS{PLATFORM} ne 'win32') {
275 ++$skip{$_} foreach qw(
280 unless ($define{UNLINK_ALL_VERSIONS}) {
284 unless ($define{'DEBUGGING'}) {
285 ++$skip{$_} foreach qw(
292 Perl__setlocale_debug_string
300 if ($define{'PERL_IMPLICIT_SYS'}) {
301 ++$skip{$_} foreach qw(
305 ++$export{$_} foreach qw(perl_get_host_info perl_alloc_override);
306 ++$export{perl_clone_host} if $define{USE_ITHREADS};
309 ++$skip{$_} foreach qw(
324 if (!$define{'PERL_COPY_ON_WRITE'} || $define{'PERL_NO_COW'}) {
325 ++$skip{Perl_sv_setsv_cow};
328 unless ($define{PERL_SAWAMPERSAND}) {
329 ++$skip{PL_sawampersand};
332 unless ($define{'USE_REENTRANT_API'}) {
333 ++$skip{PL_reentrant_buffer};
336 if ($define{'MYMALLOC'}) {
345 unless ($define{USE_ITHREADS}) {
346 ++$skip{PL_malloc_mutex}
350 ++$skip{$_} foreach qw(
359 if ($define{'PERL_USE_SAFE_PUTENV'}) {
360 ++$skip{PL_use_safe_putenv};
363 unless ($define{'USE_ITHREADS'}) {
365 ++$skip{PL_user_prop_mutex};
366 ++$skip{PL_user_def_props_aTHX};
369 # USE_5005THREADS symbols. Kept as reference for easier removal
370 ++$skip{$_} foreach qw(
388 Perl_new_struct_thread
389 Perl_per_thread_magicals
397 unless ($define{'USE_ITHREADS'}) {
398 ++$skip{$_} foreach qw(
399 PL_keyword_plugin_mutex
408 PL_lc_numeric_mutex_depth
416 Perl_clone_params_del
417 Perl_clone_params_new
436 Perl_stashpv_hvname_match
437 Perl_regdupe_internal
442 if ( $define{NO_LOCALE}
443 || (! $define{USE_ITHREADS} && ! $define{USE_THREAD_SAFE_LOCALE}))
445 ++$skip{$_} foreach qw(
451 unless ( $define{'HAS_NEWLOCALE'}
452 && $define{'HAS_FREELOCALE'}
453 && $define{'HAS_USELOCALE'}
454 && ! $define{'NO_POSIX_2008_LOCALE'})
456 ++$skip{$_} foreach qw(
458 PL_underlying_numeric_obj
462 unless ($define{'PERL_IMPLICIT_CONTEXT'}) {
463 ++$skip{$_} foreach qw(
473 Perl_load_module_nocontext
476 Perl_warner_nocontext
477 Perl_newSVpvf_nocontext
478 Perl_sv_catpvf_nocontext
479 Perl_sv_setpvf_nocontext
480 Perl_sv_catpvf_mg_nocontext
481 Perl_sv_setpvf_mg_nocontext
487 if ($define{USE_THREAD_SAFE_LOCALE}) {
488 ++$skip{PL_lc_numeric_mutex};
489 ++$skip{PL_lc_numeric_mutex_depth};
490 if (! $define{TS_W32_BROKEN_LOCALECONV}) {
491 ++$skip{PL_locale_mutex};
495 unless ($define{'USE_DTRACE'}) {
496 ++$skip{$_} foreach qw(
497 Perl_dtrace_probe_call
498 Perl_dtrace_probe_load
500 Perl_dtrace_probe_phase
504 unless ($define{'PERL_NEED_APPCTX'}) {
508 unless ($define{'PERL_NEED_TIMESBASE'}) {
509 ++$skip{PL_timesbase};
512 unless ($define{'DEBUG_LEAKING_SCALARS'}) {
513 ++$skip{PL_sv_serial};
516 unless ($define{'DEBUG_LEAKING_SCALARS_FORK_DUMP'}) {
517 ++$skip{PL_dumper_fd};
520 unless ($define{'PERL_DONT_CREATE_GVSV'}) {
521 ++$skip{Perl_gv_SVadd};
524 unless ($define{'PERL_USES_PL_PIDSTATUS'}) {
525 ++$skip{PL_pidstatus};
528 unless ($define{'PERL_TRACK_MEMPOOL'}) {
529 ++$skip{PL_memory_debug_header};
532 unless ($define{'MULTIPLICITY'}) {
533 ++$skip{$_} foreach qw(
535 PL_interp_size_5_18_0
543 unless ($define{'PERL_GLOBAL_STRUCT'}) {
544 ++$skip{PL_global_struct_size};
547 unless ($define{'PERL_GLOBAL_STRUCT_PRIVATE'}) {
548 ++$skip{$_} foreach qw(
555 unless ($define{HAS_MMAP}) {
556 ++$skip{PL_mmap_page_size};
559 if ($define{HAS_SIGACTION}) {
560 ++$skip{PL_sig_trapped};
562 if ($ARGS{PLATFORM} eq 'vms') {
563 # FAKE_PERSISTENT_SIGNAL_HANDLERS defined as !defined(HAS_SIGACTION)
564 ++$skip{PL_sig_ignoring};
565 ++$skip{PL_sig_handlers_initted} unless $define{KILL_BY_SIGPRC};
569 if ($ARGS{PLATFORM} eq 'vms' && !$define{KILL_BY_SIGPRC}) {
570 # FAKE_DEFAULT_SIGNAL_HANDLERS defined as KILL_BY_SIGPRC
571 ++$skip{Perl_csighandler_init};
572 ++$skip{Perl_my_kill};
573 ++$skip{Perl_sig_to_vmscondition};
574 ++$skip{PL_sig_defaulting};
575 ++$skip{PL_sig_handlers_initted} unless !$define{HAS_SIGACTION};
578 if ($define{'HAS_STRNLEN'})
580 ++$skip{Perl_my_strnlen};
583 unless ($define{USE_LOCALE_COLLATE}) {
584 ++$skip{$_} foreach qw(
587 PL_collation_standard
591 Perl_sv_collxfrm_flags
592 PL_strxfrm_NUL_replacement
593 PL_strxfrm_is_behaved
598 unless ($define{USE_LOCALE_NUMERIC}) {
599 ++$skip{$_} foreach qw(
604 PL_numeric_underlying
605 PL_numeric_underlying_is_standard
606 PL_underlying_numeric_obj
610 unless ($define{'USE_C_BACKTRACE'}) {
611 ++$skip{Perl_get_c_backtrace_dump};
612 ++$skip{Perl_dump_c_backtrace};
615 unless ($define{HAVE_INTERP_INTERN}) {
616 ++$skip{$_} foreach qw(
617 Perl_sys_intern_clear
624 if ($define{HAS_SIGNBIT}) {
625 ++$skip{Perl_signbit};
628 if ($define{'PERL_GLOBAL_STRUCT'}) {
629 readvar('perlvars.h', \%skip);
630 # This seems like the least ugly way to cope with the fact that PL_sh_path
631 # is mentioned in perlvar.h and globvar.sym, and always exported.
632 delete $skip{PL_sh_path};
633 ++$export{Perl_GetVars};
634 try_symbols(qw(PL_Vars PL_VarsPtr))
635 unless $ARGS{CCTYPE} eq 'GCC' || $define{PERL_GLOBAL_STRUCT_PRIVATE};
637 ++$skip{$_} foreach qw(Perl_init_global_struct Perl_free_global_struct);
640 ++$skip{PL_op_exec_cnt}
641 unless $define{PERL_TRACE_OPS};
643 ++$skip{PL_hash_chars}
644 unless $define{PERL_USE_SINGLE_CHAR_HASH_CACHE};
646 # functions from *.sym files
648 my @syms = qw(globvar.sym);
650 # Symbols that are the public face of the PerlIO layers implementation
651 # These are in _addition to_ the public face of the abstraction
652 # and need to be exported to allow XS modules to implement layers
667 PerlIOBase_setlinebuf
706 Perl_PerlIO_context_layers
713 Perl_PerlIO_get_bufsiz
717 Perl_PerlIO_restore_errno
718 Perl_PerlIO_save_errno
721 Perl_PerlIO_set_ptrcnt
722 Perl_PerlIO_setlinebuf
730 if ($ARGS{PLATFORM} eq 'netware') {
731 push(@layer_syms,'PL_def_layerlist','PL_known_layers','PL_perlio');
734 # Export the symbols that make up the PerlIO abstraction, regardless
735 # of its implementation - read from a file
736 push @syms, 'perlio.sym';
738 # PerlIO with layers - export implementation
739 try_symbols(@layer_syms, 'perlsio_binmode');
742 unless ($define{'USE_QUADMATH'}) {
743 ++$skip{Perl_quadmath_format_needed};
744 ++$skip{Perl_quadmath_format_single};
747 ###############################################################################
749 # At this point all skip lists should be completed, as we are about to test
750 # many symbols against them.
754 my ($embed) = setup_embed($ARGS{TARG_DIR});
755 my $excludedre = $define{'NO_MATHOMS'} ? qr/[xmib]/ : qr/[xmi]/;
758 my ($flags, $retval, $func, @args) = @$_;
760 if (($flags =~ /[AX]/ && $flags !~ $excludedre)
761 || (!$define{'NO_MATHOMS'} && $flags =~ /b/))
763 # public API, so export
765 # If a function is defined twice, for example before and after
766 # an #else, only export its name once. Important to do this test
767 # within the block, as the *first* definition may have flags which
768 # mean "don't export"
769 next if $seen{$func}++;
770 # Should we also skip adding the Perl_ prefix if $flags =~ /o/ ?
771 $func = "Perl_$func" if ($flags =~ /[pX]/ && $func !~ /^Perl_/);
772 ++$export{$func} unless exists $skip{$func};
778 my $syms = $ARGS{TARG_DIR} . $_;
779 open my $global, '<', $syms or die "failed to open $syms: $!\n";
781 next unless /^([A-Za-z].*)/;
783 ++$export{$symbol} unless exists $skip{$symbol};
789 if ($define{'MULTIPLICITY'} && $define{PERL_GLOBAL_STRUCT}) {
790 readvar('perlvars.h', \%export, sub { "Perl_" . $_[1] . $_[2] . "_ptr" });
791 # XXX AIX seems to want the perlvars.h symbols, for some reason
792 if ($ARGS{PLATFORM} eq 'aix' or $ARGS{PLATFORM} eq 'os2') { # OS/2 needs PL_thr_key
793 readvar('perlvars.h', \%export);
797 unless ($define{'PERL_GLOBAL_STRUCT'}) {
798 readvar('perlvars.h', \%export);
800 unless ($define{MULTIPLICITY}) {
801 readvar('intrpvar.h', \%export);
805 # Oddities from PerlIO
806 # All have alternate implementations in perlio.c, so always exist.
807 # Should they be considered to be part of the API?
816 if ($ARGS{PLATFORM} eq 'win32') {
826 if ($ARGS{PLATFORM} eq 'wince') {
827 ++$skip{'win32_isatty'}; # commit 4342f4d6df is win32-only
830 if ($ARGS{PLATFORM} =~ /^win(?:32|ce)$/) {
891 win32_getprotobynumber
988 elsif ($ARGS{PLATFORM} eq 'vms') {
993 Perl_csighandler_init
996 Perl_fileify_dirspec_ts
997 Perl_fileify_dirspec_utf8
998 Perl_fileify_dirspec_utf8_ts
1030 Perl_pathify_dirspec
1031 Perl_pathify_dirspec_ts
1032 Perl_pathify_dirspec_utf8
1033 Perl_pathify_dirspec_utf8_ts
1041 Perl_rmsexpand_utf8_ts
1043 Perl_sig_to_vmscondition
1047 Perl_tounixpath_utf8
1048 Perl_tounixpath_utf8_ts
1051 Perl_tounixspec_utf8
1052 Perl_tounixspec_utf8_ts
1056 Perl_tovmspath_utf8_ts
1060 Perl_tovmsspec_utf8_ts
1062 Perl_vms_case_tolerant
1073 elsif ($ARGS{PLATFORM} eq 'os2') {
1116 XS_Cwd_current_drive
1118 XS_Cwd_extLibpath_set
1122 XS_Cwd_sys_is_absolute
1123 XS_Cwd_sys_is_relative
1124 XS_Cwd_sys_is_rooted
1125 XS_DynaLoader_mod2fname
1126 XS_File__Copy_syscopy
1130 Perl_Process_Messages
1142 elsif ($ARGS{PLATFORM} eq 'netware') {
1269 fnInsertHashListAddrs
1281 # When added this code was only run for Win32 and WinCE
1282 # Currently only Win32 links static extensions into the shared library.
1283 # The WinCE makefile doesn't appear to support static extensions, so this code
1284 # can't have any effect there.
1285 # The NetWare Makefile doesn't support static extensions (and hardcodes the
1286 # list of dynamic extensions, and the rules to build them)
1287 # For *nix (and presumably OS/2) with a shared libperl, Makefile.SH compiles
1288 # static extensions with -fPIC, but links them to perl, not libperl.so
1289 # The VMS build scripts don't yet implement static extensions at all.
1291 if ($ARGS{PLATFORM} =~ /^win(?:32|ce)$/) {
1292 # records of type boot_module for statically linked modules (except Dynaloader)
1293 my $static_ext = $Config{static_ext} // "";
1294 $static_ext =~ s/\//__/g;
1295 $static_ext =~ s/\bDynaLoader\b//;
1296 try_symbols(map {"boot_$_"} grep {/\S/} split /\s+/, $static_ext);
1297 try_symbols("init_Win32CORE") if $static_ext =~ /\bWin32CORE\b/;
1300 if ($ARGS{PLATFORM} eq 'os2') {
1301 my (%mapped, @missing);
1302 open MAP, '<', 'miniperl.map' or die 'Cannot read miniperl.map';
1303 /^\s*[\da-f:]+\s+(\w+)/i and $mapped{$1}++ foreach <MAP>;
1304 close MAP or die 'Cannot close miniperl.map';
1306 @missing = grep { !exists $mapped{$_} }
1308 @missing = grep { !exists $exportperlmalloc{$_} } @missing;
1309 delete $export{$_} foreach @missing;
1312 ###############################################################################
1314 # Now all symbols should be defined because next we are going to output them.
1316 # Start with platform specific headers:
1318 if ($ARGS{PLATFORM} =~ /^win(?:32|ce)$/) {
1319 my $dll = $define{PERL_DLL} ? $define{PERL_DLL} =~ s/\.dll$//ir
1320 : "perl$Config{api_revision}$Config{api_version}";
1321 print "LIBRARY $dll\n";
1322 # The DESCRIPTION module definition file statement is not supported
1324 if ($ARGS{CCTYPE} =~ /^(?:MSVC60|GCC)$/) {
1325 print "DESCRIPTION 'Perl interpreter'\n";
1329 elsif ($ARGS{PLATFORM} eq 'os2') {
1330 (my $v = $]) =~ s/(\d\.\d\d\d)(\d\d)$/$1_$2/;
1331 $v .= '-thread' if $Config{archname} =~ /-thread/;
1332 (my $dll = $define{PERL_DLL}) =~ s/\.dll$//i;
1333 $v .= "\@$Config{perl_patchlevel}" if $Config{perl_patchlevel};
1334 my $d = "DESCRIPTION '\@#perl5-porters\@perl.org:$v#\@ Perl interpreter, configured as $Config{config_args}'";
1335 $d = substr($d, 0, 249) . "...'" if length $d > 253;
1336 print <<"---EOP---";
1337 LIBRARY '$dll' INITINSTANCE TERMINSTANCE
1341 DATA LOADONCALL NONSHARED MULTIPLE
1345 elsif ($ARGS{PLATFORM} eq 'aix') {
1346 my $OSVER = `uname -v`;
1348 my $OSREL = `uname -r`;
1350 if ($OSVER > 4 || ($OSVER == 4 && $OSREL >= 3)) {
1356 elsif ($ARGS{PLATFORM} eq 'netware') {
1357 if ($ARGS{FILETYPE} eq 'def') {
1358 print "LIBRARY perl$Config{api_revision}$Config{api_version}\n";
1359 print "DESCRIPTION 'Perl interpreter for NetWare'\n";
1366 my @symbols = $fold ? sort {lc $a cmp lc $b} keys %export : sort keys %export;
1367 foreach my $symbol (@symbols) {
1368 if (PLATFORM eq 'win32' || PLATFORM eq 'wince') {
1369 # Remembering the origin file of each symbol is an alternative to PL_ matching
1370 if (substr($symbol, 0, 3) eq 'PL_') {
1371 print "\t$symbol DATA\n";
1374 print "\t$symbol\n";
1377 elsif (PLATFORM eq 'os2') {
1378 printf qq( %-31s \@%s\n),
1379 qq("$symbol"), $ordinal{$symbol} || ++$sym_ord;
1380 printf qq( %-31s \@%s\n),
1381 qq("$exportperlmalloc{$symbol}" = "$symbol"),
1382 $ordinal{$exportperlmalloc{$symbol}} || ++$sym_ord
1383 if $exportperlmalloc and exists $exportperlmalloc{$symbol};
1385 elsif (PLATFORM eq 'netware') {
1386 print "\t$symbol,\n";
1392 # Then platform specific footers.
1394 if ($ARGS{PLATFORM} eq 'os2') {
1399 Perl_OS2_handler_install
1401 ; LAST_ORDINAL=$sym_ord