[PATCH 5/7] scanner: don't print new line when no descriptions are provided

y y
Thu Feb 9 09:27:51 PST 2012


From: Tiago Vignatti <tiago.vignatti at intel.com>

Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 src/scanner.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/scanner.c b/src/scanner.c
index 22596f8..5043cc1 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -673,8 +673,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;
-- 
1.7.5.4



More information about the wayland-devel mailing list