From 59339ab7e502fd9deae65bb2943a374de8b3a7d0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 9 Nov 1999 20:41:18 +0000 Subject: [PATCH] (NEW): Undefine to avoid warning about redefinition. (NEW): Redefine in terms of XMALLOC. --- src/expr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/expr.c b/src/expr.c index d220a9c20..96b182326 100644 --- a/src/expr.c +++ b/src/expr.c @@ -36,13 +36,15 @@ #include #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. */ -- 2.34.1