1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +00:00

Reverted one of the changes in how function prototypes look, in cc65's assembly output.

This commit is contained in:
Greg King 2015-03-19 06:27:25 -04:00
parent 52f5854813
commit 2842b68a04

View 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:
if (T->A.L == UNSPECIFIED) {
fprintf (F, "[] ");
} else {
fprintf (F, "[%ld] ", T->A.L);
}
/* Recursive call */
PrintType (F, T + 1);
if (T->A.L == UNSPECIFIED) {
fprintf (F, " []");
} else {
fprintf (F, " [%ld]", T->A.L);
}
return;
case T_TYPE_PTR:
fprintf (F, "* ");
/* Recursive call */
PrintType (F, T + 1);
fprintf (F, " *");
return;
case T_TYPE_FUNC:
fprintf (F, "function returning ");