參考資料:
http://www.network-theory.co.uk/docs/cvsmanual/Usingkeywords.html
SCCS is another popular revision control system. It has a command, what , which is very similar to ident and used for the same purpose. Many sites without RCS have SCCS. Since what looks for the character sequence @(#) it is easy to include keywords that are detected by either command. Simply prefix the keyword with the magic SCCS phrase, like this:
static char *id="@(#) $Id: ab.c,v 1.5 1993/10/19
14:57:32 ceder Exp $";
|
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/cpp/Other-Directives.html
The `#ident' directive takes one argument, a string constant. On some systems, that string constant is copied into a special segment of the object file. On other systems, the directive is ignored. The `#sccs' directive is a synonym for `#ident'.
These directives are not part of the C standard, but they are not official GNU extensions either. What historical information we have been able to find, suggests they originated with System V.
The null directiveconsists of a `#' followed by a newline, with only whitespace (including comments) in between. A null directive is understood as a preprocessing directive but has no effect on the preprocessor output. The primary significance of the existence of the null directive is that an input line consisting of just a `#' will produce no output, rather than a line of output containing just a `#'. Supposedly some old C programs contain such lines.
|
http://msdn.microsoft.com/en-us/library/bb531376%28v=vs.90%29.aspx
#ident ignored; see documentation for #pragma comment(exestr, 'string') |