aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-01-25 12:58:22 +0100
committerlemon <lsof@mailbox.org>2026-01-25 12:58:22 +0100
commitf9f0789e58be01b7169712d64af9443a35392fbf (patch)
tree438d7cade1a62d33db4e0aef85cd1c235527ade2 /io.c
parentca983b5700f894c653758a4f93a758b93d025621 (diff)
c: support at least parsing C99 _Complex types
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index d98eacd..0211320 100644
--- a/io.c
+++ b/io.c
@@ -210,6 +210,9 @@ pritypebefore(struct wbuf *buf, union type ty, int qual)
case TYFLOAT: s = "float"; goto Prim;
case TYDOUBLE: s = "double"; goto Prim;
case TYLDOUBLE:s = "long double"; goto Prim;
+ case TYCOMPLEXF:s = "float complex"; goto Prim;
+ case TYCOMPLEX: s = "double complex"; goto Prim;
+ case TYCOMPLEXL:s = "long double complex"; goto Prim;
case TYPTR:
chld = typechild(ty);
n = pritypebefore(buf, chld, ty.flag & TFCHLDQUAL);