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 ");