# HG changeset patch # User Masataka Kohagura # Date 1453373868 -32400 # Node ID 58de1744d7a9c530a98476956bacbdc7b494a1a7 # Parent d34de5edaa96d3388d250e4066b4175b73358ecd fix diff -r d34de5edaa96 -r 58de1744d7a9 regexParser/threadedSearch.cc --- a/regexParser/threadedSearch.cc Thu Jan 21 19:35:33 2016 +0900 +++ b/regexParser/threadedSearch.cc Thu Jan 21 19:57:48 2016 +0900 @@ -1,8 +1,11 @@ +#include "regexParser.h" +#include "subsetConstruction.h" + struct tsValue; typedef struct tState { State *state; - void stateSkip(struct TSValue); + void stateSkip(struct tsValue); int ccvSize; struct ccv{ unsigned long begin; @@ -28,11 +31,11 @@ void stateSkip(TSValue tsv) { tsv.buff.matchBegin = tsv.buff.buffptr; - tsv.(tsv); + tsv.current->stateSkip(tsv); } void tSearch(TSValue tsv) { - next; while (buff.buffptr < buff.buffend) { + next: while (buff.buffptr < buff.buffend) { unsigned char c = *buff.buffptr++; for (int i = 0; i < tsv.current->ccvSize; i++) { if (cccv[i].begin) tsv.current->stateSkip(tsv);