Re: C is too old? opinions?
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Tue, 25 Sep 2007 16:49:08 -0700
pete <pfiland@xxxxxxxxxxxxxx> writes:
I like the trailing underscore, because I think that the
header guards should have a unique format that is not
likely to be accidentally written in a non header guard macro.
When I had a file named sort.h, I tried a header guard H_SORT,
but there was a problem because the program also had macros like
and of course: H_SORT
I kept my H_SORT macro for heapsort,
and changed some other things instead.
At this current time, I'm using H_filename_H.
Presumably the "filename" portion consists only of letters, digits,
and underscores (i.e., you strip the trailing ".h").
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
- Prev by Date: Re: The usage of %p in C
- Next by Date: Re: how #define a main() function and call our own main function?
- Previous by thread: Re: C is too old? opinions?
- Next by thread: Re: C is too old? opinions?