about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-26 15:39:59 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-26 15:39:59 +0000
commit9c3a54d42ab0512bbeebe0b78e7dd743778a01a5 (patch)
tree15db857ed359ea543cbfd5cfb3376d85c1d82cdf
parentdff14448f7521b27349af4e67d141aba1c9d7edd (diff)
downloadglibc-9c3a54d42ab0512bbeebe0b78e7dd743778a01a5.tar.gz
glibc-9c3a54d42ab0512bbeebe0b78e7dd743778a01a5.tar.xz
glibc-9c3a54d42ab0512bbeebe0b78e7dd743778a01a5.zip
Update.
	* misc/sys/cdefs.h: Define __PMT.  When using modern g++ define
	* misc/search.h: Use __PMT in tsearch, tfind, tdelete, twalk, tdestroy,
-rw-r--r--ChangeLog4
-rw-r--r--misc/search.h24
-rw-r--r--misc/sys/cdefs.h6
-rw-r--r--stdlib/stdlib.h4
4 files changed, 19 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index ab39e4bd3a..dbdf5b680f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,12 +2,12 @@
 
 	* configure.in: Check for -fexceptions.
 	* config.make.in: Define exceptions, not no-exceptions.
-	* misc/sys/cdefs.h: Define __PMS.  When using modern g++ define
+	* misc/sys/cdefs.h: Define __PMT.  When using modern g++ define
 	__P to use throw().
 	* misc/Makefile: Define CFLAGS-tsearch.c and CFLAGS-lsearch.c to
 	$(exceptions).
 	* stdlib/Makefile: Likewise for bsearch.c, msort.c, and qsort.c.
-	* misc/search.h: Use __PMS in tsearch, tfind, tdelete, twalk, tdestroy,
+	* misc/search.h: Use __PMT in tsearch, tfind, tdelete, twalk, tdestroy,
 	lfind, and lsearch prototpypes.
 	* stdlib/stdlib.h: Likewise for bsearch and qsort.
 
diff --git a/misc/search.h b/misc/search.h
index 96b28e3f98..a1ebd24ebd 100644
--- a/misc/search.h
+++ b/misc/search.h
@@ -127,22 +127,22 @@ VISIT;
 
 /* Search for an entry matching the given KEY in the tree pointed to
    by *ROOTP and insert a new element if not found.  */
-extern void *__tsearch __PMS ((__const void *__key, void **__rootp,
+extern void *__tsearch __PMT ((__const void *__key, void **__rootp,
 			       __compar_fn_t compar));
-extern void *tsearch __PMS ((__const void *__key, void **__rootp,
+extern void *tsearch __PMT ((__const void *__key, void **__rootp,
 			     __compar_fn_t compar));
 
 /* Search for an entry matching the given KEY in the tree pointed to
    by *ROOTP.  If no matching entry is available return NULL.  */
-extern void *__tfind __PMS ((__const void *__key, void *__const *__rootp,
+extern void *__tfind __PMT ((__const void *__key, void *__const *__rootp,
 			     __compar_fn_t compar));
-extern void *tfind __PMS ((__const void *__key, void *__const *__rootp,
+extern void *tfind __PMT ((__const void *__key, void *__const *__rootp,
 			   __compar_fn_t compar));
 
 /* Remove the element matching KEY from the tree pointed to by *ROOTP.  */
-extern void *__tdelete __PMS ((__const void *__key, void **__rootp,
+extern void *__tdelete __PMT ((__const void *__key, void **__rootp,
 			       __compar_fn_t compar));
-extern void *tdelete __PMS ((__const void *__key, void **__rootp,
+extern void *tdelete __PMT ((__const void *__key, void **__rootp,
 			     __compar_fn_t compar));
 
 #ifndef __ACTION_FN_T
@@ -154,8 +154,8 @@ typedef void (*__action_fn_t) __P ((__const void *__nodep,
 
 /* Walk through the whole tree and call the ACTION callback for every node
    or leaf.  */
-extern void __twalk __PMS ((__const void *__root, __action_fn_t action));
-extern void twalk __PMS ((__const void *__root, __action_fn_t action));
+extern void __twalk __PMT ((__const void *__root, __action_fn_t action));
+extern void twalk __PMT ((__const void *__root, __action_fn_t action));
 
 #ifdef __USE_GNU
 /* Callback type for function to free a tree node.  If the keys are atomic
@@ -163,20 +163,20 @@ extern void twalk __PMS ((__const void *__root, __action_fn_t action));
 typedef void (*__free_fn_t) __P ((void *__nodep));
 
 /* Destroy the whole tree, call FREEFCT for each node or leaf.  */
-extern void __tdestroy __PMS ((void *__root, __free_fn_t freefct));
-extern void tdestroy __PMS ((void *__root, __free_fn_t freefct));
+extern void __tdestroy __PMT ((void *__root, __free_fn_t freefct));
+extern void tdestroy __PMT ((void *__root, __free_fn_t freefct));
 #endif
 
 
 /* Perform linear search for KEY by comparing by COMPAR in an array
    [BASE,BASE+NMEMB*SIZE).  */
-extern void *lfind __PMS ((__const void *__key, __const void *__base,
+extern void *lfind __PMT ((__const void *__key, __const void *__base,
 			   size_t *__nmemb, size_t __size,
 			   __compar_fn_t __compar));
 
 /* Perform linear search for KEY by comparing by COMPAR function in
    array [BASE,BASE+NMEMB*SIZE) and insert entry if not found.  */
-extern void *lsearch __PMS ((__const void *__key, void *__base,
+extern void *lsearch __PMT ((__const void *__key, void *__base,
 			     size_t *__nmemb, size_t __size,
 			     __compar_fn_t __compar));
 
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 096dc3d6c8..12dfffb431 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -36,7 +36,7 @@
 # endif
 /* This macro will be used for functions which might take C++ callback
    functions.  */
-# define __PMS(args)	args
+# define __PMT(args)	args
 # define __DOTS		, ...
 
 #else	/* Not GCC.  */
@@ -46,7 +46,7 @@
 # if (defined __STDC__ && __STDC__) || defined __cplusplus
 
 #  define __P(args)	args
-#  define __PMS(args)	args
+#  define __PMT(args)	args
 #  define __const	const
 #  define __signed	signed
 #  define __volatile	volatile
@@ -55,7 +55,7 @@
 # else	/* Not ANSI C or C++.  */
 
 #  define __P(args)	()	/* No prototypes.  */
-#  define __PMS(args)	()
+#  define __PMT(args)	()
 #  define __const		/* No ANSI C keywords.  */
 #  define __signed
 #  define __volatile
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 66ea4a589a..b159866538 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -604,13 +604,13 @@ typedef __compar_fn_t comparison_fn_t;
 
 /* Do a binary search for KEY in BASE, which consists of NMEMB elements
    of SIZE bytes each, using COMPAR to perform the comparisons.  */
-extern __ptr_t bsearch __PMS ((__const __ptr_t __key, __const __ptr_t __base,
+extern __ptr_t bsearch __PMT ((__const __ptr_t __key, __const __ptr_t __base,
 			       size_t __nmemb, size_t __size,
 			       __compar_fn_t __compar));
 
 /* Sort NMEMB elements of BASE, of SIZE bytes each,
    using COMPAR to perform the comparisons.  */
-extern void qsort __PMS ((__ptr_t __base, size_t __nmemb, size_t __size,
+extern void qsort __PMT ((__ptr_t __base, size_t __nmemb, size_t __size,
 			  __compar_fn_t __compar));