This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: add _memEQs() and _memNEs() for use with constant strings
authorYves Orton <demerphq@gmail.com>
Wed, 19 Oct 2016 08:32:29 +0000 (10:32 +0200)
committerYves Orton <demerphq@gmail.com>
Wed, 19 Oct 2016 11:27:59 +0000 (13:27 +0200)
commit777fa2cb699b74cad6714d203572533dbd583976
treeb2fa85f3a66ae80b5310e3ac6dcefacf39d27b81
parent62946e08d24766c73755a22909c985cbf0a1b970
handy.h: add _memEQs() and _memNEs() for use with constant strings

memEQs() is already defined, and requires a length parameter for
the first pointer argument. However some times we do not have
this length handy and simply want to use the length of the constant
string instead.

In an ideal world, to be compatible with more s suffix macros,
IMO the existing memEQs() should have been called something like
memEQsl() maybe, and the ones I am adding would get the memEQs(
name, but it didnt work out like that.
handy.h