]> granicus.if.org Git - python/commitdiff
Added environment for defining PyVM instructions. This is only used in
authorFred Drake <fdrake@acm.org>
Wed, 3 Dec 1997 03:42:39 +0000 (03:42 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 3 Dec 1997 03:42:39 +0000 (03:42 +0000)
the libdis.tex file I'm about to check in.

I'm not sure this is really an optimal solution yet, but it may be the best
alternative.  It avoids describing the instructions as either data items or
functions.

This change was discussed with Guido.  (Guido:  Take a look at the LaTeX
output for this; if this is reasonable I'll go ahead and update the perl
code in myformat.perl to match.)

Doc/myformat.sty

index e17c3f9e81fb522b4123f2d3c09d598feb666ae0..0a42b40acc9e83105aab34177cb1c37b736dfcde 100644 (file)
 \let\enddatadesc\endfulllineitems
 
 
+% opcodedesc should be called as an \begin{opcodedesc} ... \end{opcodedesc}
+\newcommand{\opcodeline}[2]{\item[\code{#1\quad\varvars{#2}}]\ttindex{#1}}
+\newcommand{\opcodedesc}[2]{\fulllineitems\opcodeline{#1}{#2}}
+\let\endopcodedesc\endfulllineitems
+
+
 % Define \dataitem{name}: define a data item
 \newcommand{\dataitem}[1]{%
 \ttindex{#1}%