Cross gcc Mailing List Archive

[Prev][Next][Index][Thread]

Re: ident problems using gnu tools



In article <534gad$rlk@halon.vggas.com>, bin@halon.vggas.com says...
>Also, a good compiler will notice that rcsid is static, and not used,
>and give you a warning that you probably don't want to be bothered with.
>Furthermore, such nonsense in a header file simply will not work (#ident
>works fine) and even if it did the memory consumption in the loaded image
>would be impractically high.

In the few projects where I have done this, I chose this approach:-

/* foo.c */

#ifndef INC_FOO_H
#define INC_FOO_H "$Id"
 /* header file contents */
#endif


/* version.c */
#include /* all the header files */
static conct char ver_info[] = 
INC_FOO_H
INC_BAR_H
/* ... */
		;

-- 
James Youngman       VG Gas Analysis Systems |The trouble with the rat-race 
 Before sending advertising material, read   |is, even if you win, you're 
http://www.law.cornell.edu/uscode/47/227.html|still a rat.



Home | Subject Index | Thread Index