From: Jim Meyering Date: Tue, 9 Nov 1999 20:41:18 +0000 (+0000) Subject: (NEW): Undefine to avoid warning about redefinition. X-Git-Tag: FILEUTILS-4_0j-trial~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59339ab7e502fd9deae65bb2943a374de8b3a7d0;p=platform%2Fupstream%2Fcoreutils.git (NEW): Undefine to avoid warning about redefinition. (NEW): Redefine in terms of XMALLOC. --- 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. */