This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: Smoke [5.11.0] 33456 PASS darwin 9.2.0 (macppcG5/1 cpu)
authorDominic Dunlop <domo@computer.org>
Tue, 11 Mar 2008 21:54:04 +0000 (22:54 +0100)
committerNicholas Clark <nick@ccl4.org>
Sat, 29 Mar 2008 11:21:46 +0000 (11:21 +0000)
Message-Id: <3B7752C8-D5A2-452C-B3E0-C453FFCBCAFA@mac.com>

[but rename ******* to i_mallocmalloc.U, and then fix up all the files
that Porting/checkcfgvar.pl says need i_mallocmalloc declared]

p4raw-id: //depot/perl@33598

17 files changed:
Configure
Cross/config.sh-arm-linux
NetWare/config.wc
Porting/Glossary
Porting/config.sh
config_h.SH
configure.com
epoc/config.sh
perl.h
plan9/config_sh.sample
symbian/config.sh
uconfig.sh
win32/config.bc
win32/config.ce
win32/config.gc
win32/config.vc
win32/config.vc64

index ef8e960..5bc904a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -869,6 +869,7 @@ i_limits=''
 i_locale=''
 i_machcthr=''
 i_malloc=''
 i_locale=''
 i_machcthr=''
 i_malloc=''
+i_mallocmalloc=''
 i_math=''
 i_memory=''
 i_mntent=''
 i_math=''
 i_memory=''
 i_mntent=''
@@ -6550,6 +6551,10 @@ case "$inc_version_list" in
 esac
 $rm -f getverlist
 
 esac
 $rm -f getverlist
 
+: see if malloc/malloc.h has to be included
+set malloc/malloc.h i_mallocmalloc
+eval $inhdr
+
 : see if this is a malloc.h system
 : we want a real compile instead of Inhdr because some systems have a
 : malloc.h that just gives a compile error saying to use stdlib.h instead
 : see if this is a malloc.h system
 : we want a real compile instead of Inhdr because some systems have a
 : malloc.h that just gives a compile error saying to use stdlib.h instead
@@ -6557,6 +6562,11 @@ echo " "
 $cat >try.c <<EOCP
 #include <stdlib.h>
 #include <malloc.h>
 $cat >try.c <<EOCP
 #include <stdlib.h>
 #include <malloc.h>
+$i_mallocmalloc I_MALLOCMALLOC
+#ifdef I_MALLOCMALLOC
+# include <malloc/malloc.h>
+#endif
+
 int main () { return 0; }
 EOCP
 set try
 int main () { return 0; }
 EOCP
 set try
@@ -22353,6 +22363,7 @@ i_limits='$i_limits'
 i_locale='$i_locale'
 i_machcthr='$i_machcthr'
 i_malloc='$i_malloc'
 i_locale='$i_locale'
 i_machcthr='$i_machcthr'
 i_malloc='$i_malloc'
+i_mallocmalloc='$i_mallocmalloc'
 i_math='$i_math'
 i_memory='$i_memory'
 i_mntent='$i_mntent'
 i_math='$i_math'
 i_memory='$i_memory'
 i_mntent='$i_mntent'
index a790f3e..bb403c0 100644 (file)
@@ -634,6 +634,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='define'
 i_math='define'
 i_memory='undef'
 i_mntent='define'
index 5be669c..f7f723b 100644 (file)
@@ -617,6 +617,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index b6b9947..0b82f91 100644 (file)
@@ -2923,6 +2923,10 @@ i_malloc (i_malloc.U):
        This variable conditionally defines the I_MALLOC symbol, and indicates
        whether a C program should include <malloc.h>.
 
        This variable conditionally defines the I_MALLOC symbol, and indicates
        whether a C program should include <malloc.h>.
 
