summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-22 20:43:24 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-22 20:43:24 (GMT)
commit36f3502151e2bd796f5688171df00c3f3498dfd8 (patch)
treeb3c433ece302f4f0684ff72fa318a8aab2c9d549 /Doc
parent64f9105fb7a9672ab9a27a75417e6e532625232f (diff)
downloadcpython-36f3502151e2bd796f5688171df00c3f3498dfd8.zip
cpython-36f3502151e2bd796f5688171df00c3f3498dfd8.tar.gz
cpython-36f3502151e2bd796f5688171df00c3f3498dfd8.tar.bz2
Added cvardesc and ctypedesc macros, for api.tex.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/myformat.sty13
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index b117478..3b415d0 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -114,11 +114,22 @@
\let\endfulllineitems\endlist
-% cfuncdesc should be called as an \begin{cfuncdesc} ... \end{cfuncdesc}
+% cfuncdesc should be called as
+% \begin{cfuncdesc}{type}{name}{arglist}
+% ... description ...
+% \end{cfuncdesc}
\newcommand{\cfuncline}[3]{\item[\code{#1 #2(\varvars{#3})}]\ttindex{#2}}
\newcommand{\cfuncdesc}[3]{\fulllineitems\cfuncline{#1}{#2}{#3}}
\let\endcfuncdesc\endfulllineitems
+\newcommand{\cvarline}[2]{\item[\code{#1 #2}]\ttindex{#2}}
+\newcommand{\cvardesc}[2]{\fulllineitems\cvarline{#1}{#2}}
+\let\endcvardesc\endfulllineitems
+
+\newcommand{\ctypeline}[1]{\item[\code{#1}]\ttindex{#1}}
+\newcommand{\ctypedesc}[1]{\fulllineitems\ctypeline{#1}}
+\let\endctypedesc\endfulllineitems
+
% funcdesc should be called as an \begin{funcdesc} ... \end{funcdesc}
\newcommand{\funcline}[2]{\item[\code{#1(\varvars{#2})}]\ttindex{#1}}
\newcommand{\funcdesc}[2]{\fulllineitems\funcline{#1}{#2}}