MFC r306560, r306561:

patch(1): make some macros look boolean.

Minor cleanup inspired by a new patch(1) variant in schily tools.

For reference:
https://sourceforge.net/p/schillix-on/
This commit is contained in:
Pedro F. Giffuni 2016-10-09 20:12:58 +00:00
parent 1070f8aa3f
commit a5e5007ae5

View File

@ -47,10 +47,9 @@
/* handy definitions */
#define strNE(s1,s2) (strcmp(s1, s2))
#define strEQ(s1,s2) (!strcmp(s1, s2))
#define strnNE(s1,s2,l) (strncmp(s1, s2, l))
#define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
#define strEQ(s1,s2) (strcmp(s1, s2) == 0)
#define strnNE(s1,s2,l) (strncmp(s1, s2, l) != 0)
#define strnEQ(s1,s2,l) (strncmp(s1, s2, l) == 0)
/* typedefs */