changeset 246:58de1744d7a9

fix
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 21 Jan 2016 19:57:48 +0900
parents d34de5edaa96
children 96c2507fd22d
files regexParser/threadedSearch.cc
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 (c<tsv.current->ccv[i].begin) tsv.current->stateSkip(tsv);