Mercurial > hg > Applications > Grep
comparison regexParser/cerium/CeriumMain.cc @ 272:5aa9d01926f1
Cerium version no compile errors
author | kono |
---|---|
date | Fri, 29 Jan 2016 20:38:18 +0900 |
parents | 6640b0d5bf13 |
children | 7b4bcc7b5ae6 |
comparison
equal
deleted
inserted
replaced
271:6640b0d5bf13 | 272:5aa9d01926f1 |
---|---|
3 #include "TaskManager.h" | 3 #include "TaskManager.h" |
4 #include "SchedTask.h" | 4 #include "SchedTask.h" |
5 #include "Func.h" | 5 #include "Func.h" |
6 #include "FileMapReduce.h" | 6 #include "FileMapReduce.h" |
7 #include "CeriumGrep.h" | 7 #include "CeriumGrep.h" |
8 #include "subsetConstruction.h" | |
9 #include "threadedSearch.h" | |
8 | 10 |
9 extern void task_init(); | 11 extern void task_init(); |
10 void TMend(TaskManager *); | 12 void TMend(TaskManager *); |
11 static double st_time; | 13 static double st_time; |
12 static double ed_time; | 14 static double ed_time; |
24 { | 26 { |
25 char *filename = 0; | 27 char *filename = 0; |
26 st_time = getTime(); | 28 st_time = getTime(); |
27 Search s = grep(argc,argv,true); | 29 Search s = grep(argc,argv,true); |
28 createAnyState(s.tg); | 30 createAnyState(s.tg); |
29 generateTsate(s.tg->anySatete,s.tg); | 31 generateTState(s.tg->anyState,s.tg); |
30 | 32 |
31 FileMapReduce *fmp = new FileMapReduce(manager,TASK_EXEC,TASK_EXEC_DATA_PARALLEL,TASK_PRINT); | 33 FileMapReduce *fmp = new FileMapReduce(manager,TASK_EXEC,TASK_EXEC_DATA_PARALLEL,TASK_PRINT); |
32 filename = fmp->init(argc, argv); | 34 filename = fmp->init(argc, argv); |
33 fmp->w->global = (void*)s.tg; | 35 fmp->w->global = (void*)s.tg; |
34 if (filename < 0) { | 36 if (filename < 0) { |