commit 50be35f6a84fe984a4df32a5c025802e3e06a71b
parent 32ef4c614aeb105c91f2a623522d9b16f6d230bb
Author: erai <erai@omiltem.net>
Date: Sat, 16 Mar 2024 11:39:43 -0400
Add line context to prototype
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cc1.c b/cc1.c
@@ -3304,6 +3304,9 @@ prototype(c: *compiler, n: *node): *type {
return 0:*type;
}
+ c.lineno = n.lineno;
+ c.colno = 0;
+
kind = n.kind;
if (kind == N_IDENT) {
if (!strcmp(n.s, "void")) {
diff --git a/cc2 b/cc2
Binary files differ.