comparison regexParser/grepWalk.cc @ 316:c4d33b7c3ccd

no compile error
author mir3636
date Sat, 07 May 2016 19:41:48 +0900
parents 66012db6a717
children fa590a7272ae
comparison
equal deleted inserted replaced
315:66012db6a717 316:c4d33b7c3ccd
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <stdlib.h> 2 #include <stdlib.h>
3 #include <string.h>
3 4
4 #include "grepWalk.h" 5 #include "grepWalk.h"
5 #include "subsetConstruction.h" 6 #include "subsetConstruction.h"
6 #include "CharClass.h" 7 #include "CharClass.h"
7 #include "threadedSearch.h" 8 #include "threadedSearch.h"
48 goto next; 49 goto next;
49 } else if (c<=cc->cond.range.end) { 50 } else if (c<=cc->cond.range.end) {
50 // range matched. 51 // range matched.
51 if (cc->cond.w.word) { 52 if (cc->cond.w.word) {
52 WordPtr w; 53 WordPtr w;
53 for (w = &cc->cond.w.word;w;w = w->next) { 54 for (w = &cc->cond.w;w;w = w->next) {
54 // match the word. 55 // match the word.
55 // if (not match) continue; 56 // if (not match) continue;
56 if (strncmp(w.word,tsv.buff.buffptr-1,w.length)) break; 57 if (strncmp((const char *)w->word,(const char *)tsv.buff.buffptr-1,w->length)) break;
57 } 58 }
58 if (!w) continue; 59 if (!w) continue;
59 tsv.buff.buffptr += w.length - 1; 60 tsv.buff.buffptr += w->length - 1;
60 } 61 }
61 state = nextState(cc->nextState,tg); 62 state = nextState(cc->nextState,tg);
62 goto next; 63 goto next;
63 } 64 }
64 } 65 }