mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
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:
parent
489176e428
commit
c63623a0a6
5 changed files with 3 additions and 6 deletions
|
@ -6,8 +6,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
/* Type PyByteArrayObject represents a mutable array of bytes.
|
/* Type PyByteArrayObject represents a mutable array of bytes.
|
||||||
* The Python API is that of a sequence;
|
* The Python API is that of a sequence;
|
||||||
* the bytes are mapped to ints in [0, 256).
|
* the bytes are mapped to ints in [0, 256).
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h> // va_list
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Type PyBytesObject represents a byte string. An extra zero byte is
|
Type PyBytesObject represents a byte string. An extra zero byte is
|
||||||
|
|
|
@ -7,7 +7,7 @@ extern "C" {
|
||||||
|
|
||||||
/* Module support interface */
|
/* Module support interface */
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h> // va_list
|
||||||
|
|
||||||
/* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier
|
/* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier
|
||||||
to mean Py_ssize_t */
|
to mean Py_ssize_t */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef Py_UNICODEOBJECT_H
|
#ifndef Py_UNICODEOBJECT_H
|
||||||
#define Py_UNICODEOBJECT_H
|
#define Py_UNICODEOBJECT_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h> // va_list
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include "structmember.h" // PyMemberDef
|
#include "structmember.h" // PyMemberDef
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <lzma.h>
|
#include <lzma.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue