[pypy-svn] pypy pyarg-parsebuffer: Comment out the fields of Py_buffer that aren't actually supported/implement yet
exarkun
commits-noreply at bitbucket.org
Tue Apr 19 22:00:56 CEST 2011
Author: Jean-Paul Calderone <exarkun at twistedmatrix.com>
Branch: pyarg-parsebuffer
Changeset: r43489:74a9c91cbac7
Date: 2011-04-19 12:28 -0400
http://bitbucket.org/pypy/pypy/changeset/74a9c91cbac7/
Log: Comment out the fields of Py_buffer that aren't actually
supported/implement yet
diff --git a/pypy/module/cpyext/include/object.h b/pypy/module/cpyext/include/object.h
--- a/pypy/module/cpyext/include/object.h
+++ b/pypy/module/cpyext/include/object.h
@@ -132,17 +132,21 @@
void *buf;
PyObject *obj; /* owned reference */
Py_ssize_t len;
- Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
- pointed to by strides in simple case.*/
- int readonly;
- int ndim;
- char *format;
- Py_ssize_t *shape;
- Py_ssize_t *strides;
- Py_ssize_t *suboffsets;
- Py_ssize_t smalltable[2]; /* static store for shape and strides of
- mono-dimensional buffers. */
- void *internal;
+
+ /* This is Py_ssize_t so it can be
+ pointed to by strides in simple case.*/
+ /* Py_ssize_t itemsize; */
+ /* int readonly; */
+ /* int ndim; */
+ /* char *format; */
+ /* Py_ssize_t *shape; */
+ /* Py_ssize_t *strides; */
+ /* Py_ssize_t *suboffsets; */
+
+ /* static store for shape and strides of
+ mono-dimensional buffers. */
+ /* Py_ssize_t smalltable[2]; */
+ /* void *internal; */
} Py_buffer;
More information about the Pypy-commit
mailing list