Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 810349b

Browse files
committed
Fix the formatting of the list of fields in the disassemble() function.
1 parent 272fb3a commit 810349b

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

Doc/lib/libdis.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,20 @@ \section{Standard Module \module{dis}}
5050
\begin{funcdesc}{disassemble}{code\optional{, lasti}}
5151
Disassembles a code object, indicating the last instruction if \var{lasti}
5252
was provided. The output is divided in the following columns:
53-
\begin{itemize}
53+
54+
\newcounter{discounter}
55+
\begin{list}{\arabic{discounter}.}{%
56+
\usecounter{discounter}
57+
\setlength{\leftmargin}{4.5mm}
58+
\setlength{\labelsep}{1.5mm}}
5459
\item the current instruction, indicated as \samp{-->},
5560
\item a labelled instruction, indicated with \samp{>>},
5661
\item the address of the instruction,
5762
\item the operation code name,
5863
\item operation parameters, and
5964
\item interpretation of the parameters in parentheses.
60-
\end{itemize}
65+
\end{list}
66+
6167
The parameter interpretation recognizes local and global
6268
variable names, constant values, branch targets, and compare
6369
operators.

Doc/libdis.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,20 @@ \section{Standard Module \module{dis}}
5050
\begin{funcdesc}{disassemble}{code\optional{, lasti}}
5151
Disassembles a code object, indicating the last instruction if \var{lasti}
5252
was provided. The output is divided in the following columns:
53-
\begin{itemize}
53+
54+
\newcounter{discounter}
55+
\begin{list}{\arabic{discounter}.}{%
56+
\usecounter{discounter}
57+
\setlength{\leftmargin}{4.5mm}
58+
\setlength{\labelsep}{1.5mm}}
5459
\item the current instruction, indicated as \samp{-->},
5560
\item a labelled instruction, indicated with \samp{>>},
5661
\item the address of the instruction,
5762
\item the operation code name,
5863
\item operation parameters, and
5964
\item interpretation of the parameters in parentheses.
60-
\end{itemize}
65+
\end{list}
66+
6167
The parameter interpretation recognizes local and global
6268
variable names, constant values, branch targets, and compare
6369
operators.

0 commit comments

Comments
 (0)