mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-107298: Fix more Sphinx warnings in the C API doc (#107329)
Declare the following functions as macros, since they are actually macros. It avoids a warning on "TYPE" or "macro" argument. * PyMem_New() * PyMem_Resize() * PyModule_AddIntMacro() * PyModule_AddStringMacro() * PyObject_GC_New() * PyObject_GC_NewVar() * PyObject_New() * PyObject_NewVar() Add C standard C types to nitpick_ignore in Doc/conf.py: * int64_t * uint64_t * uintptr_t No longer ignore non existing "__int" type in nitpick_ignore. Update Doc/tools/.nitignore
This commit is contained in:
parent
391e03fa05
commit
8d61a71f9c
23 changed files with 122 additions and 119 deletions
|
@ -97,7 +97,7 @@ nitpick_ignore = [
|
|||
('c:func', 'vsnprintf'),
|
||||
# Standard C types
|
||||
('c:type', 'FILE'),
|
||||
('c:type', '__int'),
|
||||
('c:type', 'int64_t'),
|
||||
('c:type', 'intmax_t'),
|
||||
('c:type', 'off_t'),
|
||||
('c:type', 'ptrdiff_t'),
|
||||
|
@ -105,9 +105,12 @@ nitpick_ignore = [
|
|||
('c:type', 'size_t'),
|
||||
('c:type', 'ssize_t'),
|
||||
('c:type', 'time_t'),
|
||||
('c:type', 'uint64_t'),
|
||||
('c:type', 'uintmax_t'),
|
||||
('c:type', 'uintptr_t'),
|
||||
('c:type', 'va_list'),
|
||||
('c:type', 'wchar_t'),
|
||||
# Standard C structures
|
||||
('c:struct', 'in6_addr'),
|
||||
('c:struct', 'in_addr'),
|
||||
('c:struct', 'stat'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue