Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c63623a

Browse files
authored
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>.
1 parent 489176e commit c63623a

5 files changed

Lines changed: 3 additions & 6 deletions

File tree

Include/bytearrayobject.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
extern "C" {
77
#endif
88

9-
#include <stdarg.h>
10-
119
/* Type PyByteArrayObject represents a mutable array of bytes.
1210
* The Python API is that of a sequence;
1311
* the bytes are mapped to ints in [0, 256).

Include/bytesobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern "C" {
88
#endif
99

10-
#include <stdarg.h>
10+
#include <stdarg.h> // va_list
1111

1212
/*
1313
Type PyBytesObject represents a byte string. An extra zero byte is

Include/modsupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern "C" {
77

88
/* Module support interface */
99

10-
#include <stdarg.h>
10+
#include <stdarg.h> // va_list
1111

1212
/* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier
1313
to mean Py_ssize_t */

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef Py_UNICODEOBJECT_H
22
#define Py_UNICODEOBJECT_H
33

4-
#include <stdarg.h>
4+
#include <stdarg.h> // va_list
55

66
/*
77

Modules/_lzmamodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "Python.h"
1111
#include "structmember.h" // PyMemberDef
1212

13-
#include <stdarg.h>
1413
#include <string.h>
1514

1615
#include <lzma.h>

0 commit comments

Comments
 (0)