Lines Matching refs:token

304 struct token {  struct
313 static struct token *token_list; argument
323 const struct token *token = _key; in directive_compare() local
329 clen = (dlen < token->size) ? dlen : token->size; in directive_compare()
333 val = memcmp(token->content, dir, clen); in directive_compare()
339 if (dlen == token->size) { in directive_compare()
344 return dlen - token->size; /* shorter -> negative */ in directive_compare()
352 struct token *tokens; in tokenise()
359 token_list = tokens = calloc((end - buffer) / 2, sizeof(struct token)); in tokenise()
687 struct token *name;
688 struct token *type;
710 struct token *name;
711 struct token *def;
736 const struct token *token = _key; in type_finder() local
740 if (token->size != type->name->size) in type_finder()
741 return token->size - type->name->size; in type_finder()
743 return memcmp(token->content, type->name->content, in type_finder()
744 token->size); in type_finder()
802 static struct element *parse_type(struct token **_cursor, struct token *stop,
803 struct token *name);
810 struct token *cursor; in parse()
839 static struct element *alloc_elem(struct token *type) in alloc_elem()
851 static struct element *parse_compound(struct token **_cursor, struct token *end,
857 static struct element *parse_type(struct token **_cursor, struct token *end, in parse_type()
858 struct token *name) in parse_type()
862 struct token *cursor = *_cursor; in parse_type()
1151 static struct element *parse_compound(struct token **_cursor, struct token *end, in parse_compound()
1155 struct token *cursor = *_cursor, *name; in parse_compound()