mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(streq, strneq): Use == NULL rather than !.
This commit is contained in:
parent
beb403b379
commit
370e3d9d64
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user