Lines Matching refs:type
123 findit(definition *def, char *type)
125 return (streq(def->def_name, type));
129 fixit(char *type, char *orig)
133 def = (definition *)FINDVAL(defined, type, findit);
150 fixtype(char *type)
152 return (fixit(type, type));
156 stringfix(char *type)
158 if (streq(type, "string"))
160 return (type);
164 ptype(char *prefix, char *type, int follow)
173 if (streq(type, "bool")) {
175 } else if (streq(type, "string")) {
177 } else if (streq(type, "oneway")) {
180 f_print(fout, "%s ", follow ? fixtype(type) : type);
185 typedefed(definition *def, char *type)
189 return (streq(def->def_name, type));
193 isvectordef(char *type, relation rel)
200 return (!streq(type, "string"));
206 def = (definition *)FINDVAL(defined, type, typedefed);
209 type = def->def.ty.old_type;
431 add_type(int len, char *type)
440 ptr->name = type;
454 find_type(char *type)
460 if (strcmp(ptr->name, type) == 0)