Extract addr-policy parsing code.

This commit is contained in:
Nick Mathewson
2018-10-01 11:08:09 -05:00
parent 95e2eb9083
commit 35db3f8162
11 changed files with 267 additions and 212 deletions
+2 -2
View File
@@ -302,12 +302,12 @@ void token_clear(directory_token_t *tok);
int tokenize_string(struct memarea_t *area,
const char *start, const char *end,
struct smartlist_t *out,
token_rule_t *table,
const token_rule_t *table,
int flags);
directory_token_t *get_next_token(struct memarea_t *area,
const char **s,
const char *eos,
token_rule_t *table);
const token_rule_t *table);
directory_token_t *find_by_keyword_(struct smartlist_t *s,
directory_keyword keyword,