From 2842b68a04c024c479baacfafa3752bd78f0c675 Mon Sep 17 00:00:00 2001 From: Greg King Date: Thu, 19 Mar 2015 06:27:25 -0400 Subject: [PATCH] Reverted one of the changes in how function prototypes look, in cc65's assembly output. --- src/cc65/datatype.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 "); -- 2.39.5