File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,15 @@ rules:
83
83
.. versionadded:: 3.12
84
84
85
85
86
- .. c:function :: TYPE* PyObject_GC_Resize(TYPE, PyVarObject * op, Py_ssize_t newsize)
86
+ .. c:macro :: PyObject_GC_Resize(TYPE, op, newsize)
87
87
88
- Resize an object allocated by :c:macro: `PyObject_NewVar `. Returns the
89
- resized object or ``NULL `` on failure. *op * must not be tracked by the collector yet.
88
+ Resize an object allocated by :c:macro:`PyObject_NewVar`.
89
+ Returns the resized object of type ``TYPE*`` (refers to any C type)
90
+ or ``NULL`` on failure.
91
+
92
+ *op* must be of type :c:expr:`PyVarObject *`
93
+ and must not be tracked by the collector yet.
94
+ *newsize* must be of type :c:type:`Py_ssize_t`.
90
95
91
96
92
97
.. c:function:: void PyObject_GC_Track(PyObject *op)
Original file line number Diff line number Diff line change 5
5
Doc/c-api/descriptor.rst
6
6
Doc/c-api/exceptions.rst
7
7
Doc/c-api/float.rst
8
- Doc/c-api/gcsupport.rst
9
8
Doc/c-api/init.rst
10
9
Doc/c-api/init_config.rst
11
10
Doc/c-api/intro.rst
Original file line number Diff line number Diff line change @@ -2371,7 +2371,7 @@ Add a new C-API function to eagerly assign a version tag to a PyTypeObject:
2371
2371
.. nonce: _paFIF
2372
2372
.. section: C API
2373
2373
2374
- :c:func : `PyObject_GC_Resize ` should calculate preheader size if needed.
2374
+ :c:macro : `PyObject_GC_Resize ` should calculate preheader size if needed.
2375
2375
Patch by Donghee Na.
2376
2376
2377
2377
..
You can’t perform that action at this time.
0 commit comments