diff options
author | Jim Meyering <jim@meyering.net> | 1999-11-09 20:41:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-11-09 20:41:18 +0000 |
commit | 59339ab7e502fd9deae65bb2943a374de8b3a7d0 (patch) | |
tree | 399659427d1da9ba208da64f6db5596e0b718db3 /src | |
parent | f5225442f808d099ebbb93e978dd28dade3d9aed (diff) | |
download | coreutils-59339ab7e502fd9deae65bb2943a374de8b3a7d0.tar.xz |
(NEW): Undefine to avoid warning about redefinition.
(NEW): Redefine in terms of XMALLOC.
Diffstat (limited to 'src')
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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. */ |