This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regmatch(): add asserts for legal values of nextchr
authorDavid Mitchell <davem@iabyn.com>
Thu, 18 Oct 2012 18:54:20 +0000 (19:54 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 19 Oct 2012 09:50:21 +0000 (10:50 +0100)
commite6ca698ca4309632ab09826ad47492d2934e10bd
tree6a5455b3ccd1935f1f51a02ff9be6420053477f4
parent6703dff2fdca09b5e94caa860a909c14a1ffdaa2
regmatch(): add asserts for legal values of nextchr

nextchr should always hold the next *byte* of the string, or the
special value NEXTCHR_EOS, so assert this. And when we're moving to the
next char, nextchr shouldn't already be NEXTCHR_EOS.
regexec.c