Hash directive in #if 0 block resets ignore of code in #if 0
Brought to you by:
dhiebert
If you have a directive inside of an #if 0/#endif block, code after the directive is not ignored.
In particular, I saw this with a #include.
In the following example, the result from "ctags test.c" does not include functionThatIsIgnored (expected), but does include functionThatIsNotIgnored (unexpected).
#if 0
void
functionThatIsIgnored()
{
}
#include "something.h"
void
functionThatIsNotIgnored()
{
}
#endif
I've attached a modified version of get.c (from version 5.8) where line 364 is changed so that the existing ignore value is maintained.
364c364
< boolean ignore = FALSE;
---
> boolean ignore = isIgnore();
Source code modified to fix the problem