Mercurial > hg > Applications > Grep
comparison regexParser/sequentialSearch.cc @ 312:c9ac6f06e706
add loop
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 09 Feb 2016 10:59:22 +0900 |
parents | 63213964502a |
children | 879dc5d1cb6a |
comparison
equal
deleted
inserted
replaced
311:1d79e61a9365 | 312:c9ac6f06e706 |
---|---|
5 #include <sys/stat.h> | 5 #include <sys/stat.h> |
6 #include <sys/mman.h> | 6 #include <sys/mman.h> |
7 | 7 |
8 #include "fileread.h" | 8 #include "fileread.h" |
9 #include "threadedSearch.h" | 9 #include "threadedSearch.h" |
10 #include "state.cc" | |
10 | 11 |
11 TSValue state0(TSValue ts); | |
12 | |
13 #include "state.cc" | |
14 int main(int argc, char **argv) { | 12 int main(int argc, char **argv) { |
15 char *filename; | 13 char *filename; |
16 for (int i = 1; i < argc; i++) { | 14 for (int i = 1; i < argc; i++) { |
17 if (strcmp(argv[i],"-file") == 0) { | 15 if (strcmp(argv[i],"-file") == 0) { |
18 filename = argv[i+1]; i++; | 16 filename = argv[i+1]; i++; |