aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-15 11:16:38 +0100
committerlemon <lsof@mailbox.org>2025-12-15 11:16:38 +0100
commit068aaef0ea684ecf5f891559aa8e1dae03b8428d (patch)
tree07e9685132f22f45bd5d8fe7c66b00e9ed98ad5e /io.c
parentc244d3c1ba501796152c2278a040cf940b660ea6 (diff)
c: support forward-declared enums
This is a common non-standard GNU extension.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 529710b..1661e12 100644
--- a/io.c
+++ b/io.c
@@ -213,7 +213,7 @@ pritypebefore(struct wbuf *buf, union type ty, int qual)
case TYPTR:
chld = typechild(ty);
n = pritypebefore(buf, chld, ty.flag & TFCHLDQUAL);
- //if (chld.t != TYPTR) n += ioputc(buf, ' ');
+ n += bputc(buf, ' ');
if (chld.t == TYARRAY || chld.t == TYFUNC)
n += bputc(buf, '(');
n += bputc(buf, '*');