summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-08-09 18:29:16 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-08-09 18:29:16 (GMT)
commit7dac74a0ca80831099503fda1aadbba56bb855b6 (patch)
tree0b5068109372748af474218c8e518fbd4f5e78c5 /Doc/c-api
parent1ee02670b8cca041eb0bee331d243325dd83331d (diff)
parent7dbee38564cb4112da59a4b8aa2e1759f09bb1f8 (diff)
downloadcpython-7dac74a0ca80831099503fda1aadbba56bb855b6.zip
cpython-7dac74a0ca80831099503fda1aadbba56bb855b6.tar.gz
cpython-7dac74a0ca80831099503fda1aadbba56bb855b6.tar.bz2
fix docs for c-api memory functions
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/memory.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index b80b3d5..5465571 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -98,7 +98,7 @@ memory from the Python heap:
Allocates *n* bytes and returns a pointer of type :c:type:`void\*` to the
allocated memory, or *NULL* if the request fails. Requesting zero bytes returns
- a distinct non-*NULL* pointer if possible, as if :c:func:`PyMem_Malloc(1)` had
+ a distinct non-*NULL* pointer if possible, as if ``PyMem_Malloc(1)`` had
been called instead. The memory will not have been initialized in any way.
@@ -106,7 +106,7 @@ memory from the Python heap:
Resizes the memory block pointed to by *p* to *n* bytes. The contents will be
unchanged to the minimum of the old and the new sizes. If *p* is *NULL*, the
- call is equivalent to :c:func:`PyMem_Malloc(n)`; else if *n* is equal to zero,
+ call is equivalent to ``PyMem_Malloc(n)``; else if *n* is equal to zero,
the memory block is resized but is not freed, and the returned pointer is
non-*NULL*. Unless *p* is *NULL*, it must have been returned by a previous call
to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. If the request fails,
@@ -118,7 +118,7 @@ memory from the Python heap:
Frees the memory block pointed to by *p*, which must have been returned by a
previous call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. Otherwise, or
- if :c:func:`PyMem_Free(p)` has been called before, undefined behavior occurs. If
+ if ``PyMem_Free(p)`` has been called before, undefined behavior occurs. If
*p* is *NULL*, no operation is performed.
The following type-oriented macros are provided for convenience. Note that