mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-108765: Move standard includes to Python.h (#108769)
* Move <ctype.h>, <limits.h> and <stdarg.h> standard includes to Python.h. * Move "pystats.h" include from object.h to Python.h. * Remove redundant "pymem.h" include in objimpl.h and "pyport.h" include in pymem.h; Python.h already includes them earlier. * Remove redundant <wchar.h> include in unicodeobject.h; Python.h already includes it. * Move _SGI_MP_SOURCE define from Python.h to pyport.h. * pycore_condvar.h includes explicitly <unistd.h> for the _POSIX_THREADS macro.
This commit is contained in:
parent
0e01fac315
commit
45b9e6a61f
10 changed files with 45 additions and 61 deletions
|
@ -1,8 +1,6 @@
|
|||
#ifndef Py_UNICODEOBJECT_H
|
||||
#define Py_UNICODEOBJECT_H
|
||||
|
||||
#include <stdarg.h> // va_list
|
||||
|
||||
/*
|
||||
|
||||
Unicode implementation based on original code by Fredrik Lundh,
|
||||
|
@ -55,8 +53,6 @@ Copyright (c) Corporation for National Research Initiatives.
|
|||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
* -------------------------------------------------------------------- */
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
/* === Internal API ======================================================= */
|
||||
|
||||
/* --- Internal Unicode Format -------------------------------------------- */
|
||||
|
@ -93,10 +89,6 @@ Copyright (c) Corporation for National Research Initiatives.
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WCHAR_H
|
||||
# include <wchar.h>
|
||||
#endif
|
||||
|
||||
/* Py_UCS4 and Py_UCS2 are typedefs for the respective
|
||||
unicode representations. */
|
||||
typedef uint32_t Py_UCS4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue