Mercurial > emacs
changeset 16733:a8927c5085fe
(streq, strneq): Use == NULL rather than !.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 19 Dec 1996 22:02:55 +0000 |
parents | f52c4fd47f03 |
children | 798ab643cba2 |
files | lib-src/etags.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)