File: README.c.sgml

package info (click to toggle)
cxref 1.5c-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,504 kB
  • ctags: 1,359
  • sloc: ansic: 16,721; yacc: 1,930; sh: 722; lex: 416; makefile: 345; lisp: 256; python: 80; perl: 78
file content (288 lines) | stat: -rw-r--r-- 5,529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!DOCTYPE LINUXDOC SYSTEM>

<!-- This SGML file generated by cxref. -->
<!-- cxref program (c) Andrew M. Bishop 1995,96,97,98,99. -->

<!--
Cxref: /home/amb/cxref/cxref -O/home/amb/cxref/doc -NREADME -xref -latex2e -html32-src -rtf -sgml README.c
CPP  : gcc -E -C -dD -dI
-->

<article>

<title>Cross reference for README.c of README.
<author>cxref

<sect>File README.c
<bf>RCS Header: /home/amb/cxref/RCS/README.c 1.4 1997/05/26 11:23:40 amb Exp </bf>
<p>

  A comment for the file, RCS header comments are treated specially when first.
<p>

<sect1>Included Files

<p>
 A &num;include comment 
<p>
<itemize>
<item><tt>#include &lt;stdio.h&gt;</tt>
</itemize>
 An alternative &num;include comment. 
<p>
<itemize>
<item><tt>#include &lt;math.h&gt;</tt>
</itemize>

<sect1>Preprocessor definitions

<p>
 A &num;define comment. 
<p>
<tt>#define def1 1</tt><newline>
<p>
 An alternative &num;define comment. 
<p>
<tt>#define def2 2</tt><newline>
<p>
  A &num;define with args
<p>
<tt>#define def3( arg1, arg2 )</tt><newline>
<descrip>
<tag><tt>arg1</tt></tag>
The first arg
<tag><tt>arg2</tt></tag>
The second arg
</descrip>
<p>
 An alternative &num;define with args. 
<p>
<tt>#define def4( arg1, arg2 )</tt><newline>
<descrip>
<tag><tt>arg1</tt></tag>
 The first arg  
<tag><tt>arg2</tt></tag>
 The second arg 
</descrip>

<sect1>Typedef type1

<p>
 An example typedef comment 
<p>
<tt>typedef enum {...} type1</tt><newline>
<itemize>
<item><tt>enum</tt><newline>
<itemize>
<item><tt>{</tt><newline>
<item><tt>one;      </tt> one value <newline>
<item><tt>two;      </tt> another value <newline>
<item><tt>}</tt><newline>
</itemize>
</itemize>

<sect1>Type union bar

<p>
 Nested structs and unions also work. 
<p>
<itemize>
<item><tt>union bar</tt><newline>
<itemize>
<item><tt>{</tt><newline>
<item><tt>char a;      </tt> Each element <newline>
<item><tt>int b;      </tt> of a struct <newline>
<item><tt>int c;      </tt> or a union <newline>
<item><tt>long d;      </tt> can have a comment <newline>
<item><tt>}</tt><newline>
</itemize>
</itemize>

<sect1>Typedef type2

<p>
 Another example typedef comment,   a type that is a struct. 
<p>
<tt>typedef struct {...} type2</tt><newline>
<itemize>
<item><tt>struct</tt><newline>
<itemize>
<item><tt>{</tt><newline>
<item><tt>int a;      </tt> A variable in a struct. <newline>
<item><tt>union bar</tt><newline>
<itemize>
<item><tt>{</tt><newline>
<item><tt>char a;      </tt> Each element <newline>
<item><tt>int b;      </tt> of a struct <newline>
<item><tt>int c;      </tt> or a union <newline>
<item><tt>long d;      </tt> can have a comment <newline>
<item><tt>}</tt><newline>
</itemize>
<item><tt>e;      </tt> Nested structs and unions also work. <newline>
<item><tt>}</tt><newline>
</itemize>
</itemize>

<sect1>Typedef ptype2

<p>
 Another example typedef comment,   a pointer to a struct type. 
<p>
<tt>typedef struct {...}* ptype2</tt><newline>
<descrip>
<tag>See:</tag>
<itemize>
<item>Typedef type2
</itemize>
</descrip>

<sect1>Global Variable var1

<p>
 A leading comment only. 
<p>
<tt>int var1</tt><newline>
<descrip>
<tag>Visible in:</tag>
<itemize>
<item>README.c
</itemize>
<tag>Used in:</tag>
<itemize>
<item>function1()  :  README.c
</itemize>
</descrip>

<sect1>Global Variable var2

<p>
 A leading comment only. 
<p>
<tt>int var2</tt><newline>
<descrip>
<tag>Visible in:</tag>
<itemize>
<item>README.c
</itemize>
</descrip>

<sect1>Global Variable var4

<p>
 A variable for   one thing. 
<p>
<tt>int var4</tt><newline>
<descrip>
<tag>Visible in:</tag>
<itemize>
<item>README.c
</itemize>
<tag>Used in:</tag>
<itemize>
<item>function1()  :  README.c
</itemize>
</descrip>

<sect1>Global Variable var5

<p>
 A variable for   a second thing. 
<p>
<tt>int var5</tt><newline>
<descrip>
<tag>Visible in:</tag>
<itemize>
<item>README.c
</itemize>
</descrip>

<sect1>Global Variable var6

<p>
 A variable for   a third thing. 
<p>
<tt>int var6</tt><newline>
<descrip>
<tag>Visible in:</tag>
<itemize>
<item>README.c
</itemize>
</descrip>

<sect1>Local Variables

<p>
<bf>var3</bf><newline>
 A trailing comment only. 
<p>
<tt>static int var3</tt><newline>
<descrip>
<tag>Used in:</tag>
<itemize>
<item>function1()
</itemize>
</descrip>

<sect1>Global Function function1()

<p>  A function comment (the comments for the args need to be separated by a blank line).
<p>
<tt>int function1 ( int arg1, int arg2 )</tt><newline>
<descrip>
<tag><tt>int function1</tt></tag>
The return value.
<tag><tt>int arg1</tt></tag>
The first argument.
<tag><tt>int arg2</tt></tag>
The second argument.
</descrip>
  Some more comments
<newline>
<newline>
 An internal comment in a function that appears as a
   new paragraph at the end of the comment. 
<p>
<descrip>
<tag>Calls:</tag>
<itemize>
<item>function2()  :  README.c
</itemize>
<tag>Used in:</tag>
<itemize>
<item>function2()  :  README.c
</itemize>
<tag>References Variables:</tag>
<itemize>
<item>var1  :  README.c
<item>var3  :  README.c
<item>var4  :  README.c
</itemize>
</descrip>

<sect1>Global Function function2()

<p> An alternative function comment 
<p>
<tt>int function2 ( int arg1, int arg2, void )</tt><newline>
<descrip>
<tag><tt>int function2</tt></tag>
 Returns a value 
<tag><tt>int arg1</tt></tag>
 The first argument.  
<tag><tt>int arg2</tt></tag>
 The second argument. 
<tag><tt>void</tt></tag>
&nbs;
</descrip>
<descrip>
<tag>Called by:</tag>
<itemize>
<item>function1()  :  README.c
</itemize>
<tag>References Functions:</tag>
<itemize>
<item>function1()  :  README.c
</itemize>
</descrip>

</article>