1 % This LaTeX file generated by cxref
2 % cxref program (c) Andrew M. Bishop 1995,96,97,98,99.
4 % Cxref: /home/amb/cxref/cxref -O/home/amb/cxref/doc -NREADME -xref -latex2e -html32-src -rtf -sgml README.c
5 % CPP : /home/amb/cxref/cpp/cxref-cpp -cxref-cpp-defines /home/amb/cxref/cpp/cxref-cpp.defines -C -dD -dI
7 \markboth{File README.c
}{File README.c
}
8 \section{File README.c
}
11 {\bf RCS Header: /home/amb/cxref/RCS/README.c
1.4 1997/
05/
26 11:
23:
40 amb Exp
}
15 A comment for the file, RCS header comments are treated specially when first.
18 \subsection*
{Included Files
}
24 {\stt \#include <stdio.h>
} &\\
28 An alternative \#include comment.
32 {\stt \#include <math.h>
} &\\
36 \subsection*
{Preprocessor definitions
}
41 {\stt \#define def1
1}
44 An alternative \#define comment.
47 {\stt \#define def2
2}
53 {\stt \#define def3( arg1, arg2 )
}
57 \cxrefargitem{arg1
} The first arg
58 \cxrefargitem{arg2
} The second arg
62 An alternative \#define with args.
65 {\stt \#define def4( arg1, arg2 )
}
69 \cxrefargitem{arg1
} The first arg
70 \cxrefargitem{arg2
} The second arg
74 \subsection{Type definitions
}
77 \subsubsection{Typedef type1
}
78 \label{type_type1_README.c
}
80 An example typedef comment
83 {\stt typedef enum \
{...\
} type1
}
87 \hspace*
{0.0in
}{\stt enum
} &\\
88 \hspace*
{0.1in
}{\stt \
{} &\\
89 \hspace*
{0.2in
}{\stt one;
} & one value \\
90 \hspace*
{0.2in
}{\stt two;
} & another value \\
91 \hspace*
{0.1in
}{\stt \
}} &\\
95 \subsubsection{Type union bar
}
96 \label{type_union_bar_README.c
}
98 Nested structs and unions also work.
103 \hspace*
{0.0in
}{\stt union bar
} &\\
104 \hspace*
{0.1in
}{\stt \
{} &\\
105 \hspace*
{0.2in
}{\stt char a;
} & Each element \\
106 \hspace*
{0.2in
}{\stt int b;
} & of a struct \\
107 \hspace*
{0.2in
}{\stt int c;
} & or a union \\
108 \cxreftabbreak{cxreftabiia
}
109 \hspace*
{0.2in
}{\stt long d;
} & can have a comment \\
110 \hspace*
{0.1in
}{\stt \
}} &\\
114 \subsubsection{Typedef type2
}
115 \label{type_type2_README.c
}
117 Another example typedef comment, a type that is a struct.
120 {\stt typedef struct \
{...\
} type2
}
124 \hspace*
{0.0in
}{\stt struct
} &\\
125 \hspace*
{0.1in
}{\stt \
{} &\\
126 \hspace*
{0.2in
}{\stt int a;
} & A variable in a struct. \\
127 \hspace*
{0.2in
}{\stt union bar
} &\\
128 \hspace*
{0.3in
}{\stt \
{} &\\
129 \hspace*
{0.4in
}{\stt char a;
} & Each element \\
130 \cxreftabbreak{cxreftabiia
}
131 \hspace*
{0.4in
}{\stt int b;
} & of a struct \\
132 \hspace*
{0.4in
}{\stt int c;
} & or a union \\
133 \hspace*
{0.4in
}{\stt long d;
} & can have a comment \\
134 \hspace*
{0.3in
}{\stt \
}} &\\
135 \hspace*
{0.3in
}{\stt e;
} & Nested structs and unions also work. \\
136 \hspace*
{0.1in
}{\stt \
}} &\\
140 \subsubsection{Typedef ptype2
}
141 \label{type_ptype2_README.c
}
143 Another example typedef comment, a pointer to a struct type.
146 {\stt typedef struct \
{...\
}* ptype2
}
150 See:& Typedef type2 &
\cxreftype{type2
}{README.c
}\\
154 \subsection{Variables
}
157 \subsubsection{Variable var1
}
158 \label{var_var1_README.c
}
160 A leading comment only.
167 Visible in:\ & README.c & \ &
\cxreffile{README.c
}\\
168 Used in:\ & function1() & README.c &
\cxreffunc{function1
}{README.c
}\\
172 \subsubsection{Variable var2
}
173 \label{var_var2_README.c
}
175 A leading comment only.
182 Visible in:\ & README.c & \ &
\cxreffile{README.c
}\\
186 \subsubsection{Variable var4
}
187 \label{var_var4_README.c
}
189 A variable for one thing.
196 Visible in:\ & README.c & \ &
\cxreffile{README.c
}\\
197 Used in:\ & function1() & README.c &
\cxreffunc{function1
}{README.c
}\\
201 \subsubsection{Variable var5
}
202 \label{var_var5_README.c
}
204 A variable for a second thing.
211 Visible in:\ & README.c & \ &
\cxreffile{README.c
}\\
215 \subsubsection{Variable var6
}
216 \label{var_var6_README.c
}
218 A variable for a third thing.
225 Visible in:\ & README.c & \ &
\cxreffile{README.c
}\\
229 \subsubsection{Local Variables
}
232 \label{var_var3_README.c
}
234 A trailing comment only.
237 {\stt static int var3
}
241 Used in:\ & function1() & \ &
\cxreffunc{function1
}{README.c
}\\
245 \subsection{Functions
}
248 \subsubsection{Global Function function1()
}
249 \label{func_function1_README.c
}
251 A function comment (the comments for the args need to be separated by a blank line).
254 {\stt int function1 ( int arg1, int arg2 )
}
258 \cxrefargitem{int function1
} The return value.
259 \cxrefargitem{int arg1
} The first argument.
260 \cxrefargitem{int arg2
} The second argument.
266 This comment is only visible in the
\LaTeX output, and can contain
\LaTeX markup.
268 An internal comment in a function that appears as a
269 new paragraph at the end of the comment.
273 Calls:\ & function2() & README.c &
\cxreffunc{function2
}{README.c
}\\
274 Used in:\ & function2() & README.c &
\cxreffunc{function2
}{README.c
}\\
275 Refs Var:\ & var1 & README.c &
\cxrefvar{var1
}{README.c
}\\
276 \ & var3 & README.c &
\cxrefvar{var3
}{README.c
}\\
277 \cxreftabbreak{cxreftabiii
}
278 \ & var4 & README.c &
\cxrefvar{var4
}{README.c
}\\
282 \subsubsection{Global Function function2()
}
283 \label{func_function2_README.c
}
285 An alternative function comment
288 {\stt int function2 ( int arg1, int arg2, void )
}
292 \cxrefargitem{int function2
} Returns a value
293 \cxrefargitem{int arg1
} The first argument.
294 \cxrefargitem{int arg2
} The second argument.
295 \cxrefargitem{void
} \
300 Called by:\ & function1() & README.c &
\cxreffunc{function1
}{README.c
}\\
301 Refs Func:\ & function1() & README.c &
\cxreffunc{function1
}{README.c
}\\