diff options
author | Fred Drake <fdrake@acm.org> | 1997-12-03 03:42:39 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1997-12-03 03:42:39 (GMT) |
commit | a610f9f8c18f4cdc719f6abe9c44f8cdb235c0be (patch) | |
tree | b1e51d2c557b116a46e38a7f8ec2a89484e41f59 | |
parent | b7f1afe4a84c6ca6ecb3005e1ba3ef801a0257e7 (diff) | |
download | cpython-a610f9f8c18f4cdc719f6abe9c44f8cdb235c0be.zip cpython-a610f9f8c18f4cdc719f6abe9c44f8cdb235c0be.tar.gz cpython-a610f9f8c18f4cdc719f6abe9c44f8cdb235c0be.tar.bz2 |
Added environment for defining PyVM instructions. This is only used in
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.)
-rw-r--r-- | Doc/myformat.sty | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty index e17c3f9..0a42b40 100644 --- a/Doc/myformat.sty +++ b/Doc/myformat.sty @@ -161,6 +161,12 @@ \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}% |