[DWARVES_EMIT]: Add missing newline in cus__emit_type_definitions
At that point we are emitting the definitions for the member types, so we have to print a newline after each. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
d610140e7b
commit
8ebd39d70d
@ -80,7 +80,7 @@ static int cus__emit_enumeration_definitions(struct cus *self, struct tag *tag,
|
|||||||
}
|
}
|
||||||
|
|
||||||
enumeration__fprintf(tag, cu, conf, fp);
|
enumeration__fprintf(tag, cu, conf, fp);
|
||||||
fputs(";", fp);
|
fputs(";\n", fp);
|
||||||
cus__add_definition(self, etype);
|
cus__add_definition(self, etype);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -270,7 +270,6 @@ int cus__emit_type_definitions(struct cus *self, struct cu *cu,
|
|||||||
{
|
{
|
||||||
struct type *ctype = tag__type(tag);
|
struct type *ctype = tag__type(tag);
|
||||||
struct class_member *pos;
|
struct class_member *pos;
|
||||||
int printed = 0;
|
|
||||||
|
|
||||||
if (ctype->definition_emitted)
|
if (ctype->definition_emitted)
|
||||||
return 0;
|
return 0;
|
||||||
@ -285,10 +284,8 @@ int cus__emit_type_definitions(struct cus *self, struct cu *cu,
|
|||||||
|
|
||||||
type__for_each_member(ctype, pos)
|
type__for_each_member(ctype, pos)
|
||||||
if (cus__emit_tag_definitions(self, cu, &pos->tag, fp))
|
if (cus__emit_tag_definitions(self, cu, &pos->tag, fp))
|
||||||
printed = 1;
|
fputc('\n', fp);
|
||||||
|
|
||||||
if (printed)
|
|
||||||
fputc('\n', fp);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user