Improve handling of comments in preprocessor declaration Cleaning code Improve documentation
Cheers Yuval
An updated source
Committed.
There is some code in here that causes a warning from GCC because the order of evaluation may be wrong since && is higher priority than ||. Braces should be used to ensure intended behaviour.
if (((sc.state & 0x10) == 0) && keywords2.InList(s) || keywords3.InList(s)) {
I have changed this to the equivalent
if ((((sc.state & 0x10) == 0) && keywords2.InList(s)) || keywords3.InList(s)) {
even though this may not be the intent.
Log in to post a comment.
An updated source
Committed.
There is some code in here that causes a warning from GCC because the order of evaluation may be wrong since && is higher priority than ||. Braces should be used to ensure intended behaviour.
if (((sc.state & 0x10) == 0) && keywords2.InList(s) || keywords3.InList(s)) {
I have changed this to the equivalent
if ((((sc.state & 0x10) == 0) && keywords2.InList(s)) || keywords3.InList(s)) {
even though this may not be the intent.