Timeline for .c FIle Dedicated to Data
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 13, 2013 at 8:21 | comment | added | Bart van Ingen Schenau | @haylem: I have reverted my downvote (and turned it into an upvote). The fact that it was based on a part of the answer that does not directly relate to the question is not a reason for me to condone bad advise. I have deleted my previous comment to avoid confusion with future readers. | |
| Jun 13, 2013 at 8:15 | history | edited | haylem | CC BY-SA 3.0 | deleted 12 characters in body |
| Jun 13, 2013 at 8:15 | comment | added | haylem | @BartvanIngenSchenau: you -1 on something that has nothing to do with the question, though. But anyways, as I just wrote back to delnan, I stand corrected and will amend my answer. | |
| Jun 13, 2013 at 8:12 | comment | added | haylem | @delnan: I just checked the standard and you are right. I thought only the C++ standard mandated that, but the ISO/IEC 9899 mandes it as well. I stand corrected. Thanks. | |
| Jun 13, 2013 at 1:44 | comment | added | user7043 | No, there is one hard fact in favor of not starting them with underscores (as I mentioned before): Such names are reserved by the standards; a compiler, run time library, standard library module, etc. may use that name. Consider that the collision may only occur in a particular version of a particular tool chain which you don't test your code with but which is used to build your code a year later. It's indeed "just a convention", but an overwhelmingly superior one. | |
| Jun 13, 2013 at 0:39 | comment | added | haylem | @delnan: guards should not start with underscores that's just, lile, you know, your preference (and convention), man :) It's not the most adopted convention, but who cares. Works all the same. I agree on the missing _H though, I had forgotten that, but usually I used names with it indeed. | |
| Jun 13, 2013 at 0:20 | comment | added | user7043 | Include guards should not start with underscores (and once you get rid of those, the trailing underscores look silly). Names starting with double underscores, or a single underscore and a capital letter, are reserved for the implementation. Just use #ifndef MY_MODULE or MY_MODULE_H | |
| Jun 12, 2013 at 22:31 | comment | added | haylem | @TaylorFlores: yes, sorry if that was confusing. | |
| Jun 12, 2013 at 22:31 | vote | accept | tay10r | ||
| Jun 12, 2013 at 22:31 | comment | added | tay10r | I'm using cmake. you're talking about the header file right? | |
| Jun 12, 2013 at 22:11 | history | answered | haylem | CC BY-SA 3.0 |