Mercurial > hg > Members > masakoha > testcode
changeset 252:2b276fdd99bd
remove error (not working)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jan 2016 11:48:06 +0900 |
parents | e22e3475f664 |
children | 5f8863a5d902 |
files | regexParser/subsetConstruction.h regexParser/threadedSearch.cc |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/regexParser/subsetConstruction.h Sat Jan 23 14:10:28 2016 +0900 +++ b/regexParser/subsetConstruction.h Sun Jan 24 11:48:06 2016 +0900 @@ -4,6 +4,7 @@ extern void exportState(TransitionGeneratorPtr tg); extern void setState(CharClassPtr cc, BitVector bi); extern StatePtr createState(TGValue tgv,NodePtr n); +extern StatePtr createState(TransitionGeneratorPtr tg,BitVector bi); extern TGValue generateTransitionList(NodePtr n); extern CharClassPtr getNext(CharClassWalkerPtr walk); extern bool hasNext(CharClassWalkerPtr walk);
--- a/regexParser/threadedSearch.cc Sat Jan 23 14:10:28 2016 +0900 +++ b/regexParser/threadedSearch.cc Sun Jan 24 11:48:06 2016 +0900 @@ -54,8 +54,8 @@ StatePtr state = tsv.tg->stateArray[ccv->state.bitContainer]; if (state == NULL) { // on the fly subset construction. - state = createState(tsv.tg,bi); - tsv.tg->stateArray[bi.bitContainer] = state; + state = createState(tsv.tg,state->bitState); + tsv.tg->stateArray[state->bitState.bitContainer] = state; determinize(state,tsv.tg); } if (state->tState == NULL) {