[pypy-svn] r73365 - pypy/branch/cpython-extension/pypy/module/cpyext/include

xoraxax at codespeak.net xoraxax at codespeak.net
Sun Apr 4 19:19:13 CEST 2010


Author: xoraxax
Date: Sun Apr  4 19:19:12 2010
New Revision: 73365

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h
Log:
Add various macros. Swap the commit message with the last rev.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h	Sun Apr  4 19:19:12 2010
@@ -27,6 +27,8 @@
 # endif
 #endif
 #define Py_ssize_t long
+#define PY_SSIZE_T_MAX ((Py_ssize_t)(((size_t)-1)>>1))
+#define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)
 
 /* Convert a possibly signed character to a nonnegative int */
 /* XXX This assumes characters are 8 bits wide */
@@ -63,6 +65,7 @@
 #include "tupleobject.h"
 #include "dictobject.h"
 #include "intobject.h"
+#include "listobject.h"
 #include "unicodeobject.h"
 #include "eval.h"
 #include "pymem.h"



More information about the Pypy-commit mailing list