This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Using memEQ() rather than strnEQ() when the length is known feels
[perl5.git] / makedef.pl
index b16a0aa..a559061 100644 (file)
@@ -159,11 +159,11 @@ my $sym_ord = 0;
 print STDERR "Defines: (" . join(' ', sort keys %define) . ")\n";
 
 if ($PLATFORM =~ /^win(?:32|ce)$/) {
-    (my $dll = ($define{PERL_DLL} || "perl59")) =~ s/\.dll$//i;
+    (my $dll = ($define{PERL_DLL} || "perl511")) =~ s/\.dll$//i;
     print "LIBRARY $dll\n";
     # The DESCRIPTION module definition file statement is not supported
     # by VC7 onwards.
-    if ($CCTYPE !~ /^MSVC7/ && $CCTYPE !~ /^MSVC8/) {
+    if ($CCTYPE !~ /^MSVC7/ && $CCTYPE !~ /^MSVC8/ && $CCTYPE !~ /^MSVC9/) {
        print "DESCRIPTION 'Perl interpreter'\n";
     }
     print "EXPORTS\n";
@@ -215,7 +215,7 @@ elsif ($PLATFORM eq 'aix') {
 }
 elsif ($PLATFORM eq 'netware') {
        if ($FILETYPE eq 'def') {
-       print "LIBRARY perl59\n";
+       print "LIBRARY perl511\n";
        print "DESCRIPTION 'Perl interpreter for NetWare'\n";
        print "EXPORTS\n";
        }
@@ -667,6 +667,7 @@ else {
                    Perl_dump_mstats
                    Perl_get_mstats
                    Perl_malloced_size
+                   Perl_malloc_good_size
                    MallocCfg_ptr
                    MallocCfgP_ptr
                    )];
@@ -734,7 +735,7 @@ unless ($define{'USE_ITHREADS'}) {
                    Perl_he_dup
                    Perl_mg_dup
                    Perl_mro_meta_dup
-                   Perl_re_dup
+                   Perl_re_dup_guts
                    Perl_sv_dup
                    Perl_rvpv_dup
                    Perl_hek_dup
@@ -891,6 +892,19 @@ if ($define{'PERL_MAD'}) {
                    )];
 }
 
+unless ($define{'MULTIPLICITY'}) {
+    skip_symbols [qw(
+                   PL_interp_size
+                   PL_interp_size_5_10_0
+                   )];
+}
+
+unless ($define{'PERL_GLOBAL_STRUCT'}) {
+    skip_symbols [qw(
+                   PL_global_struct_size
+                   )];
+}
+
 unless ($define{'PERL_GLOBAL_STRUCT_PRIVATE'}) {
     skip_symbols [qw(
                    PL_my_cxt_keys