[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.53.2.1,1.53.2.2

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Wed, 15 Mar 2000 10:01:29 -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:

cfuncdesc environment:  Support an optional parameter telling about
the reference count treatment.  This should *never* be entered by hand 
but added by the tools/anno-api.py script using data from the
reference count database Skip contributed.


Index: python.sty
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.53.2.1
retrieving revision 1.53.2.2
diff -C2 -r1.53.2.1 -r1.53.2.2
*** python.sty	2000/03/03 15:37:38	1.53.2.1
--- python.sty	2000/03/15 15:01:26	1.53.2.2
***************
*** 511,522 ****
  %     \begin{funcdesc}{myfunc}{\optional{parm1\optional{, parm2}}}
  %
  \newcommand{\optional}[1]{%
    {\textnormal{\Large[}}{#1}\hspace{0.5mm}{\textnormal{\Large]}}}
  
  % C functions ------------------------------------------------------------
! % \begin{cfuncdesc}{type}{name}{arglist}
! \newenvironment{cfuncdesc}[3]{
    \begin{fulllineitems}
!     \item[\code{#1 \bfcode{#2}(\py@varvars{#3})}\index{#2@{\py@idxcode{#2()}}}]
  }{\end{fulllineitems}}
  
--- 511,529 ----
  %     \begin{funcdesc}{myfunc}{\optional{parm1\optional{, parm2}}}
  %
+ \let\py@badkey=\@undefined
+ 
  \newcommand{\optional}[1]{%
    {\textnormal{\Large[}}{#1}\hspace{0.5mm}{\textnormal{\Large]}}}
  
  % C functions ------------------------------------------------------------
! % \begin{cfuncdesc}[refcount]{type}{name}{arglist}
! % Note that the [refcount] slot should only be filled in by
! % tools/anno-api.py; it pulls the value from the refcounts database.
! \newenvironment{cfuncdesc}[4][\py@badkey]{
    \begin{fulllineitems}
!     \item[\code{#2 \bfcode{#3}(\py@varvars{#4})}\index{#3@{\py@idxcode{#3()}}}]
!     \ifx#1\@undefined\else%
!       \emph{Return value: \textbf{#1 reference}.}\\
!     \fi
  }{\end{fulllineitems}}
  
***************
*** 530,535 ****
  % C data types -----------------------------------------------------------
  % \begin{ctypedesc}[index name]{typedef name}
- \let\py@classbadkey=\@undefined
- 
  \newenvironment{ctypedesc}[2][\py@badkey]{
    \begin{fulllineitems}
--- 537,540 ----