diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-21 07:52:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 07:52:07 (GMT) |
commit | fcc816dbff7ca66c26f57a506e4d2330fe41d0ff (patch) | |
tree | 98cc80573f16950153790ddbd7d017374d439d10 /Doc/c-api/float.rst | |
parent | 81861fd90b4ae981e7881cd03a3c370713063525 (diff) | |
download | cpython-fcc816dbff7ca66c26f57a506e4d2330fe41d0ff.zip cpython-fcc816dbff7ca66c26f57a506e4d2330fe41d0ff.tar.gz cpython-fcc816dbff7ca66c26f57a506e4d2330fe41d0ff.tar.bz2 |
gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920)
Diffstat (limited to 'Doc/c-api/float.rst')
-rw-r--r-- | Doc/c-api/float.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/float.rst b/Doc/c-api/float.rst index fd0be11..4f6ac0d 100644 --- a/Doc/c-api/float.rst +++ b/Doc/c-api/float.rst @@ -109,7 +109,7 @@ Pack functions The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:`int` argument, non-zero if you want the bytes string in little-endian format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` ``p+7``), zero if you -want big-endian format (exponent first, at *p*). The :c:data:`PY_BIG_ENDIAN` +want big-endian format (exponent first, at *p*). The :c:macro:`PY_BIG_ENDIAN` constant can be used to use the native endian: it is equal to ``1`` on big endian processor, or ``0`` on little endian processor. @@ -140,7 +140,7 @@ Unpack functions The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:`int` argument, non-zero if the bytes string is in little-endian format (exponent last, at ``p+1``, ``p+3`` or ``p+6`` and ``p+7``), zero if big-endian -(exponent first, at *p*). The :c:data:`PY_BIG_ENDIAN` constant can be used to +(exponent first, at *p*). The :c:macro:`PY_BIG_ENDIAN` constant can be used to use the native endian: it is equal to ``1`` on big endian processor, or ``0`` on little endian processor. |