[LIB]: Add missing { in typedef__print

That was preventing the correct printing of anonymous struct typedefs.

Signed-off-by: Davi Arnaut <davi@haxent.com.br>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Davi Arnaut 2007-01-25 10:31:36 -02:00 committed by Arnaldo Carvalho de Melo
parent a4856181a7
commit 4e93019433
1 changed files with 2 additions and 1 deletions

View File

@ -402,12 +402,13 @@ static void typedef__print(const struct tag *tag_self, const struct cu *cu)
case DW_TAG_structure_type: {
const struct type *ctype = tag__type(type);
if (ctype->name != NULL)
if (ctype->name != NULL) {
printf("typedef struct %s %s",
ctype->name, self->name);
return;
}
}
}
printf("typedef %s %s", tag__name(type, cu, bf, sizeof(bf)),
self->name);