Page 1 of 1

Problem with Preprocessor Folding

Posted: Wed Sep 08, 2010 11:27 am
by apa
Hi,

I'm using 2.7.0.4375 on W2k and found the following problem

Code: Select all

void test(void)
{
#ifdef SOME_COMPILE_SWITCH
    {
    unsigned var = SOME_MACRO;
#endif
    SomeFunctionCall()
#ifdef SOME_COMPILER_SWITCH
    var = SOME_READ_FROM_HA;
    }
#endif
}
When you fold the 1st ifdef, it is folded until the 2nd endif, instead of the 1st one.
Am I doing sth wrong?
Thx

Re: Problem with Preprocessor Folding

Posted: Wed Sep 08, 2010 12:35 pm
by eranif
It looks like a bug in Scintilla, you might want to post a bug report along with this code snippet to http://www.scintilla.org
Sorry, I can't do more
Eran

Re: Problem with Preprocessor Folding

Posted: Wed Sep 08, 2010 4:25 pm
by apa
done, let's see what happens
Thx

Re: Problem with Preprocessor Folding

Posted: Thu Sep 09, 2010 10:49 am
by apa
Scintilla rejected this, it's not a bug, it behaves as designed:
http://sourceforge.net/tracker/index.p ... p_id=2439