mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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/ MFC after: 1 week
This commit is contained in:
parent
00b460ffc5
commit
c7ef297a8e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306560
@ -48,9 +48,9 @@
|
||||
/* handy definitions */
|
||||
|
||||
#define strNE(s1,s2) (strcmp(s1, s2))
|
||||
#define strEQ(s1,s2) (!strcmp(s1, s2))
|
||||
#define strEQ(s1,s2) (strcmp(s1, s2) == 0)
|
||||
#define strnNE(s1,s2,l) (strncmp(s1, s2, l))
|
||||
#define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
|
||||
#define strnEQ(s1,s2,l) (strncmp(s1, s2, l) == 0)
|
||||
|
||||
/* typedefs */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user