1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
3 <!-- This HTML 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
14 <TITLE>Cross reference for README.c of README.
</TITLE>
19 <h1><a name=
"file" href=
"README.c.src.html">File README.c
</a></h1>
20 <b>RCS Header: /home/amb/cxref/RCS/README.c
1.4 1997/
05/
26 11:
23:
40 amb Exp
</b>
23 A comment for the file, RCS header comments are treated specially when first.
27 <h2>Included Files
</h2>
32 <li><tt>#include
<stdio.h
></tt>
34 An alternative #include comment.
37 <li><tt>#include
<math.h
></tt>
41 <h2>Preprocessor definitions
</h2>
45 <tt><a href=
"README.c.src.html#line17">#define def1
</a> 1</tt><br>
47 An alternative #define comment.
49 <tt><a href=
"README.c.src.html#line20">#define def2
</a> 2</tt><br>
53 <tt><a href=
"README.c.src.html#line31">#define def3
</a>( arg1, arg2 )
</tt><br>
61 An alternative #define with args.
63 <tt><a href=
"README.c.src.html#line36">#define def4
</a>( arg1, arg2 )
</tt><br>
72 <h2><a name=
"type-type1">Typedef type1
</a></h2>
73 An example typedef comment
75 <tt><a href=
"README.c.src.html#line43">typedef enum {...} type1
</a></tt><br>
77 <tr><td><tt>enum
</tt><td>
78 <tr><td> <tt>{
</tt><td>
79 <tr><td> <tt>one;
</tt><td> one value
80 <tr><td> <tt>two;
</tt><td> another value
81 <tr><td> <tt>}
</tt><td>
85 <h2><a name=
"type-union-bar">Type union bar
</a></h2>
86 Nested structs and unions also work.
88 <tt><a href=
"README.c.src.html#line0">union bar
</a></tt><br>
90 <tr><td><tt>union bar
</tt><td>
91 <tr><td> <tt>{
</tt><td>
92 <tr><td> <tt>char a;
</tt><td> Each element
93 <tr><td> <tt>int b;
</tt><td> of a struct
94 <tr><td> <tt>int c;
</tt><td> or a union
95 <tr><td> <tt>long d;
</tt><td> can have a comment
96 <tr><td> <tt>}
</tt><td>
100 <h2><a name=
"type-type2">Typedef type2
</a></h2>
101 Another example typedef comment, a type that is a struct.
103 <tt><a href=
"README.c.src.html#line52">typedef struct {...} type2
</a></tt><br>
105 <tr><td><tt>struct
</tt><td>
106 <tr><td> <tt>{
</tt><td>
107 <tr><td> <tt>int a;
</tt><td> A variable in a struct.
108 <tr><td> <tt>union bar
</tt><td>
109 <tr><td> <tt>{
</tt><td>
110 <tr><td> <tt>char a;
</tt><td> Each element
111 <tr><td> <tt>int b;
</tt><td> of a struct
112 <tr><td> <tt>int c;
</tt><td> or a union
113 <tr><td> <tt>long d;
</tt><td> can have a comment
114 <tr><td> <tt>}
</tt><td>
115 <tr><td> <tt>e;
</tt><td> Nested structs and unions also work.
116 <tr><td> <tt>}
</tt><td>
120 <h2><a name=
"type-ptype2">Typedef ptype2
</a></h2>
121 Another example typedef comment, a pointer to a struct type.
123 <tt><a href=
"README.c.src.html#line52">typedef struct {...}* ptype2
</a></tt><br>
127 <li><a href=
"#type-type2">Typedef type2
</a>
132 <h2><a name=
"var-var1">Global Variable var1
</a></h2>
133 A leading comment only.
135 <tt><a href=
"README.c.src.html#line68">int var1
</a></tt><br>
138 <td> <td><a href=
"README.c.html#file">README.c
</a>
140 <td><a href=
"README.c.html#func-function1">function1()
</a><td><a href=
"README.c.html#func-function1">README.c
</a>
145 <h2><a name=
"var-var2">Global Variable var2
</a></h2>
146 A leading comment only.
148 <tt><a href=
"README.c.src.html#line68">int var2
</a></tt><br>
151 <td> <td><a href=
"README.c.html#file">README.c
</a>
156 <h2><a name=
"var-var4">Global Variable var4
</a></h2>
157 A variable for one thing.
159 <tt><a href=
"README.c.src.html#line75">int var4
</a></tt><br>
162 <td> <td><a href=
"README.c.html#file">README.c
</a>
164 <td><a href=
"README.c.html#func-function1">function1()
</a><td><a href=
"README.c.html#func-function1">README.c
</a>
169 <h2><a name=
"var-var5">Global Variable var5
</a></h2>
170 A variable for a second thing.
172 <tt><a href=
"README.c.src.html#line76">int var5
</a></tt><br>
175 <td> <td><a href=
"README.c.html#file">README.c
</a>
180 <h2><a name=
"var-var6">Global Variable var6
</a></h2>
181 A variable for a third thing.
183 <tt><a href=
"README.c.src.html#line77">int var6
</a></tt><br>
186 <td> <td><a href=
"README.c.html#file">README.c
</a>
191 <h2>Local Variables
</h2>
193 <b><a name=
"var-var3">var3
</a></b><br>
194 A trailing comment only.
196 <tt><a href=
"README.c.src.html#line71">static int var3
</a></tt><br>
199 <td><a href=
"#func-function1">function1()
</a>
204 <h2><a name=
"func-function1">Global Function function1()
</a></h2>
205 A function comment (the comments for the args need to be separated by a blank line).
207 <tt><a href=
"README.c.src.html#line99">int function1 ( int arg1, int arg2 )
</a></tt><br>
209 <dt><tt>int function1
</tt>
210 <dd>The return value.
211 <dt><tt>int arg1
</tt>
212 <dd>The first argument.
213 <dt><tt>int arg2
</tt>
214 <dd>The second argument.
218 This comment is only visible in the HTML output, and can contain HTML markup.
220 An internal comment in a function that appears as a
221 new paragraph at the end of the comment.
225 <td><a href=
"README.c.html#func-function2">function2()
</a><td><a href=
"README.c.html#func-function2">README.c
</a>
227 <td><a href=
"README.c.html#func-function2">function2()
</a><td><a href=
"README.c.html#func-function2">README.c
</a>
228 <tr><td>References Variables:
229 <td><a href=
"README.c.html#var-var1">var1
</a><td><a href=
"README.c.html#var-var1">README.c
</a>
231 <td><a href=
"README.c.html#var-var3">var3
</a><td><a href=
"README.c.html#var-var3">README.c
</a>
233 <td><a href=
"README.c.html#var-var4">var4
</a><td><a href=
"README.c.html#var-var4">README.c
</a>
238 <h2><a name=
"func-function2">Global Function function2()
</a></h2>
239 An alternative function comment
241 <tt><a href=
"README.c.src.html#line112">int function2 ( int arg1, int arg2, void )
</a></tt><br>
243 <dt><tt>int function2
</tt>
245 <dt><tt>int arg1
</tt>
246 <dd> The first argument.
247 <dt><tt>int arg2
</tt>
248 <dd> The second argument.
254 <td><a href=
"README.c.html#func-function1">function1()
</a><td><a href=
"README.c.html#func-function1">README.c
</a>
255 <tr><td>References Functions:
256 <td><a href=
"README.c.html#func-function1">function1()
</a><td><a href=
"README.c.html#func-function1">README.c
</a>