From: Richard M. Stallman Date: Thu, 19 Dec 1996 22:02:55 +0000 (+0000) Subject: (streq, strneq): Use == NULL rather than !. X-Git-Tag: emacs-20.1~3211 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=370e3d9d646e8296f92d23b5a87de06f7a0ec679;p=emacs.git (streq, strneq): Use == NULL rather than !. --- 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)