This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2bf18c
)
handy.h: Comment memEQs and memNEs
author
Karl Williamson
<khw@cpan.org>
Sun, 11 Sep 2016 04:24:48 +0000
(22:24 -0600)
committer
Karl Williamson
<khw@cpan.org>
Sun, 18 Sep 2016 03:10:49 +0000
(21:10 -0600)
handy.h
patch
|
blob
|
blame
|
history
diff --git
a/handy.h
b/handy.h
index
d131cfc
..
5428d7c
100644
(file)
--- a/
handy.h
+++ b/
handy.h
@@
-489,6
+489,7
@@
Returns zero if non-equal, or non-zero if equal.
# define memEQ(s1,s2,l) (!bcmp(s1,s2,l))
#endif
+/* memEQ and memNE where second comparand is a string constant */
#define memEQs(s1, l, s2) \
(sizeof(s2)-1 == l && memEQ(s1, ("" s2 ""), (sizeof(s2)-1)))
#define memNEs(s1, l, s2) !memEQs(s1, l, s2)