Mercurial > cpython-lru_cache-weakref
diff Doc/texinputs/python.sty @ 23013:d6322983069e legacy-trunk
Additional support for describing C structure members.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 12 Apr 2002 22:48:02 +0000 |
| parents | 3c876ff29a83 |
| children | 530aba3116a4 |
line wrap: on
line diff
--- a/Doc/texinputs/python.sty Fri Apr 12 22:47:18 2002 +0000 +++ b/Doc/texinputs/python.sty Fri Apr 12 22:48:02 2002 +0000 @@ -612,6 +612,17 @@ \fi] }{\end{fulllineitems}} +% C type fields ---------------------------------------------------------- +% \begin{cmemberdesc}{container type}{ctype}{membername} +\newcommand{\cmemberline}[3]{ + \item[\code{#2 \bfcode{#3}}] + \index{#3@{\py@idxcode{#3}} (#1 member)} +} +\newenvironment{cmemberdesc}[3]{ + \begin{fulllineitems} + \cmemberline{#1}{#2}{#3} +}{\end{fulllineitems}} + % Funky macros ----------------------------------------------------------- % \begin{csimplemacrodesc}{name} % -- "simple" because it has no args; NOT for constant definitions!
