[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.53,1.53.2.1
Fred L. Drake
fdrake@weyr.cnri.reston.va.us
Fri, 3 Mar 2000 10:37:41 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/texinputs
In directory weyr:/home/fdrake/projects/python/Doc-152p2/texinputs
Modified Files:
Tag: release152p1-patches
python.sty
Log Message:
ctypedesc environment: Accept an optional parameter: name to use in
the index. This is needed so that function types don't get
the whole signature in the index, sorted by return type.
csimplemacro environment: Poorly named environment used only for the
Py_*_THREADS macros, which are weird beasts. But ctypedesc is
no longer suitable since it annotates the name in the index
with "(C type)".
Index: python.sty
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.53
retrieving revision 1.53.2.1
diff -C2 -r1.53 -r1.53.2.1
*** python.sty 1999/06/29 18:15:59 1.53
--- python.sty 2000/03/03 15:37:38 1.53.2.1
***************
*** 529,536 ****
% C data types -----------------------------------------------------------
! % \begin{ctypedesc}{typedef name}
! \newenvironment{ctypedesc}[1]{
\begin{fulllineitems}
! \item[\bfcode{#1}\ttindex{#1}]
}{\end{fulllineitems}}
--- 529,551 ----
% C data types -----------------------------------------------------------
! % \begin{ctypedesc}[index name]{typedef name}
! \let\py@classbadkey=\@undefined
!
! \newenvironment{ctypedesc}[2][\py@badkey]{
\begin{fulllineitems}
! \item[\bfcode{#2}%
! \ifx#1\@undefined%
! \withsubitem{(C type)}{\ttindex{#2}}%
! \else%
! \withsubitem{(C type)}{\ttindex{#1}}%
! \fi]
! }{\end{fulllineitems}}
!
! % Funky macros -----------------------------------------------------------
! % \begin{csimplemacro}{name}
! % -- "simple" because it has no args; NOT for constant definitions!
! \newenvironment{csimplemacrodesc}[1]{
! \begin{fulllineitems}
! \item[\bfcode{#1}\withsubitem{(macro)}{\ttindex{#1}}]
}{\end{fulllineitems}}