1 <!DOCTYPE LINUXDOC SYSTEM
>
3 <!-- This SGML file generated by cxref. -->
4 <!-- cxref program (c) Andrew M. Bishop 1995,96,97,98,99. -->
7 Cxref: /home/amb/cxref/cxref -O/home/amb/cxref/doc -NREADME -xref -latex2e -html32-src -rtf -sgml README.c
8 CPP : /home/amb/cxref/cpp/cxref-cpp -cxref-cpp-defines /home/amb/cxref/cpp/cxref-cpp.defines -C -dD -dI
13 <title>Cross reference for README.c of README.
17 <bf>RCS Header: /home/amb/cxref/RCS/README.c
1.4 1997/
05/
26 11:
23:
40 amb Exp
</bf>
20 A comment for the file, RCS header comments are treated specially when first.
26 A
#include comment
29 <item><tt>#include
<stdio.h
></tt>
31 An alternative
#include comment.
34 <item><tt>#include
<math.h
></tt>
37 <sect1>Preprocessor definitions
40 A
#define comment.
42 <tt>#define def1
1</tt><newline>
44 An alternative
#define comment.
46 <tt>#define def2
2</tt><newline>
48 A
#define with args
50 <tt>#define def3( arg1, arg2 )
</tt><newline>
52 <tag><tt>arg1
</tt></tag>
54 <tag><tt>arg2
</tt></tag>
58 An alternative
#define with args.
60 <tt>#define def4( arg1, arg2 )
</tt><newline>
62 <tag><tt>arg1
</tt></tag>
64 <tag><tt>arg2
</tt></tag>
71 An example typedef comment
73 <tt>typedef enum {...} type1
</tt><newline>
75 <item><tt>enum
</tt><newline>
77 <item><tt>{
</tt><newline>
78 <item><tt>one;
</tt> one value
<newline>
79 <item><tt>two;
</tt> another value
<newline>
80 <item><tt>}
</tt><newline>
87 Nested structs and unions also work.
90 <item><tt>union bar
</tt><newline>
92 <item><tt>{
</tt><newline>
93 <item><tt>char a;
</tt> Each element
<newline>
94 <item><tt>int b;
</tt> of a struct
<newline>
95 <item><tt>int c;
</tt> or a union
<newline>
96 <item><tt>long d;
</tt> can have a comment
<newline>
97 <item><tt>}
</tt><newline>
104 Another example typedef comment, a type that is a struct.
106 <tt>typedef struct {...} type2
</tt><newline>
108 <item><tt>struct
</tt><newline>
110 <item><tt>{
</tt><newline>
111 <item><tt>int a;
</tt> A variable in a struct.
<newline>
112 <item><tt>union bar
</tt><newline>
114 <item><tt>{
</tt><newline>
115 <item><tt>char a;
</tt> Each element
<newline>
116 <item><tt>int b;
</tt> of a struct
<newline>
117 <item><tt>int c;
</tt> or a union
<newline>
118 <item><tt>long d;
</tt> can have a comment
<newline>
119 <item><tt>}
</tt><newline>
121 <item><tt>e;
</tt> Nested structs and unions also work.
<newline>
122 <item><tt>}
</tt><newline>
126 <sect1>Typedef ptype2
129 Another example typedef comment, a pointer to a struct type.
131 <tt>typedef struct {...}* ptype2
</tt><newline>
139 <sect1>Global Variable var1
142 A leading comment only.
144 <tt>int var1
</tt><newline>
146 <tag>Visible in:
</tag>
152 <item>function1() : README.c
156 <sect1>Global Variable var2
159 A leading comment only.
161 <tt>int var2
</tt><newline>
163 <tag>Visible in:
</tag>
169 <sect1>Global Variable var4
172 A variable for one thing.
174 <tt>int var4
</tt><newline>
176 <tag>Visible in:
</tag>
182 <item>function1() : README.c
186 <sect1>Global Variable var5
189 A variable for a second thing.
191 <tt>int var5
</tt><newline>
193 <tag>Visible in:
</tag>
199 <sect1>Global Variable var6
202 A variable for a third thing.
204 <tt>int var6
</tt><newline>
206 <tag>Visible in:
</tag>
212 <sect1>Local Variables
215 <bf>var3
</bf><newline>
216 A trailing comment only.
218 <tt>static int var3
</tt><newline>
226 <sect1>Global Function function1()
228 <p> A function comment (the comments for the args need to be separated by a blank line).
230 <tt>int function1 ( int arg1, int arg2 )
</tt><newline>
232 <tag><tt>int function1
</tt></tag>
234 <tag><tt>int arg1
</tt></tag>
236 <tag><tt>int arg2
</tt></tag>
242 An internal comment in a function that appears as a
243 new paragraph at the end of the comment.
248 <item>function2() : README.c
252 <item>function2() : README.c
254 <tag>References Variables:
</tag>
256 <item>var1 : README.c
257 <item>var3 : README.c
258 <item>var4 : README.c
262 <sect1>Global Function function2()
264 <p> An alternative function comment
266 <tt>int function2 ( int arg1, int arg2, void )
</tt><newline>
268 <tag><tt>int function2
</tt></tag>
270 <tag><tt>int arg1
</tt></tag>
272 <tag><tt>int arg2
</tt></tag>
274 <tag><tt>void
</tt></tag>
278 <tag>Called by:
</tag>
280 <item>function1() : README.c
282 <tag>References Functions:
</tag>
284 <item>function1() : README.c