[CLASSES]: Handle typedef opaque types
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
baadeeb7c0
commit
6497bcae21
|
@ -2111,8 +2111,12 @@ static int cus__emit_typedef_definitions(struct cus *self, struct class *class)
|
||||||
puts(";");
|
puts(";");
|
||||||
goto out;
|
goto out;
|
||||||
case DW_TAG_structure_type:
|
case DW_TAG_structure_type:
|
||||||
cus__emit_struct_definitions(self, type,
|
if (type->name == NULL)
|
||||||
"typedef ", class->name);
|
cus__emit_struct_definitions(self, type,
|
||||||
|
"typedef ", class->name);
|
||||||
|
else
|
||||||
|
printf("typedef struct %s %s;\n",
|
||||||
|
type->name, class->name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
printf("typedef %s %s;\n", class__name(type, bf, sizeof(bf)),
|
printf("typedef %s %s;\n", class__name(type, bf, sizeof(bf)),
|
||||||
|
|
Loading…
Reference in New Issue