(NEW): Undefine to avoid warning about redefinition.
authorJim Meyering <jim@meyering.net>
Tue, 9 Nov 1999 20:41:18 +0000 (20:41 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 9 Nov 1999 20:41:18 +0000 (20:41 +0000)
(NEW): Redefine in terms of XMALLOC.

src/expr.c

index d220a9c..96b1823 100644 (file)
 #include <regex.h>
 #include "long-options.h"
 #include "error.h"
+#include "xalloc.h"
 
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "expr"
 
 #define AUTHORS "Mike Parker"
 
-#define NEW(type) ((type *) xmalloc (sizeof (type)))
+#undef NEW
+#define NEW(Type) XMALLOC (Type, 1)
 #define OLD(x) free ((char *) x)
 
 /* The kinds of value we can have.  */