diff options
| author | 2025-12-11 20:28:26 +0100 | |
|---|---|---|
| committer | 2025-12-11 20:28:26 +0100 | |
| commit | 8f14da7ea9032f31cb35e43ac7159274c10dc541 (patch) | |
| tree | 92a3760c562544eeb068050e548d88b532a168f4 /io.c | |
| parent | 31f6b60f650a72d7727d386cef160f4baae70f38 (diff) | |
c: accept C99 `[static N]` style array decls, changes to fn quals
Function parameters qualifiers don't matter outside of function
definition. `int (const int)` should be compatible with `int(int)` etc.
So no need to store them in the typedata.
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -261,7 +261,7 @@ pritypeafter(struct wbuf *buf, union type ty, int qual) td = &typedata[ty.dat]; n += bputc(buf, '('); for (int i = 0; i < td->nmemb; ++i) { - n += bfmt(buf, "%tq", td->param[i], tdgetqual(td->quals, i)); + n += bfmt(buf, "%ty", td->param[i]); if (i < td->nmemb - 1 || td->variadic) n += bwriteS(buf, ", "); } |