RCS Header: /home/amb/CVS/cxref/doc/README.c,v 1.4 1997-05-26 11:23:40 amb Exp
A comment for the file, RCS header comments are treated specially when first.
A #include comment
An alternative #include comment.
A #define comment.
An alternative #define comment.
A #define with args
#define def3( arg1, arg2 )
An alternative #define with args.
#define def4( arg1, arg2 )
An example typedef comment
enum | |
{ | |
one; | one value |
two; | another value |
} |
Nested structs and unions also work.
union bar
union bar | |
{ | |
char a; | Each element |
int b; | of a struct |
int c; | or a union |
long d; | can have a comment |
} |
Another example typedef comment, a type that is a struct.
struct | |
{ | |
int a; | A variable in a struct. |
union bar | |
{ | |
char a; | Each element |
int b; | of a struct |
int c; | or a union |
long d; | can have a comment |
} | |
e; | Nested structs and unions also work. |
} |
Another example typedef comment, a pointer to a struct type.
See: | Typedef type2 |
A leading comment only.
Visible in: | README.c | |
Used in: | function1() | README.c |
A leading comment only.
Visible in: | README.c |
A variable for one thing.
Visible in: | README.c | |
Used in: | function1() | README.c |
A variable for a second thing.
Visible in: | README.c |
A variable for a third thing.
Visible in: | README.c |
A trailing comment only.
Used in: | function1() |
A function comment (the comments for the args need to be separated by a blank line).
int function1 ( int arg1, int arg2 )
Some more comments
This comment is only visible in the HTML output, and can contain HTML markup.
An internal comment in a function that appears as a
new paragraph at the end of the comment.
Calls: | function2() | README.c |
Used in: | function2() | README.c |
References Variables: | var1 | README.c |
var3 | README.c | |
var4 | README.c |
An alternative function comment
int function2 ( int arg1, int arg2, void )
Called by: | function1() | README.c |
References Functions: | function1() | README.c |