regmatch(): consolidate locinput++
authorDavid Mitchell <davem@iabyn.com>
Fri, 14 Sep 2012 11:37:33 +0000 (12:37 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 26 Sep 2012 08:41:09 +0000 (09:41 +0100)
commit28b98f76c447cec8a7ac29d73752c2c930de819a
tree3aab4db2568f334208516bca69fc5638116929d4
parentb9b31e9d0400a852436a6d750c074dc32b69492e
regmatch(): consolidate locinput++

There are several places in the code that increment locinput by 1 char
(which may or may not be 1 byte) then update nextchr.

Consolidate these into a single code block with the others goto'ing it.
This actually reduces the code more than it appears, since the CCC_TRY*
macros expand into several branches, each of which repeatthe
increment code.
regexec.c