DEFINE: Only expand macro functions when the name is followed by '('.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Aug 2021 16:32:31 +0000 (09:32 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Aug 2021 16:32:31 +0000 (09:32 -0700)
commit679339657851a4be1321d63a5a46f4d8a32926a4
tree2676a7b62c3c3edd43f44a9c30e805422146f7c1
parentee1bfc05f5ab73883df26e616019e07a1bfee873
DEFINE: Only expand macro functions when the name is followed by '('.

Frans Houweling reported that PSPP was flagging an error for !EVAL(!len)
when !len was the name of a defined macro.  This was because !len is short
for the !LENGTH macro function.  This commit fixes the problem.
src/language/lexer/macro.c
tests/language/control/define.at