comparison c/regexParser/regexParser.h @ 118:31b0ba0050fa testcode

text
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 26 Nov 2015 17:19:00 +0900
parents 66c633575b53
children 188d866227a4
comparison
equal deleted inserted replaced
117:166136236891 118:31b0ba0050fa
1 typedef struct word { 1 #include "word.h"
2 unsigned char *word; 2 #include "error.h"
3 long length;
4 } Word, *WordPtr;
5
6 typedef union condition { 3 typedef union condition {
7 struct utf8Range { 4 struct utf8Range {
8 unsigned char *begin; 5 unsigned char *begin;
9 unsigned char *end; 6 unsigned char *end;
10 struct utf8Range *next; 7 struct utf8Range *next;
31 } Node, *NodePtr; 28 } Node, *NodePtr;
32 29
33 typedef struct regexInfo { 30 typedef struct regexInfo {
34 unsigned char *ptr; 31 unsigned char *ptr;
35 unsigned char tokenType; 32 unsigned char tokenType;
36 int tokenValue; 33 unsigned char *tokenValue;
37 int nodeNumber; 34 int nodeNumber;
38 } RegexInfo, *RegexInfoPtr; 35 } RegexInfo, *RegexInfoPtr;