Skip to content
Snippets Groups Projects
Unverified Commit 3ec11d92 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

[3.11] gh-93738: Documentation C syntax (:c:type:`TYPE` -> :c:expr:`TYPE`) (GH-97770) (#97874)


:c:type:`TYPE` -> :c:expr:`TYPE`
(cherry picked from commit 8b211b4c)

Co-authored-by: default avatarAdam Turner <9087854+AA-Turner@users.noreply.github.com>
parent 1b7da7f0
Branches
No related tags found
No related merge requests found
...@@ -265,14 +265,14 @@ The following type-oriented macros are provided for convenience. Note that ...@@ -265,14 +265,14 @@ The following type-oriented macros are provided for convenience. Note that
.. c:function:: TYPE* PyMem_New(TYPE, size_t n) .. c:function:: TYPE* PyMem_New(TYPE, size_t n)
Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes of Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes of
memory. Returns a pointer cast to :c:type:`TYPE*`. The memory will not have memory. Returns a pointer cast to :c:expr:`TYPE*`. The memory will not have
been initialized in any way. been initialized in any way.
.. c:function:: TYPE* PyMem_Resize(void *p, TYPE, size_t n) .. c:function:: TYPE* PyMem_Resize(void *p, TYPE, size_t n)
Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n * Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
sizeof(TYPE))`` bytes. Returns a pointer cast to :c:type:`TYPE*`. On return, sizeof(TYPE))`` bytes. Returns a pointer cast to :c:expr:`TYPE*`. On return,
*p* will be a pointer to the new memory area, or ``NULL`` in the event of *p* will be a pointer to the new memory area, or ``NULL`` in the event of
failure. failure.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment