changeset 313:90ccd94906c0

minor fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 09 Feb 2016 11:02:35 +0900
parents c9ac6f06e706
children a4484c02cba5
files regexParser/generateLoop.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/regexParser/generateLoop.cc	Tue Feb 09 10:59:22 2016 +0900
+++ b/regexParser/generateLoop.cc	Tue Feb 09 11:02:35 2016 +0900
@@ -13,7 +13,6 @@
     if (accept && state->accept) {
         fputs("    tsv=tsv.tg->stateMatch(tsv);\n",fp);
     }
-    fputs("    if (tsv.buff.buffptr >= tsv.buff.buffend) return tsv;\n",fp);
     CharClassWalkerPtr ccw = createCharClassWalker(state->cc);
     if (hasNext(ccw)) fputs("    unsigned char c = *tsv.buff.buffptr++;\n",fp);
     fputs("    if (0) ;\n",fp);
@@ -43,7 +42,7 @@
         fprintf(stderr,"cannot write state.cc\n");
         exit(1);
     }
-    fprintf(fp,"static TSValue state%lx(TSValue tsv) ;\n",0);
+    fprintf(fp,"static TSValue state%lx(TSValue tsv) ;\n",0L);
     for (;state;state = state->next) {
         if (state->bitState.bitContainer!=1)  // state1 always unused but state0
             fprintf(fp,"static TSValue state%lx(TSValue tsv);\n",state->bitState.bitContainer);