summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-09-10 22:24:48 -0600
committerKarl Williamson <khw@cpan.org>2016-09-17 21:10:49 -0600
commit085b753446f9c21f09e86beb916fb5b857faf36d (patch)
tree7f7252f400d7cc2044a083376964ce410913904f
parentf2bf18ccb4cce9b47fd2180d0348f08e8cbbd663 (diff)
downloadperl-085b753446f9c21f09e86beb916fb5b857faf36d.tar.gz
handy.h: Comment memEQs and memNEs
-rw-r--r--handy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index d131cfc9e0..5428d7c38d 100644
--- 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)