Mercurial > hg > Applications > Grep
comparison regexParser/threadedSearch.cc @ 268:0e423d9f9647
remove error (remain 1 warning(no use variable))
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Jan 2016 16:06:11 +0900 |
parents | e51cac73e42a |
children | c82f7e7f66f7 |
comparison
equal
deleted
inserted
replaced
267:5d4afe6f6d00 | 268:0e423d9f9647 |
---|---|
81 // create tSearch in next state. | 81 // create tSearch in next state. |
82 StatePtr state = tsv.tg->stateArray[ccv->state.bitContainer]; | 82 StatePtr state = tsv.tg->stateArray[ccv->state.bitContainer]; |
83 if (state == NULL) { | 83 if (state == NULL) { |
84 // on the fly subset construction. | 84 // on the fly subset construction. |
85 state = createState(tsv.tg,state->bitState); | 85 state = createState(tsv.tg,state->bitState); |
86 determinize(state,tsv.tg); | |
86 tsv.tg->stateArray[state->bitState.bitContainer] = state; | 87 tsv.tg->stateArray[state->bitState.bitContainer] = state; |
87 determinize(state,tsv.tg); | |
88 } | 88 } |
89 if (state->tState == NULL) { | 89 if (state->tState == NULL) { |
90 current = generateTState(state); | 90 current = generateTState(state,tsv.tg); |
91 ccv->tState = current; | 91 ccv->tState = current; |
92 } else { | 92 } else { |
93 ccv->tState = state->tState; | 93 ccv->tState = state->tState; |
94 } | 94 } |
95 } | 95 } |
105 void threadedSearch(TransitionGeneratorPtr tg, Buffer buff) { | 105 void threadedSearch(TransitionGeneratorPtr tg, Buffer buff) { |
106 TSValue tsv; | 106 TSValue tsv; |
107 tsv.buff = buff; | 107 tsv.buff = buff; |
108 tsv.tg = tg; | 108 tsv.tg = tg; |
109 tsv.result = NULL; | 109 tsv.result = NULL; |
110 tsv.current = generateTState(tg->stateList); | 110 tsv.current = generateTState(tg->stateList,tg); |
111 tsv.tg->stateSkip = stateSkip; | 111 tsv.tg->stateSkip = stateSkip; |
112 tsv.tg->stateMatch = stateMatch; | 112 tsv.tg->stateMatch = stateMatch; |
113 tsv.tg->stateNothing = stateNothing; | 113 tsv.tg->stateNothing = stateNothing; |
114 tSearch(tsv); | 114 tSearch(tsv); |
115 } | 115 } |