Mercurial > hg > Applications > Grep
diff regexParser/regexParser.h @ 292:868f01f1ba8e
maximum match
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Feb 2016 21:52:57 +0900 |
parents | f2491681914e |
children | 3e78631a6222 |
line wrap: on
line diff
--- a/regexParser/regexParser.h Mon Feb 01 12:20:16 2016 +0900 +++ b/regexParser/regexParser.h Mon Feb 01 21:52:57 2016 +0900 @@ -61,7 +61,7 @@ typedef struct tState { State *state; tsValue (*stateSkip)(tsValue); - tsValue (*stateContinue)(tsValue); + tsValue (*stateMatch)(tsValue); int ccvSize; CCVPtr ccv; } TState, *TStatePtr; @@ -107,17 +107,22 @@ unsigned char *buff; unsigned char *buffptr; unsigned char *buffend; - unsigned char *matchBegin; } Buffer, *BufferPtr; +typedef struct blockOutput { + ResultPtr result; + ResultPtr *resultEnd; + TState *blockBegin; + TState *blockEnd; +} BlockOutput, *BlockOutputPtr; + typedef struct tsValue { + TState *current; Buffer buff; - ResultPtr result; - ResultPtr *resultEnd; + unsigned char *matchBegin; + unsigned char *matchEnd; + BlockOutputPtr blk; TransitionGeneratorPtr tg; - TState *current; - TState *blockBegin; - TState *blockEnd; } TSValue, *TSValuePtr; typedef struct tgValue {