Pelles C forum

Pelles C => Bug reports => Topic started by: skirby on April 15, 2007, 05:31:45 PM

Title: POIDE save current file when using structure
Post by: skirby on April 15, 2007, 05:31:45 PM
Hello Pelle,

There is a small bug when I use structure.
In this small example, simply type x and when you type the dot . POIDE save modifications in my file  :o (the star near the filename in tab disappeared)
Is it normal?

There is the same behavior when I type ->
My current file is automatically saved.

Code: [Select]
struct {
  int c;
  char s;
} x, *y;

int main(void) {
  x.c = 0;
  x.s = 'C';

  y->c = 0;

  return 0;
}

Can you reproduce this behavior?
If it is a bug, could you correct it in the next release ?

Thanks and have a nice day.
Title: Re: POIDE save current file when using structure
Post by: Pelle on April 16, 2007, 05:47:27 PM
Perfectly normal behaviour if option 'Save files without prompting before build' is checked...
Title: Re: POIDE save current file when using structure
Post by: frankie on April 16, 2007, 05:59:01 PM
Pelle,
I was considering that he have not build yet the project when you save the file.
In this case if the text wrote is not correct, or if he changes his mind in the while, the original file is overwritten anyway, and unless the undo permits to go back to the origin you have lost the previous version.
Title: Re: POIDE save current file when using structure
Post by: skirby on April 16, 2007, 11:56:55 PM
I also agree with frankie.

I haven't built my project.
More, I don't want to save my files but I just want to see structure variables.