Crossfire Server, Trunk
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
,
49
sel_end
,
50
sel_single
,
51
sel_range
,
52
sel_array
,
53
sel_not_single
,
54
sel_not_range
55
}
selection_type
;
56
57
typedef
enum
{
58
rep_once
,
59
rep_once_or_more
,
60
rep_null_or_once
,
61
rep_null_or_more
62
}
repetetion_type
;
63
64
typedef
struct
{
65
selection_type
type
;
66
union
{
67
uchar
single
;
68
struct
{
69
uchar
low
, high;
70
} range;
71
Boolean
array[UCHAR_MAX];
72
} u;
73
repetetion_type
repeat
;
74
}
selection
;
75
76
#endif
/* RE_CMP_H */
sel_not_single
@ sel_not_single
Definition:
re-cmp.h:53
uchar
#define uchar
Definition:
re-cmp.h:42
Boolean
#define Boolean
Definition:
re-cmp.h:43
rep_null_or_once
@ rep_null_or_once
Definition:
re-cmp.h:60
sel_any
@ sel_any
Definition:
re-cmp.h:48
sel_range
@ sel_range
Definition:
re-cmp.h:51
rep_once_or_more
@ rep_once_or_more
Definition:
re-cmp.h:59
selection
Definition:
re-cmp.h:64
selection::single
uchar single
Definition:
re-cmp.h:67
selection::repeat
repetetion_type repeat
Definition:
re-cmp.h:73
sel_end
@ sel_end
Definition:
re-cmp.h:49
rep_once
@ rep_once
Definition:
re-cmp.h:58
sel_not_range
@ sel_not_range
Definition:
re-cmp.h:54
sel_single
@ sel_single
Definition:
re-cmp.h:50
rep_null_or_more
@ rep_null_or_more
Definition:
re-cmp.h:61
sel_array
@ sel_array
Definition:
re-cmp.h:52
repetetion_type
repetetion_type
Definition:
re-cmp.h:57
selection_type
selection_type
Definition:
re-cmp.h:47
selection::type
selection_type type
Definition:
re-cmp.h:65
selection::low
uchar low
Definition:
re-cmp.h:69
crossfire-crossfire-server
include
re-cmp.h
Generated by
1.8.17