diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-13 02:37:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 02:37:55 (GMT) |
commit | c63623a0a6892ce8683dbf8c769793ea897e6ba8 (patch) | |
tree | d275aaf3436a65441eea4d0079c6554271f0dc35 | |
parent | 489176e4285314f9ea87b8bd91fe1d55d9af2c42 (diff) | |
download | cpython-c63623a0a6892ce8683dbf8c769793ea897e6ba8.zip cpython-c63623a0a6892ce8683dbf8c769793ea897e6ba8.tar.gz cpython-c63623a0a6892ce8683dbf8c769793ea897e6ba8.tar.bz2 |
bpo-45434: bytearrayobject.h no longer includes <stdarg.h> (GH-28913)
bytearrayobject.h and _lzmamodule.c don't use va_list and so don't
need to include <stdarg.h>.
-rw-r--r-- | Include/bytearrayobject.h | 2 | ||||
-rw-r--r-- | Include/bytesobject.h | 2 | ||||
-rw-r--r-- | Include/modsupport.h | 2 | ||||
-rw-r--r-- | Include/unicodeobject.h | 2 | ||||
-rw-r--r-- | Modules/_lzmamodule.c | 1 |
5 files changed, 3 insertions, 6 deletions
diff --git a/Include/bytearrayobject.h b/Include/bytearrayobject.h index 9e95433..1a83447 100644 --- a/Include/bytearrayobject.h +++ b/Include/bytearrayobject.h @@ -6,8 +6,6 @@ extern "C" { #endif -#include <stdarg.h> - /* Type PyByteArrayObject represents a mutable array of bytes. * The Python API is that of a sequence; * the bytes are mapped to ints in [0, 256). diff --git a/Include/bytesobject.h b/Include/bytesobject.h index 39c241a..bcb1a59 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -7,7 +7,7 @@ extern "C" { #endif -#include <stdarg.h> +#include <stdarg.h> // va_list /* Type PyBytesObject represents a byte string. An extra zero byte is diff --git a/Include/modsupport.h b/Include/modsupport.h index 7d37b49..baf47f0 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -7,7 +7,7 @@ extern "C" { /* Module support interface */ -#include <stdarg.h> +#include <stdarg.h> // va_list /* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier to mean Py_ssize_t */ diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index b0ac086..c65b922 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1,7 +1,7 @@ #ifndef Py_UNICODEOBJECT_H #define Py_UNICODEOBJECT_H -#include <stdarg.h> +#include <stdarg.h> // va_list /* diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c index 915c0c9..a7156ec 100644 --- a/Modules/_lzmamodule.c +++ b/Modules/_lzmamodule.c @@ -10,7 +10,6 @@ #include "Python.h" #include "structmember.h" // PyMemberDef -#include <stdarg.h> #include <string.h> #include <lzma.h> |