Lines Matching refs:tdp
33 void genassym_do_sou(struct tdesc *tdp, struct node *np);
34 void genassym_do_enum(struct tdesc *tdp, struct node *np);
35 void genassym_do_intrinsic(struct tdesc *tdp, struct node *np);
37 static void switch_on_type(struct mlist *mlp, struct tdesc *tdp,
40 static void print_intrinsic(struct mlist *mlp, struct tdesc *tdp,
42 static void print_forward(struct mlist *mlp, struct tdesc *tdp,
44 static void print_pointer(struct mlist *mlp, struct tdesc *tdp,
46 static void print_array(struct mlist *mlp, struct tdesc *tdp,
48 static void print_function(struct mlist *mlp, struct tdesc *tdp,
50 static void print_union(struct mlist *mlp, struct tdesc *tdp,
52 static void print_enum(struct mlist *mlp, struct tdesc *tdp,
54 static void print_forward(struct mlist *mlp, struct tdesc *tdp,
56 static void print_typeof(struct mlist *mlp, struct tdesc *tdp,
58 static void print_struct(struct mlist *mlp, struct tdesc *tdp,
60 static void print_volatile(struct mlist *mlp, struct tdesc *tdp,
65 genassym_do_intrinsic(struct tdesc *tdp, struct node *np) in genassym_do_intrinsic() argument
70 printf("#define\t%s 0x%x\n", upper, tdp->size); in genassym_do_intrinsic()
78 genassym_do_sou(struct tdesc *tdp, struct node *np) in genassym_do_sou() argument
88 printf("#define\t%s 0x%x\n", upper, tdp->size); in genassym_do_sou()
91 (l = stabs_log2(tdp->size)) != -1) { in genassym_do_sou()
101 for (mlp = tdp->data.members.forw; mlp != NULL; mlp = mlp->next) { in genassym_do_sou()
124 genassym_do_enum(struct tdesc *tdp, struct node *np) in genassym_do_enum() argument
130 for (elp = tdp->data.emem; elp != NULL; elp = elp->next) { in genassym_do_enum()
138 switch_on_type(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in switch_on_type() argument
147 switch (tdp->type) { in switch_on_type()
149 print_intrinsic(mlp, tdp, format, level); in switch_on_type()
152 print_pointer(mlp, tdp, format, level); in switch_on_type()
155 print_array(mlp, tdp, format, level); in switch_on_type()
158 print_function(mlp, tdp, format, level); in switch_on_type()
161 print_union(mlp, tdp, format, level); in switch_on_type()
164 print_enum(mlp, tdp, format, level); in switch_on_type()
167 print_forward(mlp, tdp, format, level); in switch_on_type()
170 print_typeof(mlp, tdp, format, level); in switch_on_type()
173 print_struct(mlp, tdp, format, level); in switch_on_type()
176 print_volatile(mlp, tdp, format, level); in switch_on_type()
189 print_forward(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_forward() argument
196 print_typeof(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_typeof() argument
198 switch_on_type(mlp, tdp->data.tdesc, format, level); in print_typeof()
202 print_volatile(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_volatile() argument
204 switch_on_type(mlp, tdp->data.tdesc, format, level); in print_volatile()
208 print_intrinsic(struct mlist *mlp, struct tdesc *tdp, in print_intrinsic() argument
212 switch (tdp->size) { in print_intrinsic()
246 print_pointer(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_pointer() argument
249 switch (tdp->size) { in print_pointer()
269 print_array(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_array() argument
271 struct ardef *ap = tdp->data.ardef; in print_array()
283 print_function(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_function() argument
285 fprintf(stderr, "function in struct %s\n", tdp->name); in print_function()
290 print_struct(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_struct() argument
299 print_union(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_union() argument
308 print_enum(struct mlist *mlp, struct tdesc *tdp, char *format, int level) in print_enum() argument