Skip to content

Commit 553fdd0

Browse files
committed
Fix more links to PyMODINIT_FUNC
1 parent c3ac141 commit 553fdd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/extending/extending.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ needed to ensure that it will not be discarded, causing :c:data:`!SpamError` to
242242
become a dangling pointer. Should it become a dangling pointer, C code which
243243
raises the exception could cause a core dump or other unintended side effects.
244244

245-
We discuss the use of :c:macro:`PyMODINIT_FUNC` as a function return type later in this
245+
We discuss the use of :c:macro:`!PyMODINIT_FUNC` as a function return type later in this
246246
sample.
247247

248248
The :exc:`!spam.error` exception can be raised in your extension module using a
@@ -363,7 +363,7 @@ only non-\ ``static`` item defined in the module file::
363363
return PyModule_Create(&spammodule);
364364
}
365365

366-
Note that :c:macro:`PyMODINIT_FUNC` declares the function as ``PyObject *`` return type,
366+
Note that :c:macro:`!PyMODINIT_FUNC` declares the function as ``PyObject *`` return type,
367367
declares any special linkage declarations required by the platform, and for C++
368368
declares the function as ``extern "C"``.
369369

Doc/whatsnew/2.3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ Changes to Python's build process and to the C API include:
18881888

18891889
* The :c:macro:`!DL_EXPORT` and :c:macro:`!DL_IMPORT` macros are now deprecated.
18901890
Initialization functions for Python extension modules should now be declared
1891-
using the new macro :c:macro:`PyMODINIT_FUNC`, while the Python core will
1891+
using the new macro :c:macro:`!PyMODINIT_FUNC`, while the Python core will
18921892
generally use the :c:macro:`!PyAPI_FUNC` and :c:macro:`!PyAPI_DATA` macros.
18931893

18941894
* The interpreter can be compiled without any docstrings for the built-in

0 commit comments

Comments
 (0)