# HG changeset patch # User Richard M. Stallman # Date 851032975 0 # Node ID a8927c5085fe211ec621b902245d99c54170f767 # Parent f52c4fd47f0377f8063607225fe63091b7ca2ab5 (streq, strneq): Use == NULL rather than !. diff -r f52c4fd47f03 -r a8927c5085fe lib-src/etags.c --- a/lib-src/etags.c Thu Dec 19 17:05:37 1996 +0000 +++ b/lib-src/etags.c Thu Dec 19 22:02:55 1996 +0000 @@ -109,8 +109,10 @@ #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)