ref: 8a71476cce84016b86892eeae18341232a5f612c
parent: da8a014ccd89acf7d31ea34af8016de61126a446
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Aug 24 17:50:25 EDT 2015
Make structs more similars to other declarations Moving the trailing '(' to the next line makes that structs follow the same rule that other types follow.
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -253,7 +253,7 @@
emitletter(tp);
if ((tag = tp->tag->name) != NULL)
printf("\t%s", tag);
- puts("\t(");
+ puts("\n(");
n = tp->n.elem;
for (sp = tp->p.fields; n-- > 0; ++sp)
emit(ODECL, *sp);
--- a/cc1/tests/test002.c
+++ b/cc1/tests/test002.c
@@ -7,7 +7,8 @@
G6 F1 main
{
-
-S2 S (
+S2 S
+(
M5 I i
)
A2 S2 y