On a sunny day (Wed, 20 May 2009 21:49:22 GMT) it happened snipped-for-privacy@puntnl.niks (Nico Coesel) wrote in :
I am not sure what you mean here. What I often, if not always, do is use some global vars, namely those vars that are used all over the place so I do not want to pass these to every function.
In the main header file for example int debug_flag; will make that available in all source files, without needing further reference to 'extern' or whatever. In the source files you can use static int something; and it will only be known in those source files. etc.
related thread,
Yes, that would be weird, and it would be weird as it would show there was no communication. But, in your source file you could simply write static ... draw_circle(...) And he could do it in his source file, and no collisions! But that communication thing I referred to is very important, it can make you laugh (or cry), that NASA spacecraft to mars had software that had to check some micro switch on the landing gear to see if it touched ground to know if it could switch off the rocket engine. To bad the spec did not mention the micro switch also was activated when the gear went out.
So gear came out, engine stopped, and it smashed on mars into pieces. So communication, have meetings. discuss what you are doing. Else it is a ticket to disaster.
Well, maybe I have read the wrong books?
here, needed things...
But I do not NEED WxDinges :-)