Crossfire Server, Trunk  R20513
re-cmp.h
Go to the documentation of this file.
1 
9 #ifndef RE_CMP_H
10 #define RE_CMP_H
11 
12 /* C o n f i g u r a t i o n
13  */
14 
15 #define SAFE_CHECKS
19 #define RE_TOKEN_MAX 64
26 /* D o n o t c h a n g e b e l o w
27  */
28 
29 #ifdef uchar
30 # undef uchar
31 #endif
32 #ifdef Boolean
33 # undef Boolean
34 #endif
35 #ifdef True
36 # undef True
37 #endif
38 #ifdef False
39 # undef False
40 #endif
41 
42 #define uchar unsigned char
43 #define Boolean uchar
44 #define True 1
45 #define False 0
46 
47 typedef enum {
48  sel_any,
56 
57 typedef enum {
63 
64 typedef struct {
66  union {
67  uchar single;
68  struct {
69  uchar low, high;
70  } range;
71  Boolean array[UCHAR_MAX];
72  } u;
73  repetetion_type repeat;
75 
76 #endif /* RE_CMP_H */
selection_type
Definition: re-cmp.h:54
corresponds to eg *
Definition: re-cmp.h:68
corresponds to +
Definition: re-cmp.h:66
corresponds to eg q
Definition: re-cmp.h:57
corresponds to eg [A-F]
Definition: re-cmp.h:58
corresponds to eg [AF-RqO-T]
Definition: re-cmp.h:59
repetetion_type
Definition: re-cmp.h:64
#define Boolean
Definition: re-cmp.h:50
corresponds to eg [^f]
Definition: re-cmp.h:60
corresponds to no meta-char
Definition: re-cmp.h:65
corresponds to eg $
Definition: re-cmp.h:56
corresponds to eg [^A-F]
Definition: re-cmp.h:61
corresponds to eg .
Definition: re-cmp.h:55
#define uchar
Definition: re-cmp.h:49
corresponds to eg ?
Definition: re-cmp.h:67