Lines Matching refs:token
303 struct token { struct
312 static struct token *token_list; argument
320 const struct token *token = _key; in directive_compare() local
326 clen = (dlen < token->size) ? dlen : token->size; in directive_compare()
332 val = memcmp(token->value, dir, clen); in directive_compare()
338 if (dlen == token->size) { in directive_compare()
343 return dlen - token->size; /* shorter -> negative */ in directive_compare()
351 struct token *tokens; in tokenise()
358 token_list = tokens = calloc((end - buffer) / 2, sizeof(struct token)); in tokenise()
653 struct token *name;
654 struct token *type;
676 struct token *name;
677 struct token *def;
702 const struct token *token = _key; in type_finder() local
706 if (token->size != type->name->size) in type_finder()
707 return token->size - type->name->size; in type_finder()
709 return memcmp(token->value, type->name->value, in type_finder()
710 token->size); in type_finder()
771 static struct element *parse_type(struct token **_cursor, struct token *stop,
772 struct token *name);
779 struct token *cursor; in parse()
809 static struct element *alloc_elem(struct token *type) in alloc_elem()
821 static struct element *parse_compound(struct token **_cursor, struct token *end,
827 static struct element *parse_type(struct token **_cursor, struct token *end, in parse_type()
828 struct token *name) in parse_type()
832 struct token *cursor = *_cursor; in parse_type()
1129 static struct element *parse_compound(struct token **_cursor, struct token *end, in parse_compound()
1133 struct token *cursor = *_cursor, *name; in parse_compound()