comparison regexParser/grepWalk.cc @ 266:e51cac73e42a

CeriumGrep start
author masa
date Thu, 28 Jan 2016 21:14:34 +0900
parents 6aebc4d7dd75
children 948428caf616
comparison
equal deleted inserted replaced
265:1e2c12ec25b7 266:e51cac73e42a
6 void grepMatch(TransitionGeneratorPtr tg,Buffer buff); 6 void grepMatch(TransitionGeneratorPtr tg,Buffer buff);
7 void grep(TransitionGeneratorPtr tg,Buffer buff); 7 void grep(TransitionGeneratorPtr tg,Buffer buff);
8 void grepSkip(TransitionGeneratorPtr tg,Buffer buff); 8 void grepSkip(TransitionGeneratorPtr tg,Buffer buff);
9 9
10 void grepMatch(TransitionGeneratorPtr tg,Buffer buff) { 10 void grepMatch(TransitionGeneratorPtr tg,Buffer buff) {
11 fwrite(buff.matchBegin,buff.buffptr-buff.matchBegin,1,stdout); 11 fwrite(buff.matchBegin,buff.buffptr-buff.matchBegin-1,1,stdout);
12 puts("\n"); 12 puts("\n");
13 grepSkip(tg,buff); 13 grepSkip(tg,buff);
14 } 14 }
15 15
16 void grep(TransitionGeneratorPtr tg,Buffer buff,unsigned long d) { 16 void grep(TransitionGeneratorPtr tg,Buffer buff,unsigned long d) {