mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Markup errors: \cfuntion -> \cfunction
This commit is contained in:
parent
7d45d34ed7
commit
4e15945fff
1 changed files with 3 additions and 3 deletions
|
@ -731,7 +731,7 @@ pointer to an integer (\var{*buffer_length}, the buffer length).
|
||||||
The encoding name must map to a registered codec. If set to \NULL{},
|
The encoding name must map to a registered codec. If set to \NULL{},
|
||||||
the default encoding is used.
|
the default encoding is used.
|
||||||
|
|
||||||
\cfuntion{PyArg_ParseTuple()} will allocate a buffer of the needed
|
\cfunction{PyArg_ParseTuple()} will allocate a buffer of the needed
|
||||||
size using \cfunction{PyMem_NEW()}, copy the encoded data into this
|
size using \cfunction{PyMem_NEW()}, copy the encoded data into this
|
||||||
buffer and adjust \var{*buffer} to reference the newly allocated
|
buffer and adjust \var{*buffer} to reference the newly allocated
|
||||||
storage. The caller is responsible for calling
|
storage. The caller is responsible for calling
|
||||||
|
@ -753,14 +753,14 @@ the default encoding is used.
|
||||||
There are two modes of operation:
|
There are two modes of operation:
|
||||||
|
|
||||||
If \var{*buffer} points a \NULL{} pointer,
|
If \var{*buffer} points a \NULL{} pointer,
|
||||||
\cfuntion{PyArg_ParseTuple()} will allocate a buffer of the needed
|
\cfunction{PyArg_ParseTuple()} will allocate a buffer of the needed
|
||||||
size using \cfunction{PyMem_NEW()}, copy the encoded data into this
|
size using \cfunction{PyMem_NEW()}, copy the encoded data into this
|
||||||
buffer and adjust \var{*buffer} to reference the newly allocated
|
buffer and adjust \var{*buffer} to reference the newly allocated
|
||||||
storage. The caller is responsible for calling
|
storage. The caller is responsible for calling
|
||||||
\cfunction{PyMem_Free()} to free the allocated buffer after usage.
|
\cfunction{PyMem_Free()} to free the allocated buffer after usage.
|
||||||
|
|
||||||
If \var{*buffer} points to a non-\NULL{} pointer (an already allocated
|
If \var{*buffer} points to a non-\NULL{} pointer (an already allocated
|
||||||
buffer), \cfuntion{PyArg_ParseTuple()} will use this location as
|
buffer), \cfunction{PyArg_ParseTuple()} will use this location as
|
||||||
buffer and interpret \var{*buffer_length} as buffer size. It will then
|
buffer and interpret \var{*buffer_length} as buffer size. It will then
|
||||||
copy the encoded data into the buffer and 0-terminate it. Buffer
|
copy the encoded data into the buffer and 0-terminate it. Buffer
|
||||||
overflow is signalled with an exception.
|
overflow is signalled with an exception.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue