Re: D.i.N.S. v1.0C
Posted: Fri Jul 04, 2008 10:56 am
there were alot of warnings related to variable definitions after actual code had been compiled. Statements like:
would error due to the 'x' variable being declared after a code statement such as 'i += 2;'. This also allowed me to clean up my code to make it look more organized and it assures me that there are no rogue variables laying around.
Also, with the c99 standard, prototypes needed to be placed to link functions in different files. I went through and made functions that didn't need to be used by other files 'static' as well as local variables. This actually cut down the size of my OS by 4-5k alone.
Also, thanks to Chase for adding a sweeeet feature I just noticed due to piranha's post. I didn't know that if someone posts on your thread while you are responding it notifies you. very cool.
Code: Select all
int i = 0;
i += 2;
int x = 0;
Also, with the c99 standard, prototypes needed to be placed to link functions in different files. I went through and made functions that didn't need to be used by other files 'static' as well as local variables. This actually cut down the size of my OS by 4-5k alone.
I'm not sure of what you mean here?inflater wrote: Actually, you could start to sell your OS for money
true, but not many people actually use the strick warnings settings to enforce it though.Yayyak wrote:To me, following the language should be a no-brainer
Thank you.piranha wrote:I'm jealous, your OS actually has potential.
Also, thanks to Chase for adding a sweeeet feature I just noticed due to piranha's post. I didn't know that if someone posts on your thread while you are responding it notifies you. very cool.