Lines Matching refs:defp
71 definition *defp; in get_definition() local
74 defp = calloc(1, sizeof (definition)); in get_definition()
78 def_struct(defp); in get_definition()
81 def_union(defp); in get_definition()
84 def_typedef(defp); in get_definition()
87 def_enum(defp); in get_definition()
90 def_program(defp); in get_definition()
93 def_const(defp); in get_definition()
101 isdefined(defp); in get_definition()
102 return (defp); in get_definition()
106 isdefined(definition *defp) in isdefined() argument
108 STOREVAL(&defined, defp); in isdefined()
128 cmptype(definition *defp, char *type) in cmptype() argument
131 if (streq(defp->def_name, type) && defp->def_kind == DEF_TYPEDEF) in cmptype()
161 is_self_reference(definition *defp, declaration *decp) in is_self_reference() argument
166 if (check_self_reference(defp->def_name, decp, 1)) in is_self_reference()
184 while (!check_self_reference(defp->def_name, decp, 0)) { in is_self_reference()
245 def_struct(definition *defp) in def_struct() argument
252 defp->def_kind = DEF_STRUCT; in def_struct()
255 defp->def_name = tok.str; in def_struct()
257 tailp = &defp->def.st.decls; in def_struct()
258 defp->def.st.tail = NULL; in def_struct()
278 defp->def.st.self_pointer = is_self_reference(defp, &endp->decl); in def_struct()
280 defp->def.st.tail = endp; in def_struct()
284 def_program(definition *defp) in def_program() argument
296 defp->def_kind = DEF_PROGRAM; in def_program()
298 defp->def_name = tok.str; in def_program()
300 vtailp = &defp->def.pr.versions; in def_program()
301 tailp = &defp->def.st.decls; in def_program()
384 defp->def.pr.prog_num = tok.str; in def_program()
389 def_enum(definition *defp) in def_enum() argument
395 defp->def_kind = DEF_ENUM; in def_enum()
397 defp->def_name = tok.str; in def_enum()
399 tailp = &defp->def.en.vals; in def_enum()
418 def_const(definition *defp) in def_const() argument
422 defp->def_kind = DEF_CONST; in def_const()
424 defp->def_name = tok.str; in def_const()
427 defp->def.co = tok.str; in def_const()
431 def_union(definition *defp) in def_union() argument
439 defp->def_kind = DEF_UNION; in def_union()
441 defp->def_name = tok.str; in def_union()
445 defp->def.un.enum_decl = dec; in def_union()
446 tailp = &defp->def.un.cases; in def_union()
487 defp->def.un.default_decl = calloc(1, sizeof (declaration)); in def_union()
488 *defp->def.un.default_decl = dec; in def_union()
492 defp->def.un.default_decl = NULL; in def_union()
551 def_typedef(definition *defp) in def_typedef() argument
555 defp->def_kind = DEF_TYPEDEF; in def_typedef()
557 defp->def_name = dec.name; in def_typedef()
559 defp->def.ty.old_prefix = dec.prefix; in def_typedef()
560 defp->def.ty.old_type = dec.type; in def_typedef()
561 defp->def.ty.rel = dec.rel; in def_typedef()
562 defp->def.ty.array_max = dec.array_max; in def_typedef()