gh-109634: Use :samp: role (GH-109635)

This commit is contained in:
Serhiy Storchaka 2023-09-23 09:31:20 +03:00 committed by GitHub
parent 5e7ea95d9d
commit 92af0cc580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 99 additions and 95 deletions

View file

@ -1012,7 +1012,7 @@ differently depending if the ``Py_BUILD_CORE_MODULE`` macro is defined:
* Use ``Py_IMPORTED_SYMBOL`` otherwise.
If the ``Py_BUILD_CORE_BUILTIN`` macro is used by mistake on a C extension
built as a shared library, its ``PyInit_xxx()`` function is not exported,
built as a shared library, its :samp:`PyInit_{xxx}()` function is not exported,
causing an :exc:`ImportError` on import.
@ -1033,8 +1033,8 @@ Preprocessor flags
.. envvar:: CPPFLAGS
(Objective) C/C++ preprocessor flags, e.g. ``-I<include dir>`` if you have
headers in a nonstandard directory ``<include dir>``.
(Objective) C/C++ preprocessor flags, e.g. :samp:`-I{include_dir}` if you have
headers in a nonstandard directory *include_dir*.
Both :envvar:`CPPFLAGS` and :envvar:`LDFLAGS` need to contain the shell's
value to be able to build extension modules using the
@ -1223,8 +1223,8 @@ Linker flags
.. envvar:: LDFLAGS
Linker flags, e.g. ``-L<lib dir>`` if you have libraries in a nonstandard
directory ``<lib dir>``.
Linker flags, e.g. :samp:`-L{lib_dir}` if you have libraries in a nonstandard
directory *lib_dir*.
Both :envvar:`CPPFLAGS` and :envvar:`LDFLAGS` need to contain the shell's
value to be able to build extension modules using the