Lines Matching refs:token
300 struct token { struct
309 static struct token *token_list; argument
319 const struct token *token = _key; in directive_compare() local
325 clen = (dlen < token->size) ? dlen : token->size; in directive_compare()
329 val = memcmp(token->content, dir, clen); in directive_compare()
335 if (dlen == token->size) { in directive_compare()
340 return dlen - token->size; /* shorter -> negative */ in directive_compare()
348 struct token *tokens; in tokenise()
355 token_list = tokens = calloc((end - buffer) / 2, sizeof(struct token)); in tokenise()
683 struct token *name;
684 struct token *type;
706 struct token *name;
707 struct token *def;
732 const struct token *token = _key; in type_finder() local
736 if (token->size != type->name->size) in type_finder()
737 return token->size - type->name->size; in type_finder()
739 return memcmp(token->content, type->name->content, in type_finder()
740 token->size); in type_finder()
798 static struct element *parse_type(struct token **_cursor, struct token *stop,
799 struct token *name);
806 struct token *cursor; in parse()
835 static struct element *alloc_elem(struct token *type) in alloc_elem()
847 static struct element *parse_compound(struct token **_cursor, struct token *end,
853 static struct element *parse_type(struct token **_cursor, struct token *end, in parse_type()
854 struct token *name) in parse_type()
858 struct token *cursor = *_cursor; in parse_type()
1147 static struct element *parse_compound(struct token **_cursor, struct token *end, in parse_compound()
1151 struct token *cursor = *_cursor, *name; in parse_compound()