+i_mallocmalloc (i_mallocmalloc.U):
+       This variable conditionally defines the I_MALLOCMALLOC symbol,
+       and indicates whether a C program should include <malloc/malloc.h>.
+
 i_math (i_math.U):
        This variable conditionally defines the I_MATH symbol, and indicates
        whether a C program may include <math.h>.
 i_math (i_math.U):
        This variable conditionally defines the I_MATH symbol, and indicates
        whether a C program may include <math.h>.
index f6b162f..826b03e 100644 (file)
@@ -647,6 +647,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='define'
 i_math='define'
 i_memory='undef'
 i_mntent='define'
index 05b464b..2543cb5 100644 (file)
@@ -689,6 +689,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$i_locale     I_LOCALE                /**/
 
  */
 #$i_locale     I_LOCALE                /**/
 
+/* I_MALLOCMALLOC:
+ *     This symbol, if defined, indicates to the C program that it should
+ *     include <malloc/malloc.h>.
+ */
+#$i_mallocmalloc       I_MALLOCMALLOC          /**/
+
 /* I_MATH:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <math.h>.
 /* I_MATH:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <math.h>.
index 5adb348..09a71d6 100644 (file)
@@ -6241,6 +6241,7 @@ $ WC "i_limits='define'"
 $ WC "i_locale='" + i_locale + "'"
 $ WC "i_machcthr='undef'"
 $ WC "i_machcthreads='undef'"
 $ WC "i_locale='" + i_locale + "'"
 $ WC "i_machcthr='undef'"
 $ WC "i_machcthreads='undef'"
+$ WC "i_mallocmalloc='undef'"
 $ WC "i_math='define'"
 $ WC "i_memory='undef'"
 $ WC "i_mntent='undef'"
 $ WC "i_math='define'"
 $ WC "i_memory='undef'"
 $ WC "i_mntent='undef'"
index 5a34e9a..0f93e84 100644 (file)
@@ -580,6 +580,7 @@ i_limits='define'
 i_locale='undef'
 i_machcthr='undef'
 i_malloc='undef'
 i_locale='undef'
 i_machcthr='undef'
 i_malloc='undef'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
diff --git a/perl.h b/perl.h
index 87ad969..b69baca 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -4073,6 +4073,11 @@ struct perl_memory_debug_header {
 #  define INIT_TRACK_MEMPOOL(header, interp)
 #endif
 
 #  define INIT_TRACK_MEMPOOL(header, interp)
 #endif
 
+#ifdef I_MALLOCMALLOC
+/* Needed for malloc_size(), malloc_good_size() on some systems */
+#  include <malloc/malloc.h>
+#endif
+
 #ifdef MYMALLOC
 #  define Perl_safesysmalloc_size(where)       Perl_malloced_size(where)
 #else
 #ifdef MYMALLOC
 #  define Perl_safesysmalloc_size(where)       Perl_malloced_size(where)
 #else
index f6675c1..dccbb5c 100644 (file)
@@ -628,6 +628,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='undef'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='undef'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index 39dfab2..5c7d77f 100644 (file)
@@ -555,6 +555,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='undef'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='undef'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index 900cd33..1be1175 100755 (executable)
@@ -542,6 +542,7 @@ i_limits='undef'
 i_locale='undef'
 i_machcthr='undef'
 i_malloc='undef'
 i_locale='undef'
 i_machcthr='undef'
 i_malloc='undef'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index b5b8d3f..c558db3 100644 (file)
@@ -622,6 +622,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index 099ba7a..a06c3dd 100644 (file)
@@ -615,6 +615,7 @@ i_limits='define'
 i_locale='undef'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='undef'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index 6ecbc00..858a274 100644 (file)
@@ -622,6 +622,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index bbd7489..5786dfd 100644 (file)
@@ -622,6 +622,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
index 797627a..3b44f28 100644 (file)
@@ -622,6 +622,7 @@ i_limits='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
 i_locale='define'
 i_machcthr='undef'
 i_malloc='define'
+i_mallocmalloc='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'
 i_math='define'
 i_memory='undef'
 i_mntent='undef'