if () statement folding seems not to work correctly
Posted: Tue Feb 08, 2005 3:50 pm
Hi Jussij,
It seems that there is a bug related to the folding of the if () statement (programming language: C).
Here is what I did:
I wrote a small stupid program to show the behavior:
I collapsed all and got the following:
Now I inserted another line:
I saved the file. The Zeus view doesn't change but the contents of the file on the disk looked like that:
If I now close Zeus everything between the {} braces of the if statement is gone. The file on the disk looks like above.
It seems the file is only saved correctly if I make changes to the unfolded file.
This is really bad because if I forget to unfold the whole file I lose a lot of code.
Could you please check this.
Thanks Udo
It seems that there is a bug related to the folding of the if () statement (programming language: C).
Here is what I did:
I wrote a small stupid program to show the behavior:
Code: Select all
#include <StdIO.H>
void main (void)
{
int iTest = 0;
printf ("Hello World!\n");
if (iTest)
{
printf ("iTest: %d\n", iTest);
}
}
Code: Select all
#include <StdIO.H>
void main (void)
{ ... }
Code: Select all
#include <StdIO.H>
#include <ConIO.H>
void main (void)
{ ... }
Code: Select all
#include <StdIO.H>
#include <ConIO.H>
void main (void)
{
int iTest = 0;
printf ("Hello World!\n");
if (iTest)
{ ... }
}
It seems the file is only saved correctly if I make changes to the unfolded file.
This is really bad because if I forget to unfold the whole file I lose a lot of code.
Could you please check this.
Thanks Udo