<http://forum.pspad.com/read.php?f=6&i=3023&t=2914>
----------------------------------------------------------------
I just noticed a problem with the Code Explorer and ".c" files.
Basically, when there's a "}" in a char or in a string,
it is interpreted as a closing-block parenthesis.
Reproducing file.c:
=======================================
void main()
{
test1(2);
}
void test1(int a)
{
char s;
s = '}';
if (a > 0) {
printf("Hi");
}
}
void test2(int b)
{
char c;
c = '}';
if (b > 0) {
printf("Hi");
}
}
=======================================
The Code Explorer window looks like:
=======================================
[-] Function
|
|-- main()
|-- test1(int a)
|-- if (a > 0)
|-- test2(int b)
|-- if (b > 0)
=======================================
clearly, there are two bogus entries:
-- if(a > 0)
and
-- if(b > 0)
Can you have a look?
Thanks
--
PSPad freeware editor http://www.pspad.com