Mercurial > hg > Members > masakoha > testcode
view c/regexParser/regexParser.h @ 139:6c258910cacb pairPro
remove some warning and error
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Dec 2015 02:20:13 +0900 |
parents | ccc673449351 |
children | de0f332d560c |
line wrap: on
line source
#include "error.h" #define NEW(type) (type*)malloc(sizeof(type)) typedef struct word { unsigned char *word; int length; } Word, *WordPtr; typedef struct utf8Range { unsigned char *begin; unsigned char *end; struct utf8Range *next; } RangeList , *RangeListPtr; typedef union condition { RangeListPtr range; WordPtr w; } Condition, *ConditionList; typedef struct charClass { unsigned char type; ConditionList cond; struct charClass *left; struct charClass *right; unsigned char begin; unsigned char end; } CharClass, *CharClassPtr; typedef struct node { unsigned char tokenType; unsigned long nodeNumber; CharClassPtr cc; struct node *left; struct node *right; } Node, *NodePtr; typedef struct regexInfo { unsigned char *ptr; unsigned char tokenType; unsigned char *tokenValue; int nodeNumber; int orNum; bool asterFlag; } RegexInfo, *RegexInfoPtr;