Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r967:2d15ef133bde
Date: 2014-03-08 13:19 +0100
http://bitbucket.org/pypy/stmgc/changeset/2d15ef133bde/

Log:    Small additions for pypy

diff --git a/c7/stmgc.c b/c7/stmgc.c
--- a/c7/stmgc.c
+++ b/c7/stmgc.c
@@ -1,4 +1,4 @@
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 #include "stmgc.h"
 #include "stm/atomic.h"
 #include "stm/list.h"
diff --git a/c7/stmgc.h b/c7/stmgc.h
--- a/c7/stmgc.h
+++ b/c7/stmgc.h
@@ -199,6 +199,7 @@
    transaction. */
 #define STM_PUSH_ROOT(tl, p)   (*((tl).shadowstack++) = (object_t *)(p))
 #define STM_POP_ROOT(tl, p)    ((p) = (typeof(p))*(--(tl).shadowstack))
+#define STM_POP_ROOT_RET(tl)   (*(--(tl).shadowstack))
 
 
 /* Every thread needs to have a corresponding stm_thread_local_t
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to