aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-19 22:02:55 +0000
committerRichard M. Stallman1996-12-19 22:02:55 +0000
commit370e3d9d646e8296f92d23b5a87de06f7a0ec679 (patch)
treefc58846e72414810de779711317aacd446ddd0eb /lib-src
parentbeb403b379ac05a7921ebe4ba58ed0e9dc9acfbd (diff)
downloademacs-370e3d9d646e8296f92d23b5a87de06f7a0ec679.tar.gz
emacs-370e3d9d646e8296f92d23b5a87de06f7a0ec679.zip
(streq, strneq): Use == NULL rather than !.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c6
1 files 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;
109#define C_STAR 0x00003 /* C* */ 109#define C_STAR 0x00003 /* C* */
110#define YACC 0x10000 /* yacc file */ 110#define YACC 0x10000 /* yacc file */
111 111
112#define streq(s,t) ((DEBUG &&!(s)&&!(t)&&(abort(),1)) || !strcmp(s,t)) 112#define streq(s,t) ((DEBUG && (s) == NULL && (t) == NULL \
113#define strneq(s,t,n) ((DEBUG &&!(s)&&!(t)&&(abort(),1)) || !strncmp(s,t,n)) 113 && (abort (), 1)) || !strcmp (s, t))
114#define strneq(s,t,n) ((DEBUG && (s) == NULL && (t) == NULL \
115 && (abort (), 1)) || !strncmp (s, t, n))
114 116
115#define lowcase(c) tolower ((char)c) 117#define lowcase(c) tolower ((char)c)
116 118