summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/sys.rst
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2022-10-05 21:10:55 (GMT)
committerGitHub <noreply@github.com>2022-10-05 21:10:55 (GMT)
commit3b0f2a7ff068f24198b848f25662078c4223b10a (patch)
treef05da6a7d2700747a2a004a1a990447b862afa4f /Doc/c-api/sys.rst
parentac2427eeffef73d9c6d83fe35c50244d348e53e3 (diff)
downloadcpython-3b0f2a7ff068f24198b848f25662078c4223b10a.zip
cpython-3b0f2a7ff068f24198b848f25662078c4223b10a.tar.gz
cpython-3b0f2a7ff068f24198b848f25662078c4223b10a.tar.bz2
[3.10] gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (GH-97768) (#97925)
:c:type:`<C type>` -> :c:expr:`<C type>` Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 0031e62973801d34a9e19ab7bb199e9668e32d7b) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc/c-api/sys.rst')
-rw-r--r--Doc/c-api/sys.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst
index 7cf0a6b..8ea90da 100644
--- a/Doc/c-api/sys.rst
+++ b/Doc/c-api/sys.rst
@@ -105,7 +105,7 @@ Operating System Utilities
Return the current signal handler for signal *i*. This is a thin wrapper around
either :c:func:`sigaction` or :c:func:`signal`. Do not call those functions
- directly! :c:type:`PyOS_sighandler_t` is a typedef alias for :c:type:`void
+ directly! :c:type:`PyOS_sighandler_t` is a typedef alias for :c:expr:`void
(\*)(int)`.
@@ -114,7 +114,7 @@ Operating System Utilities
Set the signal handler for signal *i* to be *h*; return the old signal handler.
This is a thin wrapper around either :c:func:`sigaction` or :c:func:`signal`. Do
not call those functions directly! :c:type:`PyOS_sighandler_t` is a typedef
- alias for :c:type:`void (\*)(int)`.
+ alias for :c:expr:`void (\*)(int)`.
.. c:function:: wchar_t* Py_DecodeLocale(const char* arg, size_t *size)
@@ -352,7 +352,7 @@ accessible to C code. They all work with the current interpreter thread's
silently abort the operation by raising an error subclassed from
:class:`Exception` (other errors will not be silenced).
- The hook function is of type :c:type:`int (*)(const char *event, PyObject
+ The hook function is of type :c:expr:`int (*)(const char *event, PyObject
*args, void *userData)`, where *args* is guaranteed to be a
:c:type:`PyTupleObject`. The hook function is always called with the GIL
held by the Python interpreter that raised the event.