28 |
typedef struct rc_asgn RC_ASGN; |
typedef struct rc_asgn RC_ASGN; |
29 |
typedef struct rc_node RC_NODE; |
typedef struct rc_node RC_NODE; |
30 |
typedef struct rc_bool RC_BOOL; |
typedef struct rc_bool RC_BOOL; |
|
typedef struct rc_regex RC_REGEX; |
|
31 |
|
|
32 |
struct rc_section { /* RC Section */ |
struct rc_section { /* RC Section */ |
33 |
RC_SECTION *next; /* Link to the next section */ |
RC_SECTION *next; /* Link to the next section */ |
63 |
rc_node_re /* Regular expression */ |
rc_node_re /* Regular expression */ |
64 |
}; |
}; |
65 |
|
|
|
struct rc_regex { /* Regular expression */ |
|
|
char *src; /* Raw-text representation */ |
|
|
int perlre; /* Is it Perl style? */ |
|
|
union { |
|
|
regex_t re; /* POSIX regex */ |
|
|
#ifdef HAVE_PCRE |
|
|
pcre pre; /* Perl */ |
|
|
#endif |
|
|
} v; |
|
|
}; |
|
|
|
|
66 |
struct rc_node { /* Executable node */ |
struct rc_node { /* Executable node */ |
67 |
enum rc_node_type type; /* Node type */ |
enum rc_node_type type; /* Node type */ |
68 |
union { |
union { |
69 |
RC_REGEX re; |
RC_REGEX *re; |
70 |
RC_BOOL bool; |
RC_BOOL bool; |
71 |
} v; |
} v; |
72 |
}; |
}; |
145 |
int rc_open(char *name); |
int rc_open(char *name); |
146 |
|
|
147 |
struct rc_secdef *anubis_add_section(char *name); |
struct rc_secdef *anubis_add_section(char *name); |
148 |
int anubis_regexp_match(RC_REGEX *re, char *line, int *refc, char ***refv); |
|