From 370e3d9d646e8296f92d23b5a87de06f7a0ec679 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 19 Dec 1996 22:02:55 +0000 Subject: [PATCH] (streq, strneq): Use == NULL rather than !. --- lib-src/etags.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index 1415e0f7d3d..0120226b38c 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -109,8 +109,10 @@ extern int errno; #define C_STAR 0x00003 /* C* */ #define YACC 0x10000 /* yacc file */ -#define streq(s,t) ((DEBUG &&!(s)&&!(t)&&(abort(),1)) || !strcmp(s,t)) -#define strneq(s,t,n) ((DEBUG &&!(s)&&!(t)&&(abort(),1)) || !strncmp(s,t,n)) +#define streq(s,t) ((DEBUG && (s) == NULL && (t) == NULL \ + && (abort (), 1)) || !strcmp (s, t)) +#define strneq(s,t,n) ((DEBUG && (s) == NULL && (t) == NULL \ + && (abort (), 1)) || !strncmp (s, t, n)) #define lowcase(c) tolower ((char)c) -- 2.39.5