diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-10-12 03:06:20 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-10-12 03:06:20 +0000 |
commit | b3c3c3e63df2958dfc3f972abefa8f892d8345d3 (patch) | |
tree | 8aaa6f73989ef8dc84b0cb598aa7540aa4fb3066 /sys/src/cmd/qa | |
parent | 1656782f7919856b6a627a5f15a4209ee853f7f1 (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/qa')
-rw-r--r-- | sys/src/cmd/qa/a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/qa/a.h b/sys/src/cmd/qa/a.h index 24c3a1766..b92263900 100644 --- a/sys/src/cmd/qa/a.h +++ b/sys/src/cmd/qa/a.h @@ -138,7 +138,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 macprag(void); void maclin(void); |