summaryrefslogtreecommitdiff
path: root/sys/src/cmd/va/a.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-10-12 03:06:20 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-10-12 03:06:20 +0000
commitb3c3c3e63df2958dfc3f972abefa8f892d8345d3 (patch)
tree8aaa6f73989ef8dc84b0cb598aa7540aa4fb3066 /sys/src/cmd/va/a.h
parent1656782f7919856b6a627a5f15a4209ee853f7f1 (diff)
cc: do not expand function-like macros for non-function invocations
It is a bit of a annoyance that kenc will try to expand function like macros on any symbol with the same name and then complain when it doesnt see the '(' in the invocation. test case below: void foo(int) { } struct Bar { int baz; /* <- should not conflict */ }; void main(void) { baz(123); }
Diffstat (limited to 'sys/src/cmd/va/a.h')
-rw-r--r--sys/src/cmd/va/a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/va/a.h b/sys/src/cmd/va/a.h
index 63bec8038..1c2b7c223 100644
--- a/sys/src/cmd/va/a.h
+++ b/sys/src/cmd/va/a.h
@@ -136,7 +136,7 @@ Sym* getsym(void);
void domacro(void);
void macund(void);
void macdef(void);
-void macexpand(Sym*, char*, int);
+int macexpand(Sym*, char*, int);
void macinc(void);
void maclin(void);
void macprag(void);