Mercurial > hg > Applications > Grep
changeset 280:6bbd1cbf90d0
fix prev initialize in Print.c . Search in a block worked
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 16:59:43 +0900 |
parents | 6cc1d9779f45 |
children | b74e3b4b11d7 |
files | regexParser/cerium/CeriumMain.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/regexParser/cerium/CeriumMain.cc Sun Jan 31 15:59:11 2016 +0900 +++ b/regexParser/cerium/CeriumMain.cc Sun Jan 31 16:59:43 2016 +0900 @@ -49,14 +49,14 @@ ResultPtr resultPrint(ResultPtr r,const char* comment) { ResultPtr prev = NULL; - printf("%s\n",comment); + // printf("%s\n",comment); for (;r;r = r->next) { if (r->end == NULL) { prev = r; break; } fwrite(r->begin,r->end - r->begin-1,1,stdout); - puts("\n"); + puts(""); } return prev; }