comparison lib-src/etags.c @ 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 16b8d910795f
children 53314a257690
comparison
equal deleted inserted replaced
16732:f52c4fd47f03 16733:a8927c5085fe
107 /* C extensions. */ 107 /* C extensions. */
108 #define C_PLPL 0x00001 /* C++ */ 108 #define C_PLPL 0x00001 /* C++ */
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
117 #define iswhite(arg) (_wht[arg]) /* T if char is white */ 119 #define iswhite(arg) (_wht[arg]) /* T if char is white */
118 #define begtoken(arg) (_btk[arg]) /* T if char can start token */ 120 #define begtoken(arg) (_btk[arg]) /* T if char can start token */