[Python-checkins] r45883 - stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c
richard.tew
python-checkins at python.org
Wed May 3 09:45:57 CEST 2006
Author: richard.tew
Date: Wed May 3 09:45:56 2006
New Revision: 45883
Modified:
stackless/Python-2.4.3/dev/Stackless/core/slp_transfer.c
Log:
Fixed the MASM __return definition. I am adapting this #ifdef block for the arm assembler slp_switch I am writing, and noticed that the two statements in the __return define were not enclosed in a block, so polluted where they were expanded so the code would always return after that point.
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 09:45:56 2006
@@ -47,7 +47,7 @@
#define STACK_MAGIC 0
#undef __return
-#define __return(x) exitcode = x; goto exit;
+#define __return(x) { exitcode = x; goto exit; }
int slp_save_state(intptr_t *stack){
int exitcode;
More information about the Python-checkins
mailing list