]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104922: remove PY_SSIZE_T_CLEAN (#106315)
authorInada Naoki <songofacandy@gmail.com>
Sun, 2 Jul 2023 06:07:46 +0000 (15:07 +0900)
committerGitHub <noreply@github.com>
Sun, 2 Jul 2023 06:07:46 +0000 (15:07 +0900)
64 files changed:
Modules/_bisectmodule.c
Modules/_bz2module.c
Modules/_codecsmodule.c
Modules/_ctypes/_ctypes.c
Modules/_cursesmodule.c
Modules/_dbmmodule.c
Modules/_elementtree.c
Modules/_gdbmmodule.c
Modules/_hashopenssl.c
Modules/_io/_iomodule.c
Modules/_io/bufferedio.c
Modules/_io/fileio.c
Modules/_io/iobase.c
Modules/_io/stringio.c
Modules/_io/textio.c
Modules/_io/winconsoleio.c
Modules/_localemodule.c
Modules/_lzmamodule.c
Modules/_multiprocessing/multiprocessing.h
Modules/_multiprocessing/posixshmem.c
Modules/_sqlite/connection.h
Modules/_sqlite/cursor.h
Modules/_sqlite/microprotocols.h
Modules/_sqlite/module.h
Modules/_sqlite/row.h
Modules/_sqlite/statement.h
Modules/_sqlite/util.h
Modules/_sre/sre.c
Modules/_ssl.c
Modules/_stat.c
Modules/_struct.c
Modules/_testbuffer.c
Modules/_testcapi/float.c
Modules/_testcapi/getargs.c
Modules/_testcapi/structmember.c
Modules/_testcapi/unicode.c
Modules/_testcapimodule.c
Modules/_testclinic.c
Modules/_testinternalcapi.c
Modules/_tkinter.c
Modules/_uuidmodule.c
Modules/_xxtestfuzz/_xxtestfuzz.c
Modules/arraymodule.c
Modules/binascii.c
Modules/cjkcodecs/cjkcodecs.h
Modules/cjkcodecs/multibytecodec.c
Modules/fcntlmodule.c
Modules/itertoolsmodule.c
Modules/mmapmodule.c
Modules/posixmodule.c
Modules/socketmodule.c
Modules/unicodedata.c
Modules/zlibmodule.c
Objects/bytearrayobject.c
Objects/bytes_methods.c
Objects/bytesobject.c
Objects/exceptions.c
Objects/fileobject.c
Objects/picklebufobject.c
Objects/unicodeobject.c
PC/winreg.c
Parser/pegen.h
Parser/tokenizer.c
Python/marshal.c

index 60f4dc69dc05d9aca93a013a999a606b9f25df4e..9e0fd336419b44683ceaeab454515f54003d4071 100644 (file)
@@ -7,7 +7,6 @@ Converted to C by Dmitry Vasiliev (dima at hlabs.spb.ru).
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallMethod()
 
index 97bd44b4ac969444424737bb4a5c13827a1fc269..eeefe6034998c8761870cdf41938f0377b175d5b 100644 (file)
@@ -1,7 +1,5 @@
 /* _bz2 - Low-level Python interface to libbzip2. */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "structmember.h"         // PyMemberDef
 
index 4dfd134f1cb11e413e5a3d02bd5d7b005b15a91b..c31c1b6d6f2bbc0070189e43c308905b2f47be03 100644 (file)
@@ -30,7 +30,6 @@ Copyright (c) Corporation for National Research Initiatives.
 
    ------------------------------------------------------------------------ */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_codecs.h"        // _PyCodec_Lookup()
 
index 840d0df85e9c87e85de8b56f90449651868c6e93..a9d8a2b9cb4ad7f81deeb84c31028ccab380e726 100644 (file)
@@ -101,7 +101,6 @@ bytes(cdata)
 #ifndef Py_BUILD_CORE_BUILTIN
 #  define Py_BUILD_CORE_MODULE 1
 #endif
-#define PY_SSIZE_T_CLEAN
 
 #include "Python.h"
 // windows.h must be included before pycore internal headers
index 5691a419a32f8e90d4c85e89189aa393291e4af9..1f5afa6fcd898d0b4366818006bbe881df2ecffe 100644 (file)
@@ -104,8 +104,6 @@ static const char PyCursesVersion[] = "2.2";
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_long.h"          // _PyLong_GetZero()
 #include "pycore_structseq.h"     // _PyStructSequence_NewType()
index 9908174c94c4501e4067952da72ce8e3548e5847..5be444d53e8da39191b0d0be14e7d8c76ce5d18b 100644 (file)
@@ -2,7 +2,6 @@
 /* DBM module using dictionary interface */
 
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 
 #include <sys/types.h>
index 2a0eac4d2f8085a214628fbb30630ff42b8b9613..48280690a707a42d67700c3260022d9fbe611f5a 100644 (file)
@@ -11,8 +11,6 @@
  *--------------------------------------------------------------------
  */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "structmember.h"         // PyMemberDef
 #include "expat.h"
index 4dbb5741b2ede82385354977e21851cca2ccd042..bedbdc081425c2c9fd6aebbf4f1a9c3d62441698 100644 (file)
@@ -3,7 +3,6 @@
 /* Author: Anthony Baxter, after dbmmodule.c */
 /* Doc strings: Mitch Chapman */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "gdbm.h"
 
index 259db809b8664c22afeef06472321fb575ad6668..011cb765ed82e66f5e00560825c6b1e97d477ff8 100644 (file)
@@ -22,8 +22,6 @@
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_hashtable.h"
 #include "hashlib.h"
index 7b06c1bee5a83287662f9bca5e3e261db564bf86..1a7920eebe0b611b46a48153d32445173aa78331 100644 (file)
@@ -7,7 +7,6 @@
     Mostly written by Amaury Forgeot d'Arc
 */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "_iomodule.h"
 #include "pycore_pystate.h"       // _PyInterpreterState_GET()
index f30d54a5e11b0a94bca4d3f9f42d1cf844e47d6d..25376f82042836dd5717d8826a4565db408703a0 100644 (file)
@@ -7,7 +7,6 @@
     Written by Amaury Forgeot d'Arc and Antoine Pitrou
 */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallNoArgs()
 #include "pycore_object.h"
index 005c9ffe56f71a8f82abba85c717bd420965bea8..1a5b61301dec584e249d6c47320be5ee9c1e824a 100644 (file)
@@ -1,6 +1,5 @@
 /* Author: Daniel Stutzbach */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_fileutils.h"     // _Py_BEGIN_SUPPRESS_IPH
 #include "pycore_object.h"        // _PyObject_GC_UNTRACK()
index 5cd679c68b1281f2c04dd48411273cd574c27341..729a708a3fc40e3419419ca6b721266843ebb078 100644 (file)
@@ -8,7 +8,6 @@
 */
 
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallMethod()
 #include "pycore_long.h"          // _PyLong_GetOne()
index d4028451754cef095b1b7de50cd5831385f4cc0f..1960002d405edff290f479e721c13a7c44146774 100644 (file)
@@ -1,4 +1,3 @@
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include <stddef.h>               // offsetof()
 #include "pycore_object.h"
index c8e6792657cd58175660ac68afa6ec76c488dfb2..f704875280da32d688edfa3c9c13cc3ecb88ae49 100644 (file)
@@ -6,7 +6,6 @@
     Written by Amaury Forgeot d'Arc and Antoine Pitrou
 */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallMethod()
 #include "pycore_codecs.h"        // _PyCodecInfo_GetIncrementalDecoder()
index 15f3053957da612dcf9dae0097b5e1fd977f8c69..452b12c138fa8b2c636cfb63883f1241dc7603a0 100644 (file)
@@ -6,7 +6,6 @@
     Written by Steve Dower
 */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_fileutils.h"     // _Py_BEGIN_SUPPRESS_IPH
 #include "pycore_object.h"        // _PyObject_GC_UNTRACK()
index 1ada7305117bb7c2ec1173a847d8fd409190795f..970530facd01b02edb29e576888f68c22543d3dc 100644 (file)
@@ -9,7 +9,6 @@ This software comes with no warranty. Use at your own risk.
 
 ******************************************************************/
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_fileutils.h"
 
index e34fbad230d51ae7ab0792cf273e8618f1a796f8..ba0987ee0abca173c4f2195ba64cf939903e20e3 100644 (file)
@@ -5,8 +5,6 @@
 
 */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "structmember.h"         // PyMemberDef
 
index dfc2a8e0799a603ed4a19663c0e67d508e569c99..47257fd5d9fb264cbd2dc5bb5e09053c6e8f901b 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef MULTIPROCESSING_H
 #define MULTIPROCESSING_H
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "structmember.h"
 #include "pythread.h"
index 88c93fe313785cc53796b942221103bc533a4dcf..debef3267f77d1f5ff07d3b971e7fbc2d9d0fabd 100644 (file)
@@ -2,8 +2,6 @@
 posixshmem - A Python extension that provides shm_open() and shm_unlink()
 */
 
-#define PY_SSIZE_T_CLEAN
-
 #include <Python.h>
 
 // for shm_open() and shm_unlink()
index 1df92065a587a2a3af52079875c5dd36261ecb81..7a748ee3ea0c5811cf7567aa7e7947b5c5ddd50c 100644 (file)
@@ -23,7 +23,6 @@
 
 #ifndef PYSQLITE_CONNECTION_H
 #define PYSQLITE_CONNECTION_H
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pythread.h"
 #include "structmember.h"
index 0bcdddc3e2959550b418d824e5c619d9ea5b9cb5..42f817af7c54ad4cfefc4dafac7810a84f53e6f8 100644 (file)
@@ -23,7 +23,6 @@
 
 #ifndef PYSQLITE_CURSOR_H
 #define PYSQLITE_CURSOR_H
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 
 #include "statement.h"
index 6bde9d01f45299fe1c989e0b3cb1d4465d807dc8..8a8c33525ee53b41d299c6799ee02ea6a4377fc7 100644 (file)
@@ -26,7 +26,6 @@
 #ifndef PSYCOPG_MICROPROTOCOLS_H
 #define PSYCOPG_MICROPROTOCOLS_H 1
 
-#define PY_SSIZE_T_CLEAN
 #include <Python.h>
 
 /** exported functions **/
index daa22091d38ad7bf6c75571dfdeefe1f79183e58..a4ca45cf6326a9bf3907b194f17c3ec10cc5d4fd 100644 (file)
@@ -23,7 +23,6 @@
 
 #ifndef PYSQLITE_MODULE_H
 #define PYSQLITE_MODULE_H
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 
 #define LEGACY_TRANSACTION_CONTROL -1
index b51909817584ba9fc48b6e5a1c536503f691b90c..d42b781e4931774a664f376674a3f1013c4c2850 100644 (file)
@@ -23,7 +23,6 @@
 
 #ifndef PYSQLITE_ROW_H
 #define PYSQLITE_ROW_H
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 
 typedef struct _Row
index 11a6464b1a1c2b7477641f8f0fc9abd349c9acec..b18f170ebb0708ab5507dec551c8017a1aed2e68 100644 (file)
@@ -23,7 +23,6 @@
 
 #ifndef PYSQLITE_STATEMENT_H
 #define PYSQLITE_STATEMENT_H
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 
 #include "connection.h"
index a22bcd82d2a05bbd7581a187f0b8a0ae746cde77..68b1a8cb67ace356c3fd8c5b13776aa1f2f91ab2 100644 (file)
@@ -23,7 +23,6 @@
 
 #ifndef PYSQLITE_UTIL_H
 #define PYSQLITE_UTIL_H
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pythread.h"
 #include "sqlite3.h"
index 328e4be2fb5e43ad2f267b600dc9e4f3a6eb762e..3f11916f9e17261c5b2f3c8d347fb40d228178a4 100644 (file)
@@ -38,8 +38,6 @@
 static const char copyright[] =
     " SRE 2.2.2 Copyright (c) 1997-2002 by Secret Labs AB ";
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_long.h"          // _PyLong_GetZero()
 #include "pycore_moduleobject.h"  // _PyModule_GetState()
index 4254fde0f5190bab548df4bcb32be47cfbc7d201..df1496925f678e5cd4d139d050185c88f89447b1 100644 (file)
@@ -25,8 +25,6 @@
 #endif
 #define OPENSSL_NO_DEPRECATED 1
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_weakref.h"       // _PyWeakref_GET_REF()
 
index 4218799103b59d270bdc84e917f8c6ee0f064420..9747d848cbacb88fd7e76a879da2328ba32a2862 100644 (file)
@@ -11,7 +11,6 @@
  *
  */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 
 #ifdef __cplusplus
index 4f9478bd98095d5b714592de8836f0612ff93ec1..0a6f076aac0c53e097d2e4ba81085cd5b12770f0 100644 (file)
@@ -7,8 +7,6 @@
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_moduleobject.h"  // _PyModule_GetState()
 #include "structmember.h"         // PyMemberDef
index 63ed4dc6ca80e1fe51ce803bb6a4fcb42a3410f7..5101834cfe138710d193a1fbf6c57fe282a52328 100644 (file)
@@ -1,9 +1,6 @@
 /* C Extension module to test all aspects of PEP-3118.
    Written by Stefan Krah. */
 
-
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 
 
index 33cbda83a81af7cac0478f8f1b779c7bcb0e47bc..cff53fb950fcc6067bd6367715252e58f000acbe 100644 (file)
@@ -1,5 +1,3 @@
-#define PY_SSIZE_T_CLEAN
-
 #include "parts.h"
 #include "clinic/float.c.h"
 
index a473c41f60af3ccf06670a48dfcacc683ad7621e..10a1c1dd05253df0e702898a1dab9c669aa52170 100644 (file)
@@ -3,8 +3,6 @@
  * APIs that parse and build arguments.
  */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "parts.h"
 
 static PyObject *
index 0fb872a4328d6005a76b353d95dd227e0adb1321..8522dc962efa40e5750bd021a7ecc1691509f375 100644 (file)
@@ -1,4 +1,3 @@
-#define PY_SSIZE_T_CLEAN
 #include "parts.h"
 #include <stddef.h>   // for offsetof()
 
index 73929eaffc676d7c603e17875ac2711212162d8a..367d2af1413e57fede950fdb711852d2432cc951 100644 (file)
@@ -1,6 +1,5 @@
 #include <stddef.h>               // ptrdiff_t
 
-#define PY_SSIZE_T_CLEAN
 #include "parts.h"
 
 static struct PyModuleDef *_testcapimodule = NULL;  // set at initialization
index 398450d804f5c5d8e24bc05324f31f279237c4fe..ce1131743eb2a4b3a66b9887f1cffbe552d870af 100644 (file)
@@ -17,8 +17,6 @@
 /* Always enable assertions */
 #undef NDEBUG
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "frameobject.h"          // PyFrame_New
 #include "marshal.h"              // PyMarshal_WriteLongToFile
index 6ff55a2755cf5aa86a04eed9f1f88498f2d30b23..26cdb4371ca24c6edb4b8b528d59ab9f5cf15184 100644 (file)
@@ -5,8 +5,6 @@
 /* Always enable assertions */
 #undef NDEBUG
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 
 
index 2e0609dcae5b7d9ba352fe8a759a87cca03f7bbc..971b8efb5fd9a4e775a7e4c3262479f52c8c0d74 100644 (file)
@@ -9,8 +9,6 @@
 /* Always enable assertions */
 #undef NDEBUG
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "frameobject.h"
 #include "interpreteridobject.h"  // _PyInterpreterID_LookUp()
index 97e5b2f738aa2a60765b9ca3d962b53da0777ab7..76af803bd6eefbaa9de38892a5aca10559d8f016 100644 (file)
@@ -21,7 +21,6 @@ Copyright (C) 1994 Steen Lumholt.
 
 */
 
-#define PY_SSIZE_T_CLEAN
 #ifndef Py_BUILD_CORE_BUILTIN
 #  define Py_BUILD_CORE_MODULE 1
 #endif
index ed3b2fedfd4d885a95684932b2c1fbeab2a33097..2f5be1c5144d8363501e701a8da80100f3186edc 100644 (file)
@@ -3,8 +3,6 @@
  * DCE compatible Universally Unique Identifier library.
  */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #if defined(HAVE_UUID_H)
   // AIX, FreeBSD, libuuid with pkgconf
index e0694de6719df081df8865efb51e9c465eab20a7..a2dbabce71ed67cdc1e7faa21c9fd56d8f2cb3c1 100644 (file)
@@ -1,4 +1,3 @@
-#define PY_SSIZE_T_CLEAN
 #include <Python.h>
 #include <stdlib.h>
 #include <inttypes.h>
index 15f7766a8dd284b5fe3be366b09149000c61feb1..f43a23467976b8371e6fa37f9ed690eb163e9d71 100644 (file)
@@ -7,7 +7,6 @@
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallMethod()
 #include "pycore_moduleobject.h"  // _PyModule_GetState()
index 356947d43e43a9df231b1db843f4e158d1566993..cf9328795c2bcc5e9323695d09056dd8711f3ee1 100644 (file)
@@ -57,8 +57,6 @@
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_long.h"          // _PyLong_DigitValue
 #include "pycore_strhex.h"        // _Py_strhex_bytes_with_sep()
index 36bc7024df9acc4edf70648912358b4569fd4943..48cdcfb3ad3087b234bec8d9d2017ef58afd53ff 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef _CJKCODECS_H_
 #define _CJKCODECS_H_
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "multibytecodec.h"
 
index 1070a751ffe638018a0dd8ee9f637365f7e9786d..cf437d09f1fe8d8dd6e03406e42bf5412aebdae5 100644 (file)
@@ -4,7 +4,6 @@
  * Written by Hye-Shik Chang <perky@FreeBSD.org>
  */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "structmember.h"         // PyMemberDef
 #include "multibytecodec.h"
index 6ca0b62bc5dca8cfd7f50d92e879af1196b9cbf0..e530621fd269a1d70025bbc4cddeec4500125bda 100644 (file)
@@ -1,8 +1,5 @@
-
 /* fcntl module */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 
 #ifdef HAVE_SYS_FILE_H
index ae63bae79d5d07c9fd2c8baf5744c79d055a0d02..13ff253f560b0410a19b3f7eed1960e27ba85270 100644 (file)
@@ -1,4 +1,3 @@
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallNoArgs()
 #include "pycore_long.h"          // _PyLong_GetZero()
index 6bde9939eaa2ca11c7e3eb603d501743d76ddc32..fef27123a3282b3bc240c110daa84941c31acb26 100644 (file)
@@ -22,7 +22,6 @@
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
 #include <Python.h>
 #include "pycore_bytesobject.h"   // _PyBytes_Find()
 #include "pycore_fileutils.h"     // _Py_stat_struct
index d73886f14cb9ec4a9fef1882ea9ededfdd87315b..b9f42476e6b82c82ba0d4834483cb1f885736f90 100644 (file)
@@ -7,8 +7,6 @@
    of the compiler used.  Different compilers define their own feature
    test macro, e.g. '_MSC_VER'. */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 
 #ifdef __VXWORKS__
index 3add80233522b9b75a3650b6ce4efc9e8bfd4da7..1d3f34b857a1d267ccdea3b6502067dc8aaf31e0 100644 (file)
@@ -105,7 +105,6 @@ Local naming conventions:
 # pragma weak inet_aton
 #endif
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_fileutils.h"     // _Py_set_inheritable()
 #include "pycore_moduleobject.h"  // _PyModule_GetState
index 7be4d83c6f070f3351f9f02fb1d7841aafaa4200..b6e50528a23c8690cbc4672fb288715ca5987c89 100644 (file)
@@ -16,8 +16,6 @@
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_ucnhash.h"       // _PyUnicode_Name_CAPI
 #include "structmember.h"         // PyMemberDef
index 534d065765f0f9dd67556af6267a9921799b6369..c0f6b96f51baba15806d877bf698f249c6c01dd9 100644 (file)
@@ -3,8 +3,6 @@
 
 /* Windows users:  read Python's PCbuild\readme.txt */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "structmember.h"         // PyMemberDef
 #include "zlib.h"
index 944ec65b64f6a2958d512c9bcfe38a8eccab0073..18a24a369a64c13336b0e8f4a043be5e5279cdd5 100644 (file)
@@ -1,6 +1,5 @@
 /* PyByteArray (bytearray) implementation */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_abstract.h"      // _PyIndex_Check()
 #include "pycore_bytes_methods.h"
index 33aa9c3db6e805da07233d3dbb742063b9b5615e..c1bc6383df30ce775da97eb37d11fb0b896bb7ca 100644 (file)
@@ -1,4 +1,3 @@
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_abstract.h"   // _PyIndex_Check()
 #include "pycore_bytes_methods.h"
index bf54ec1d51d209792ca1f9fdfbd9eb689752925c..477bc4d31e812b64686229f2250bd6dd7df60668 100644 (file)
@@ -1,7 +1,5 @@
 /* bytes object implementation */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_abstract.h"      // _PyIndex_Check()
 #include "pycore_bytesobject.h"   // _PyBytes_Find(), _PyBytes_Repeat()
index 2bfa07ea3121f48afd78cffa14a603a0636c8d33..85cf2cca16516bc501c35c30cd508170bec10124 100644 (file)
@@ -4,7 +4,6 @@
  * Thanks go to Tim Peters and Michael Hudson for debugging.
  */
 
-#define PY_SSIZE_T_CLEAN
 #include <Python.h>
 #include <stdbool.h>
 #include "pycore_abstract.h"      // _PyObject_RealIsSubclass()
index e99e155f2b8c98addbeeec4708937ba21b7a0b01..6d980a1b379166170d918d3bf209839e8e017b72 100644 (file)
@@ -1,6 +1,5 @@
 /* File object implementation (what's left of it -- see io.py) */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallNoArgs()
 #include "pycore_runtime.h"       // _PyRuntime
index aaa852cfbb05b04c128cc3826ec51cb5df2daf61..ca83a0a0806ce130b41470013b28d2f75453bf3e 100644 (file)
@@ -1,6 +1,5 @@
 /* PickleBuffer object implementation */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include <stddef.h>
 
index 74def5ada5134e0365be21318de4ce63f862de2c..79402714f23b9de2b51a1504f9db53368806f0bb 100644 (file)
@@ -38,7 +38,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_abstract.h"      // _PyIndex_Check()
 #include "pycore_atomic_funcs.h"  // _Py_atomic_size_get()
index 279d48f792b96a8dc1484c305f79eb2456d17de8..aa2055c7e619d2c1c503c1db22fe782e17dfaca9 100644 (file)
@@ -12,7 +12,6 @@
 
 */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_object.h"        // _PyObject_Init()
 #include "pycore_moduleobject.h"
index fe13d10e6b83e3f732b706214101516a72c2789e..5f29285951e8123786734721d190f4b8db559420 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef PEGEN_H
 #define PEGEN_H
 
-#define PY_SSIZE_T_CLEAN
 #include <Python.h>
 #include <pycore_ast.h>
 #include <pycore_token.h>
index 6bdf371a7adf03ec164464e71402540c78795c58..f19198600fa018125b33cc2ad2cf3386e1bfbbd0 100644 (file)
@@ -1,7 +1,6 @@
 
 /* Tokenizer implementation */
 
-#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallNoArgs()
 
index 7cfc7cc00306f5804b23e5976cba0d4aaf634c48..517220a4463cf37858cb0b047827777f81971ce6 100644 (file)
@@ -6,8 +6,6 @@
    Version 3 of this protocol properly supports circular links
    and sharing. */
 
-#define PY_SSIZE_T_CLEAN
-
 #include "Python.h"
 #include "pycore_call.h"          // _PyObject_CallNoArgs()
 #include "pycore_code.h"          // _PyCode_New()