Skip processing a file if the file to be opened is '-'
[p5sagit/p5-mst-13.2.git] / makedef.pl
index c98d161..40c9be3 100644 (file)
@@ -30,7 +30,11 @@ my %bincompat5005 =
        Perl_safesysmalloc      =>      "Perl_safemalloc",
        Perl_safesysrealloc     =>      "Perl_saferealloc",
        Perl_set_numeric_local  =>      "perl_set_numeric_local",
-       Perl_set_numeric_standard  =>   "perl_set_numeric_standard");
+       Perl_set_numeric_standard  =>   "perl_set_numeric_standard",
+       Perl_malloc             =>      "malloc",
+       Perl_mfree              =>      "free",
+       Perl_realloc            =>      "realloc",
+       Perl_calloc             =>      "calloc",);
 
 my $bincompat5005 = join("|", keys %bincompat5005);
 
@@ -215,6 +219,11 @@ Perl_my_memset
 PL_cshlen
 PL_cshname
 PL_opsave
+
+Perl_do_exec
+Perl_getenv_len
+Perl_my_pclose
+Perl_my_popen
 )];
 } elsif ($PLATFORM eq 'aix') {
     skip_symbols([qw(
@@ -259,6 +268,7 @@ threads_mutex
 nthreads
 nthreads_cond
 os2_cond_wait
+os2_stat
 pthread_join
 pthread_create
 pthread_detach
@@ -353,6 +363,31 @@ Perl_unlock_condpair
 Perl_magic_mutexfree
 )];
  }
+
+unless ($define{'USE_ITHREADS'})
+ {
+  skip_symbols [qw(
+PL_ptr_table
+Perl_dirp_dup
+Perl_cx_dup
+Perl_si_dup
+Perl_ss_dup
+Perl_fp_dup
+Perl_gp_dup
+Perl_he_dup
+Perl_mg_dup
+Perl_re_dup
+Perl_sv_dup
+Perl_sys_intern_dup
+Perl_ptr_table_fetch
+Perl_ptr_table_new
+Perl_ptr_table_split
+Perl_ptr_table_store
+perl_clone
+perl_clone_using
+)];
+ }
+
 unless ($define{'USE_THREADS'} or $define{'PERL_IMPLICIT_CONTEXT'}
        or $define{'PERL_OBJECT'})
 {
@@ -361,6 +396,7 @@ unless ($define{'USE_THREADS'} or $define{'PERL_IMPLICIT_CONTEXT'}
                   Perl_die_nocontext
                   Perl_deb_nocontext
                   Perl_form_nocontext
+                  Perl_mess_nocontext
                   Perl_warn_nocontext
                   Perl_warner_nocontext
                   Perl_newSVpvf_nocontext
@@ -408,7 +444,7 @@ if ($define{'PERL_GLOBAL_STRUCT'})
  {
   my $global = readvar($perlvars_h);
   skip_symbols $global;
-  emit_symbols [qw(Perl_GetVars)];
+  emit_symbol('Perl_GetVars');
   emit_symbols [qw(PL_Vars PL_VarsPtr)] unless $CCTYPE eq 'GCC';
  } 
 
@@ -428,11 +464,6 @@ unless ($define{'DEBUGGING'})
     PL_watchok)];
  }
 
-if ($PLATFORM eq 'win32' && $define{'HAVE_DES_FCRYPT'})
- {
-  emit_symbols [qw(win32_crypt)];
- }
-
 # functions from *.sym files
 
 my @syms = ($global_sym, $pp_sym, $globvar_sym);
@@ -644,6 +675,7 @@ win32_rewinddir
 win32_closedir
 win32_longpath
 win32_os_id
+win32_crypt
                           )) {
        try_symbol($symbol);
     }
@@ -653,7 +685,8 @@ elsif ($PLATFORM eq 'os2') {
   /^\s*[\da-f:]+\s+(\w+)/i and $mapped{$1}++ foreach <MAP>;
   close MAP or die 'Cannot close miniperl.map';
   
-  @missing = grep { !exists $mapped{$_} } keys %export;
+  @missing = grep { !exists $mapped{$_} and !exists $bincompat5005{$_} }
+    keys %export;
   delete $export{$_} foreach @missing;
 }