From 8f14da7ea9032f31cb35e43ac7159274c10dc541 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 11 Dec 2025 20:28:26 +0100 Subject: 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. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index dc4cd5d..c697f0d 100644 --- a/io.c +++ b/io.c @@ -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, ", "); } -- cgit v1.2.3