[Python-checkins] r45886 - stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c
richard.tew
python-checkins at python.org
Wed May 3 14:58:00 CEST 2006
Author: richard.tew
Date: Wed May 3 14:57:59 2006
New Revision: 45886
Modified:
stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c
Log:
The external asm code handling used SSIZE_T, which is Windows specific. Where this is not defined, int is used instead.
Modified: stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c
==============================================================================
--- stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c (original)
+++ stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c Wed May 3 14:57:59 2006
@@ -64,7 +64,13 @@
int slp_save_state(intptr_t *stack){
int exitcode;
+#ifdef SSIZE_T
+ /* Only on Windows apparently. */
SSIZE_T diff;
+#else
+ /* Py_ssize_t when we port to 2.5? */
+ int diff;
+#endif
SLP_SAVE_STATE(stack, diff);
return diff;
exit:
More information about the Python-checkins
mailing list