summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2023-07-02 06:07:46 (GMT)
committerGitHub <noreply@github.com>2023-07-02 06:07:46 (GMT)
commitd5bd32fb48ef8db2586b09d951514d75437b6195 (patch)
treee631c330d40d9a8bbd59b971e55b46791343e838 /Objects
parent8571b271e7d16fe87d669a2e1e50f5ae3732bb31 (diff)
downloadcpython-d5bd32fb48ef8db2586b09d951514d75437b6195.zip
cpython-d5bd32fb48ef8db2586b09d951514d75437b6195.tar.gz
cpython-d5bd32fb48ef8db2586b09d951514d75437b6195.tar.bz2
gh-104922: remove PY_SSIZE_T_CLEAN (#106315)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytearrayobject.c1
-rw-r--r--Objects/bytes_methods.c1
-rw-r--r--Objects/bytesobject.c2
-rw-r--r--Objects/exceptions.c1
-rw-r--r--Objects/fileobject.c1
-rw-r--r--Objects/picklebufobject.c1
-rw-r--r--Objects/unicodeobject.c1
7 files changed, 0 insertions, 8 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index 944ec65..18a24a3 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -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"
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c
index 33aa9c3..c1bc638 100644
--- a/Objects/bytes_methods.c
+++ b/Objects/bytes_methods.c
@@ -1,4 +1,3 @@
-#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_bytes_methods.h"
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index bf54ec1..477bc4d 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -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()
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 2bfa07e..85cf2cc 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -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()
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index e99e155..6d980a1 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -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
diff --git a/Objects/picklebufobject.c b/Objects/picklebufobject.c
index aaa852c..ca83a0a 100644
--- a/Objects/picklebufobject.c
+++ b/Objects/picklebufobject.c
@@ -1,6 +1,5 @@
/* PickleBuffer object implementation */
-#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <stddef.h>
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 74def5a..7940271 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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()