Mercurial > hg > Applications > Grep
comparison regexParser/mergeTest.cc @ 188:109d22faf7b5 pairPro
remove errors and warnings
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Dec 2015 02:57:21 +0900 |
parents | 3bf2c6d6d53e |
children |
comparison
equal
deleted
inserted
replaced
187:ef798db705e9 | 188:109d22faf7b5 |
---|---|
7 extern void printTree(NodePtr); | 7 extern void printTree(NodePtr); |
8 | 8 |
9 int main(int argc, char **argv) | 9 int main(int argc, char **argv) |
10 { | 10 { |
11 RegexInfoPtr ri = (RegexInfoPtr)malloc(sizeof(RegexInfo)); | 11 RegexInfoPtr ri = (RegexInfoPtr)malloc(sizeof(RegexInfo)); |
12 ri->nodeNumber = 1; | 12 ri->stateNumber = 1; |
13 unsigned char* merge = NULL; | 13 unsigned char* merge = NULL; |
14 for (int i = 1; i < argc; i++) { | 14 for (int i = 1; i < argc; i++) { |
15 if (strcmp(argv[i],"-regex") == 0) { | 15 if (strcmp(argv[i],"-regex") == 0) { |
16 ri->ptr = (unsigned char*)argv[i+1]; i++; | 16 ri->ptr = (unsigned char*)argv[i+1]; i++; |
17 } else if (strcmp(argv[i],"-merge") == 0) { | 17 } else if (strcmp(argv[i],"-merge") == 0) { |