]> git.sur5r.net Git - cc65/commitdiff
Reverted one of the changes in how function prototypes look, in cc65's assembly output.
authorGreg King <gregdk@users.sf.net>
Thu, 19 Mar 2015 10:27:25 +0000 (06:27 -0400)
committerGreg King <gregdk@users.sf.net>
Thu, 19 Mar 2015 10:27:25 +0000 (06:27 -0400)
src/cc65/datatype.c

index 8d17d28510db2511b1d4240d3bdb019a442a8480..9971a9569e457f76335fae2a846fd5826e6965a4 100644 (file)
@@ -290,18 +290,18 @@ void PrintType (FILE* F, const Type* T)
                 fprintf (F, "union %s", ((SymEntry*) T->A.P)->Name);
                 break;
             case T_TYPE_ARRAY:
+                /* Recursive call */
+                PrintType (F, T + 1);
                 if (T->A.L == UNSPECIFIED) {
-                    fprintf (F, "[] ");
+                    fprintf (F, " []");
                 } else {
-                    fprintf (F, "[%ld] ", T->A.L);
+                    fprintf (F, " [%ld]", T->A.L);
                 }
-                /* Recursive call */
-                PrintType (F, T + 1);
                 return;
             case T_TYPE_PTR:
-                fprintf (F, "* ");
                 /* Recursive call */
                 PrintType (F, T + 1);
+                fprintf (F, " *");
                 return;
             case T_TYPE_FUNC:
                 fprintf (F, "function returning ");