Mercurial > hg > Applications > Grep
comparison regexParser/CeriumGrep.cc @ 299:bdfe0a32c48f
grepWalk
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 03 Feb 2016 13:11:10 +0900 |
parents | 948428caf616 |
children | c9ac6f06e706 |
comparison
equal
deleted
inserted
replaced
298:63213964502a | 299:bdfe0a32c48f |
---|---|
63 if (filename != NULL && !parallel) { | 63 if (filename != NULL && !parallel) { |
64 int fd = 0; | 64 int fd = 0; |
65 st_mmap_t st_mmap = createSt_mmap(filename,fd); | 65 st_mmap_t st_mmap = createSt_mmap(filename,fd); |
66 Buffer buff = createBuffer(st_mmap); | 66 Buffer buff = createBuffer(st_mmap); |
67 if (ts) threadedSearch(tgv.tg,buff); | 67 if (ts) threadedSearch(tgv.tg,buff); |
68 else grepWalk(tgv.tg,buff.buffptr,buff); | 68 else grepWalk(tgv.tg,buff); |
69 close(fd); | 69 close(fd); |
70 } | 70 } |
71 | 71 |
72 s.tg = tgv.tg; | 72 s.tg = tgv.tg; |
73 return s; | 73 return s; |