summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-08 20:32:21 (GMT)
committerGitHub <noreply@github.com>2021-04-08 20:32:21 (GMT)
commita41782cc84bcd813209a03e6e11c60e77dbc7718 (patch)
tree76e53b2a0c0e68d1413b1a0171718e7196267cf7 /Doc/extending
parentd92c59f48680122ce0e4d1ccf69d92b983e8db01 (diff)
downloadcpython-a41782cc84bcd813209a03e6e11c60e77dbc7718.zip
cpython-a41782cc84bcd813209a03e6e11c60e77dbc7718.tar.gz
cpython-a41782cc84bcd813209a03e6e11c60e77dbc7718.tar.bz2
bpo-43774: Document configure options (GH-25283)
Add Doc/using/configure.rst documentation to document configure, preprocessor, compiler and linker options. Add a new section about the "Python debug build".
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst2
-rw-r--r--Doc/extending/newtypes_tutorial.rst3
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index d902370..c078476 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -12,7 +12,7 @@ This section aims to give a quick fly-by on the various type methods you can
implement and what they do.
Here is the definition of :c:type:`PyTypeObject`, with some fields only used in
-debug builds omitted:
+:ref:`debug builds <debug-build>` omitted:
.. literalinclude:: ../includes/typestruct.h
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst
index 4da77e7..530e2c4 100644
--- a/Doc/extending/newtypes_tutorial.rst
+++ b/Doc/extending/newtypes_tutorial.rst
@@ -69,7 +69,8 @@ at the start of each object struct and defines a field called ``ob_base``
of type :c:type:`PyObject`, containing a pointer to a type object and a
reference count (these can be accessed using the macros :c:macro:`Py_REFCNT`
and :c:macro:`Py_TYPE` respectively). The reason for the macro is to
-abstract away the layout and to enable additional fields in debug builds.
+abstract away the layout and to enable additional fields in :ref:`debug builds
+<debug-build>`.
.. note::
There is no semicolon above after the :c:macro:`PyObject_HEAD` macro.