changeset 1943:72d9e96c1452

(xalloc_fail_func): Use `PARAMS'. (xstrdup): Add protoype.
author Jim Meyering <jim@meyering.net>
date Thu, 02 Sep 1999 21:23:01 +0000
parents bc345b25b5bf
children 966300308c66
files lib/xalloc.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/xalloc.h	Wed Sep 01 13:16:46 1999 +0000
+++ b/lib/xalloc.h	Thu Sep 02 21:23:01 1999 +0000
@@ -32,8 +32,8 @@
 extern int xalloc_exit_failure;
 
 /* If this pointer is non-zero, run the specified function upon each
-   allocation failure.  It is initialized to zero. */
-extern void (*xalloc_fail_func) ();
+   allocation failure.  It is initialized to zero.  */
+extern void (*xalloc_fail_func) PARAMS ((void));
 
 /* If XALLOC_FAIL_FUNC is undefined or a function that returns, this
    message must be non-NULL.  It is translated via gettext.
@@ -43,6 +43,7 @@
 void *xmalloc PARAMS ((size_t n));
 void *xcalloc PARAMS ((size_t n, size_t s));
 void *xrealloc PARAMS ((void *p, size_t n));
+char *xstrdup PARAMS ((const char *str));
 
 # define XMALLOC(Type, N_bytes) ((Type *) xmalloc (sizeof (Type) * (N_bytes)))
 # define XCALLOC(Type, N_bytes) ((Type *) xcalloc (sizeof (Type), (N_bytes)))