We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, Somebody here insists that all the program's definitions will be stored in one large header file that all C modules include, rather that keeping the declarations distributed among specific header files. That sounds pretty crappy to me - but how bad it is really? will it have a very negative impact on build time?
"Today, who cares if a build takes 3 or 5 seconds."
True - I don't think build time is the big issue here.
I think the issues of modularity, etc, are for more important...
Hi Andy and Per,
Many thanks to your help.
There are still a lot of things that I need to learn, hope one day I can become a better programmer.
I didn't know the difference between enum and #define. So I did some study. Though it might be some kind of common sense for most people here, I think it is not bad to put an URL about "Enum Vs #define" here.
http://www.keil.com/forum/docs/thread7149.asp
Sorry for any confusion, but I normally always use enum unless the intended target is the preprocessor (conditional compilation), or I declare a non-integer constant. enum can't be used for strings or floating point...