Mercurial > hg > Members > masakoha > testcode
changeset 81:27883946b2dc
sort function
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 07 Oct 2015 16:47:03 +0900 |
parents | 0a452d69f0e2 |
children | 1d9bbf922bb6 |
files | c/regexParser/main.cc c/regexParser/regexParser.h |
diffstat | 2 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/c/regexParser/main.cc Wed Oct 07 16:08:34 2015 +0900 +++ b/c/regexParser/main.cc Wed Oct 07 16:47:03 2015 +0900 @@ -11,18 +11,12 @@ #include <string.h> #include "regexParser.h" -typedef struct regexInfo { - unsigned char *ptr; - unsigned char tokenType; - int tokenValue; -} RegexInfo, *RegexInfoPtr; - -NodePtr charClass(); -NodePtr group(); +NodePtr createNode(unsigned char,NodePtr,NodePtr); +NodePtr charClass(RegexInfoPtr); +NodePtr group(RegexInfoPtr); +void token(RegexInfoPtr); +NodePtr regexAtom(RegexInfoPtr); NodePtr regex(RegexInfoPtr); -NodePtr createNode(unsigned char,NodePtr,NodePtr); -void token(); -NodePtr regexAtom(); extern void printTree(NodePtr); /**
--- a/c/regexParser/regexParser.h Wed Oct 07 16:08:34 2015 +0900 +++ b/c/regexParser/regexParser.h Wed Oct 07 16:47:03 2015 +0900 @@ -18,3 +18,9 @@ struct node *left; struct node *right; } Node, *NodePtr; + +typedef struct regexInfo { + unsigned char *ptr; + unsigned char tokenType; + int tokenValue; +} RegexInfo, *RegexInfoPtr;