Lines Matching refs:res
35 symbol_list *res = xmalloc (sizeof *res); in symbol_list_sym_new() local
37 res->content_type = SYMLIST_SYMBOL; in symbol_list_sym_new()
38 res->content.sym = sym; in symbol_list_sym_new()
39 res->location = res->sym_loc = loc; in symbol_list_sym_new()
41 res->midrule = NULL; in symbol_list_sym_new()
42 res->midrule_parent_rule = NULL; in symbol_list_sym_new()
43 res->midrule_parent_rhs_index = 0; in symbol_list_sym_new()
45 code_props_none_init (&res->action_props); in symbol_list_sym_new()
47 res->ruleprec = NULL; in symbol_list_sym_new()
48 res->dprec = 0; in symbol_list_sym_new()
49 res->merger = 0; in symbol_list_sym_new()
51 res->named_ref = NULL; in symbol_list_sym_new()
53 res->next = NULL; in symbol_list_sym_new()
55 return res; in symbol_list_sym_new()
66 symbol_list *res = xmalloc (sizeof *res); in symbol_list_type_new() local
68 res->content_type = SYMLIST_TYPE; in symbol_list_type_new()
69 res->content.type_name = type_name; in symbol_list_type_new()
70 res->location = res->sym_loc = loc; in symbol_list_type_new()
71 res->named_ref = NULL; in symbol_list_type_new()
72 res->next = NULL; in symbol_list_type_new()
74 return res; in symbol_list_type_new()
85 symbol_list *res = xmalloc (sizeof *res); in symbol_list_default_tagged_new() local
87 res->content_type = SYMLIST_DEFAULT_TAGGED; in symbol_list_default_tagged_new()
88 res->location = res->sym_loc = loc; in symbol_list_default_tagged_new()
89 res->named_ref = NULL; in symbol_list_default_tagged_new()
90 res->next = NULL; in symbol_list_default_tagged_new()
92 return res; in symbol_list_default_tagged_new()
103 symbol_list *res = xmalloc (sizeof *res); in symbol_list_default_tagless_new() local
105 res->content_type = SYMLIST_DEFAULT_TAGLESS; in symbol_list_default_tagless_new()
106 res->location = res->sym_loc = loc; in symbol_list_default_tagless_new()
107 res->named_ref = NULL; in symbol_list_default_tagless_new()
108 res->next = NULL; in symbol_list_default_tagless_new()
110 return res; in symbol_list_default_tagless_new()
167 int res = 0; in symbol_list_length() local
171 ++res; in symbol_list_length()
172 return res; in symbol_list_length()