Mercurial > hg > Applications > Grep
diff c/regexParser/regexParser.h @ 126:639b0b437ebf pairPro
remove error (do not work)
author | masa |
---|---|
date | Tue, 01 Dec 2015 21:42:05 +0900 |
parents | 4d6ac69801ad |
children | b930be74a16e |
line wrap: on
line diff
--- a/c/regexParser/regexParser.h Tue Dec 01 21:11:27 2015 +0900 +++ b/c/regexParser/regexParser.h Tue Dec 01 21:42:05 2015 +0900 @@ -1,11 +1,16 @@ #include "word.h" #include "error.h" + +#define NEW(type) (type*)malloc(sizeof(type)) + +typedef struct utf8Range { + unsigned char *begin; + unsigned char *end; + struct utf8Range *next; +} RangeList , *RangeListPtr; + typedef union condition { - struct utf8Range { - unsigned char *begin; - unsigned char *end; - struct utf8Range *next; - } *rangeList; + RangeListPtr range; unsigned char character; WordPtr w; } Condition, *ConditionList;