mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
Reverted one of the changes in how function prototypes look, in cc65's assembly output.
This commit is contained in:
@@ -290,18 +290,18 @@ void PrintType (FILE* F, const Type* T)
|
|||||||
fprintf (F, "union %s", ((SymEntry*) T->A.P)->Name);
|
fprintf (F, "union %s", ((SymEntry*) T->A.P)->Name);
|
||||||
break;
|
break;
|
||||||
case T_TYPE_ARRAY:
|
case T_TYPE_ARRAY:
|
||||||
if (T->A.L == UNSPECIFIED) {
|
|
||||||
fprintf (F, "[] ");
|
|
||||||
} else {
|
|
||||||
fprintf (F, "[%ld] ", T->A.L);
|
|
||||||
}
|
|
||||||
/* Recursive call */
|
/* Recursive call */
|
||||||
PrintType (F, T + 1);
|
PrintType (F, T + 1);
|
||||||
|
if (T->A.L == UNSPECIFIED) {
|
||||||
|
fprintf (F, " []");
|
||||||
|
} else {
|
||||||
|
fprintf (F, " [%ld]", T->A.L);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
case T_TYPE_PTR:
|
case T_TYPE_PTR:
|
||||||
fprintf (F, "* ");
|
|
||||||
/* Recursive call */
|
/* Recursive call */
|
||||||
PrintType (F, T + 1);
|
PrintType (F, T + 1);
|
||||||
|
fprintf (F, " *");
|
||||||
return;
|
return;
|
||||||
case T_TYPE_FUNC:
|
case T_TYPE_FUNC:
|
||||||
fprintf (F, "function returning ");
|
fprintf (F, "function returning ");
|
||||||
|
Reference in New Issue
Block a user