summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@intel.com>2012-01-24 18:30:13 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-02-09 10:06:18 -0500
commit8f9de83f7b1f9c6bc265fec4aec35eff0e9164a0 (patch)
tree082e5a963d1bdebe5b0639d2fb7197ca0821d2f1
parent899652201f0be57b5dc664c5e4d0eeaf2caf34a7 (diff)
scanner: don't print new line when no descriptions are provided
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
-rw-r--r--src/scanner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c
index f88fb4d..699782f 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -661,8 +661,9 @@ emit_structs(struct wl_list *message_list, struct interface *interface)
if (mdesc) {
printf("\t * ");
desc_dump(mdesc->text, 8);
+ printf("\n");
}
- printf("\n\t */\n");
+ printf("\t */\n");
printf("\tvoid (*%s)(", m->name);
n = strlen(m->name) + 17;