]> git.eshelyaron.com Git - emacs.git/commitdiff
(streq, strneq): Use == NULL rather than !.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 Dec 1996 22:02:55 +0000 (22:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 Dec 1996 22:02:55 +0000 (22:02 +0000)
lib-src/etags.c

index 1415e0f7d3da1828fc58e41d6aa1f32559d567d0..0120226b38c1422cccb3a84a23b141c2e375843b 100644 (file)
@@ -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)