Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regmatch(): remove reginput from CURLYM
reginput, locinput and st->locinput were being used in a little ballet to determine the length of the first match. This is now simply locinput - st->locinput, or its unicode equivalent; so the code can be simplified. Elsewhere in the block: where reginput was being used, locinput and/or nextchr already contain the same info, so use them instead. This is part of a campaign to eliminate the reginput variable.
- Loading branch information
Showing
1 changed file
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters