[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.74,1.75

Fred L. Drake python-dev@python.org
2000年8月11日 10:07:35 -0700


Update of /cvsroot/python/python/dist/src/Doc/api
In directory slayer.i.sourceforge.net:/tmp/cvs-serv10623/api
Modified Files:
	api.tex 
Log Message:
ANY becomes void, to reflect the requirement for ANSI C.
Index: api.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.74
retrieving revision 1.75
diff -C2 -r1.74 -r1.75
*** api.tex	2000年07月13日 23:58:16	1.74
--- api.tex	2000年08月11日 17:07:32	1.75
***************
*** 3038,3045 ****
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{int}{PyDict_Next}{PyDictObject *p,
! int ppos,
! PyObject **pkey,
! PyObject **pvalue}
 
 \end{cfuncdesc}
--- 3038,3043 ----
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{int}{PyDict_Next}{PyDictObject *p, int *ppos,
! PyObject **pkey, PyObject **pvalue}
 
 \end{cfuncdesc}
***************
*** 4217,4232 ****
 
 
! \begin{ctypedesc}{ANY*}
! The type used to represent arbitrary blocks of memory. Values of this 
! type should be cast to the specific type that is needed.
! \end{ctypedesc}
! 
! \begin{cfuncdesc}{ANY*}{PyMem_Malloc}{size_t n}
! Allocates \var{n} bytes and returns a pointer of type \ctype{ANY*} to
 the allocated memory, or \NULL{} if the request fails. Requesting zero
 bytes returns a non-\NULL{} pointer.
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{ANY*}{PyMem_Realloc}{ANY *p, size_t n}
 Resizes the memory block pointed to by \var{p} to \var{n} bytes. The
 contents will be unchanged to the minimum of the old and the new
--- 4215,4225 ----
 
 
! \begin{cfuncdesc}{void*}{PyMem_Malloc}{size_t n}
! Allocates \var{n} bytes and returns a pointer of type \ctype{void*} to
 the allocated memory, or \NULL{} if the request fails. Requesting zero
 bytes returns a non-\NULL{} pointer.
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void*}{PyMem_Realloc}{void *p, size_t n}
 Resizes the memory block pointed to by \var{p} to \var{n} bytes. The
 contents will be unchanged to the minimum of the old and the new
***************
*** 4238,4242 ****
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void}{PyMem_Free}{ANY *p}
 Frees the memory block pointed to by \var{p}, which must have been
 returned by a previous call to \cfunction{PyMem_Malloc()} or
--- 4231,4235 ----
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void}{PyMem_Free}{void *p}
 Frees the memory block pointed to by \var{p}, which must have been
 returned by a previous call to \cfunction{PyMem_Malloc()} or
***************
*** 4246,4260 ****
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{ANY*}{Py_Malloc}{size_t n}
 Same as \cfunction{PyMem_Malloc()}, but calls
 \cfunction{PyErr_NoMemory()} on failure.
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{ANY*}{Py_Realloc}{ANY *p, size_t n}
 Same as \cfunction{PyMem_Realloc()}, but calls
 \cfunction{PyErr_NoMemory()} on failure.
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void}{Py_Free}{ANY *p}
 Same as \cfunction{PyMem_Free()}.
 \end{cfuncdesc}
--- 4239,4253 ----
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void*}{Py_Malloc}{size_t n}
 Same as \cfunction{PyMem_Malloc()}, but calls
 \cfunction{PyErr_NoMemory()} on failure.
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void*}{Py_Realloc}{void *p, size_t n}
 Same as \cfunction{PyMem_Realloc()}, but calls
 \cfunction{PyErr_NoMemory()} on failure.
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void}{Py_Free}{void *p}
 Same as \cfunction{PyMem_Free()}.
 \end{cfuncdesc}
***************
*** 4269,4273 ****
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{\var{TYPE}*}{PyMem_RESIZE}{ANY *p, TYPE, size_t n}
 Same as \cfunction{PyMem_Realloc()}, but the memory block is resized
 to \code{(\var{n} * sizeof(\var{TYPE}))} bytes. Returns a pointer
--- 4262,4266 ----
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{\var{TYPE}*}{PyMem_RESIZE}{void *p, TYPE, size_t n}
 Same as \cfunction{PyMem_Realloc()}, but the memory block is resized
 to \code{(\var{n} * sizeof(\var{TYPE}))} bytes. Returns a pointer
***************
*** 4275,4279 ****
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void}{PyMem_DEL}{ANY *p}
 Same as \cfunction{PyMem_Free()}.
 \end{cfuncdesc}
--- 4268,4272 ----
 \end{cfuncdesc}
 
! \begin{cfuncdesc}{void}{PyMem_DEL}{void *p}
 Same as \cfunction{PyMem_Free()}.
 \end{cfuncdesc}

AltStyle によって変換されたページ (->オリジナル) /