#630 Parsing "define" keyword

open
nobody
Program (402)
5
2008-03-09
2008-03-09
Bert Wesarg
No

currently the function source/macro.c:readCheckMacroString() looks for the "define" keyword and the next character for space or tab, if found it skips "define" and than any of " \n\t". That means the following code has a syntax error (replace _ with space):

---cut---
define
test {
}
---cut---

but this not:
---cut---
define_
test {
}
---cut---

This should be made consistence, either remove the \n from the strspn() call or check also for the \n, I propose the former.

Discussion