[Python-checkins] r68704 - in python/branches/io-c/Modules: _bufferedio.c _iobase.c _textio.c io.c
antoine.pitrou
python-checkins at python.org
Sun Jan 18 01:45:30 CET 2009
Author: antoine.pitrou
Date: Sun Jan 18 01:45:29 2009
New Revision: 68704
Log:
Most io sources are Py_ssize_t-clean (I don't know about bytesio and stringio)
Modified:
python/branches/io-c/Modules/_bufferedio.c
python/branches/io-c/Modules/_iobase.c
python/branches/io-c/Modules/_textio.c
python/branches/io-c/Modules/io.c
Modified: python/branches/io-c/Modules/_bufferedio.c
==============================================================================
--- python/branches/io-c/Modules/_bufferedio.c (original)
+++ python/branches/io-c/Modules/_bufferedio.c Sun Jan 18 01:45:29 2009
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#include "pythread.h"
Modified: python/branches/io-c/Modules/_iobase.c
==============================================================================
--- python/branches/io-c/Modules/_iobase.c (original)
+++ python/branches/io-c/Modules/_iobase.c Sun Jan 18 01:45:29 2009
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#include "_iomodule.h"
Modified: python/branches/io-c/Modules/_textio.c
==============================================================================
--- python/branches/io-c/Modules/_textio.c (original)
+++ python/branches/io-c/Modules/_textio.c Sun Jan 18 01:45:29 2009
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#include "_iomodule.h"
@@ -1870,7 +1871,7 @@
while (input < input_end) {
PyObject *state;
char *dec_buffer;
- int dec_buffer_len;
+ Py_ssize_t dec_buffer_len;
int dec_flags;
PyObject *decoded = PyObject_CallMethod(
Modified: python/branches/io-c/Modules/io.c
==============================================================================
--- python/branches/io-c/Modules/io.c (original)
+++ python/branches/io-c/Modules/io.c Sun Jan 18 01:45:29 2009
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#include "_iomodule.h"
More information about the Python-checkins
mailing list