From: Greg King Date: Thu, 19 Mar 2015 10:27:25 +0000 (-0400) Subject: Reverted one of the changes in how function prototypes look, in cc65's assembly output. X-Git-Tag: V2.15~3^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2842b68a04c024c479baacfafa3752bd78f0c675;p=cc65 Reverted one of the changes in how function prototypes look, in cc65's assembly output. --- diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index 8d17d2851..9971a9569 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -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 ");