]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45434: bytearrayobject.h no longer includes <stdarg.h> (GH-28913)
authorVictor Stinner <vstinner@python.org>
Wed, 13 Oct 2021 02:37:55 +0000 (04:37 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 02:37:55 +0000 (04:37 +0200)
bytearrayobject.h and _lzmamodule.c don't use va_list and so don't
need to include <stdarg.h>.

Include/bytearrayobject.h
Include/bytesobject.h
Include/modsupport.h
Include/unicodeobject.h
Modules/_lzmamodule.c

index 9e95433f0f26f0b319c1bf5c1c469a0e089a31f2..1a834474dde7c33698c7e8ca67c30bcf0ad22406 100644 (file)
@@ -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).
index 39c241a2dcf5f7c6696b71dabfaa40054c8b29cd..bcb1a5942c68f80882915650670b4749d81a732d 100644 (file)
@@ -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
index 7d37b4994225593aa523df3c6d0bde05a0527686..baf47f0038d08d44e4e618c27794010786c6c6b3 100644 (file)
@@ -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 */
index b0ac086a6be23de8c61299a0081049f1ed863212..c65b9228298d76265c20677bba489eaeee2aa38c 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef Py_UNICODEOBJECT_H
 #define Py_UNICODEOBJECT_H
 
-#include <stdarg.h>
+#include <stdarg.h>               // va_list
 
 /*
 
index 915c0c918f64436f0ae896c514a0ba850a74fa70..a7156ec7ddf042399c43c03433f9af8f32bc7ece 100644 (file)
@@ -10,7 +10,6 @@
 #include "Python.h"
 #include "structmember.h"         // PyMemberDef
 
-#include <stdarg.h>
 #include <string.h>
 
 #include <lzma.h>