diff options
author | Fred Drake <fdrake@acm.org> | 2002-04-12 22:48:02 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-04-12 22:48:02 (GMT) |
commit | 01e94618f5b534efb5d39fc9c2ea85fab50e6484 (patch) | |
tree | e674edc7cd2fca0eb853081276eb50e0a8507087 /Doc | |
parent | 4d2a95dfe74b015db759cf508940ad4192146ae9 (diff) | |
download | cpython-01e94618f5b534efb5d39fc9c2ea85fab50e6484.zip cpython-01e94618f5b534efb5d39fc9c2ea85fab50e6484.tar.gz cpython-01e94618f5b534efb5d39fc9c2ea85fab50e6484.tar.bz2 |
Additional support for describing C structure members.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/texinputs/python.sty | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 41e081d..5807416 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -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! |