Change 25387 by [EMAIL PROTECTED] on 2005/09/12 13:26:31

        Detection of malloc_size and malloc_good_size

Affected files ...

... //depot/perl/Configure#586 edit
... //depot/perl/Porting/Glossary#155 edit
... //depot/perl/config_h.SH#303 edit
... //depot/perl/handy.h#98 edit

Differences ...

==== //depot/perl/Configure#586 (xtext) ====
Index: perl/Configure
--- perl/Configure#585~25357~   Tue Sep  6 07:10:28 2005
+++ perl/Configure      Mon Sep 12 06:26:31 2005
@@ -26,7 +26,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Tue Sep  6 16:35:32 CEST 2005 [metaconfig 3.0 PL70]
+# Generated on Mon Sep 12 15:44:06 CEST 2005 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by [EMAIL PROTECTED])
 
 cat >c1$$ <<EOF
@@ -550,6 +550,8 @@
 d_lseekproto=''
 d_lstat=''
 d_madvise=''
+d_malloc_good_size=''
+d_malloc_size=''
 d_mblen=''
 d_mbstowcs=''
 d_mbtowc=''
@@ -14247,6 +14249,14 @@
 set madvise d_madvise
 eval $inlibc
 
+: see if malloc_size exists
+set malloc_size d_malloc_size
+eval $inlibc
+
+: see if malloc_size_good exists
+set malloc_good_size d_malloc_good_size
+eval $inlibc
+
 : see if mblen exists
 set mblen d_mblen
 eval $inlibc
@@ -21112,6 +21122,8 @@
 d_lseekproto='$d_lseekproto'
 d_lstat='$d_lstat'
 d_madvise='$d_madvise'
+d_malloc_good_size='$d_malloc_good_size'
+d_malloc_size='$d_malloc_size'
 d_mblen='$d_mblen'
 d_mbstowcs='$d_mbstowcs'
 d_mbtowc='$d_mbtowc'

==== //depot/perl/Porting/Glossary#155 (text) ====
Index: perl/Porting/Glossary
--- perl/Porting/Glossary#154~24898~    Sun Jun 19 08:11:06 2005
+++ perl/Porting/Glossary       Mon Sep 12 06:26:31 2005
@@ -1215,6 +1215,14 @@
        This variable conditionally defines HAS_MADVISE if madvise() is
        available to map a file into memory.
 
+d_malloc_size (d_malloc_size.U):
+       This symbol, if defined, indicates that the malloc_size
+       routine is available for use.
+
+d_malloc_good_size (d_malloc_good_size.U):
+       This symbol, if defined, indicates that the malloc_good_size
+       routine is available for use.
+
 d_mblen (d_mblen.U):
        This variable conditionally defines the HAS_MBLEN symbol, which
        indicates to the C program that the mblen() routine is available

==== //depot/perl/config_h.SH#303 (text) ====
Index: perl/config_h.SH
--- perl/config_h.SH#302~24934~ Tue Jun 21 12:27:38 2005
+++ perl/config_h.SH    Mon Sep 12 06:26:31 2005
@@ -1948,6 +1948,18 @@
  */
 #$d_madvise HAS_MADVISE                /**/
 
+/* HAS_MALLOC_SIZE:
+ *     This symbol, if defined, indicates that the malloc_size
+ *     routine is available for use.
+ */
+#$d_malloc_size HAS_MALLOC_SIZE                /**/
+
+/* HAS_MALLOC_GOOD_SIZE:
+ *     This symbol, if defined, indicates that the malloc_good_size
+ *     routine is available for use.
+ */
+#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE      /**/
+
 /* HAS_MEMCHR:
  *     This symbol, if defined, indicates that the memchr routine is available
  *     to locate characters within a C string.

==== //depot/perl/handy.h#98 (text) ====
Index: perl/handy.h
--- perl/handy.h#97~25231~      Wed Jul 27 23:48:14 2005
+++ perl/handy.h        Mon Sep 12 06:26:31 2005
@@ -175,7 +175,7 @@
 #endif
 
 /* HMB H.Merijn Brand - a placeholder for preparing Configure patches */
-#if defined(LIBM_LIB_VERSION)
+#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE)
 /* Not (yet) used at top level, but mention them for metaconfig */
 #endif
 
End of Patch.

Reply via email to