flat assembler
Message board for the users of flat assembler.

Index > IDE Development > The IDE bug: FASMW trashes modify date [almost SOLVED]

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 804
Location: Russian Federation, Sochi
ProMiNick 22 Dec 2017, 12:15
For now FASMW before compilation trashes modify date for nonmodified files.

Logic is clear: when file opened needed 1 bit flag to store this state. and clear it in case of any input. presave files before compilation only when this flag is set.
But still such flag should be for each opened file, so where that flag shoud be in source? is any unused bit?

Or such fix should be in official release?
As decorative feature availability of Save menuitem should be set according to that flag.

_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.


Last edited by ProMiNick on 22 Dec 2017, 12:30; edited 1 time in total
Post 22 Dec 2017, 12:15
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 22 Dec 2017, 12:27
The status bar already shows the "Modified" flag, it should suffice to determine whether to auto-save the file.
Post 22 Dec 2017, 12:27
View user's profile Send private message Visit poster's website Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 804
Location: Russian Federation, Sochi
ProMiNick 22 Dec 2017, 12:31
Thanks
Post 22 Dec 2017, 12:31
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 22 Dec 2017, 12:57
Turns out it was taking "Modified" flag into account for all the other tabs, but not for the one that was the main file for "Compile". I uploaded a package with a correction.
Post 22 Dec 2017, 12:57
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 22 Dec 2017, 13:50
I did a bit of cleaning up in the code there (updated the package once again). The fasmw's source does in fact deserve overall cleaning up and releasing as a proper 1.0 version instead of staying at 0.9.x forever (I remember NASM used to do something like that). Initially I thought I would release 1.0 with some kind of an internal debugger, but I never really got to it.
Post 22 Dec 2017, 13:50
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.