RCS Header: /home/amb/cxref/RCS/README.c 1.3 1996/11/02 14:43:15 amb Exp
A comment for the file, RCS header comments are treated specially when first.
Included Files
A #include comment
An alternative #include comment.
Preprocessor definitions
A #define comment.
#define def1 1
An alternative #define comment.
#define def2 2
A #define with args
#define def3( arg1, arg2 )
- arg1
- The first arg
- arg2
- The second arg
An alternative #define with args.
#define def4( arg1, arg2 )
- arg1
- The first arg
- arg2
- The second arg
An example typedef comment
typedef enum {...} type1
Nested structs and unions also work.
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.
typedef struct {...} type2
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.
typedef struct {...}* ptype2
- See:
-
- Typedef type2
A leading comment only.
int var1
- Visible in:
-
- Used in:
-
A leading comment only.
int var2
- Visible in:
-
A variable for one thing.
int var4
- Visible in:
-
- Used in:
-
A variable for a second thing.
int var5
- Visible in:
-
A variable for a third thing.
int var6
- Visible in:
-
Local Variables
var3
A trailing comment only.
static int var3
- Used in:
-
A function comment (the comments for the args need to be separated by a blank line).
int function1 ( int arg1, int arg2 )
- int function1
- The return value.
- int arg1
- The first argument.
- int arg2
- The second argument.
Some more comment
An internal comment in a function that appears as a new paragraph at the end of the comment.
- Calls:
-
- Used in:
-
- References Variables:
-
An alternative function comment
int function2 ( int arg1, int arg2 )
- int function2
- Returns a value
- int arg1
- The first argument.
- int arg2
- The second argument.
- Called by:
-
- References Functions:
-