This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: Comment memEQs and memNEs
authorKarl Williamson <khw@cpan.org>
Sun, 11 Sep 2016 04:24:48 +0000 (22:24 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 18 Sep 2016 03:10:49 +0000 (21:10 -0600)
handy.h

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)