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>.
This commit is contained in:
Victor Stinner 2021-10-13 04:37:55 +02:00 committed by GitHub
parent 489176e428
commit c63623a0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 6 deletions

View 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).

View 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

View 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 */

View File

@ -1,7 +1,7 @@
#ifndef Py_UNICODEOBJECT_H
#define Py_UNICODEOBJECT_H
#include <stdarg.h>
#include <stdarg.h> // va_list
/*

View File

@ -10,7 +10,6 @@
#include "Python.h"
#include "structmember.h" // PyMemberDef
#include <stdarg.h>
#include <string.h>
#include <lzma.h>