diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-16 21:23:25 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-16 21:23:25 (GMT) |
commit | 7be440da1a1789c997092d077d928f8685fa920f (patch) | |
tree | 61e4a44c3b3aa2c72328b4f87b695bb314bfcb91 /Doc/doc | |
parent | 57d51f2f1d6067e61a653d4a640c67b8abc928ef (diff) | |
download | cpython-7be440da1a1789c997092d077d928f8685fa920f.zip cpython-7be440da1a1789c997092d077d928f8685fa920f.tar.gz cpython-7be440da1a1789c997092d077d928f8685fa920f.tar.bz2 |
Document \cfuncdesc, \ctypedesc, and \cvardesc.
Diffstat (limited to 'Doc/doc')
-rw-r--r-- | Doc/doc/doc.tex | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Doc/doc/doc.tex b/Doc/doc/doc.tex index d372dcf..47d6ae2 100644 --- a/Doc/doc/doc.tex +++ b/Doc/doc/doc.tex @@ -294,6 +294,34 @@ distribution, to create or maintain whole documents or sections. specific implementation classes, and will always require the \var{type name} parameter to be provided. + \begin{envdesc}{cfuncdesc}{\p{type}\p{name}\p{args}} + Environment used to described a C function. The \var{type} + should be specified as a \keyword{typedef} name, \code{struct + \var{tag}}, or the name of a primitive type. If it is a pointer + type, the trailing asterisk should not be preceeded by a space. + \var{name} should be the name of the function (or function-like + pre-processor macro), and \var{args} should give the types and + names of the parameters. The names need to be given so they may + be used in the description. + \end{envdesc} + + \begin{envdesc}{ctypedesc}{\op{tag}\p{name}} + Environment used to described a C type. The \var{name} + parameter should be the \keyword{typedef} name. If the type is + defined as a \keyword{struct} without a \keyword{typedef}, + \var{name} should have the form \code{struct \var{tag}}. + \var{name} will be added to the index unless \var{tag} is + provided, in which case \var{tag} will be used instead. + \var{tag} should not be used for a \keyword{typedef} name. + \end{envdesc} + + \begin{envdesc}{cvardesc}{\p{type}\p{name}} + Description of a global C variable. \var{type} should be the + \keyword{typedef} name, \code{struct \var{tag}}, or the name of + a primitive type. If variable has a pointer type, the trailing + asterisk should \emph{not} be preceeded by a space. + \end{envdesc} + \begin{envdesc}{datadesc}{\p{name}} This environment is used to document global data in a module, including both variables and values used as ``defined |