diff options
author | Christian Tismer <tismer@stackless.com> | 2003-05-23 03:33:35 (GMT) |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2003-05-23 03:33:35 (GMT) |
commit | c26ff41d3d765e0299eed8adcb00dbd8079c52ec (patch) | |
tree | bde1ad757dc195dbd023a84ebece6e6e407150f6 | |
parent | c316d0d3918937c3d409c76b68bb88c93bc810ff (diff) | |
download | cpython-c26ff41d3d765e0299eed8adcb00dbd8079c52ec.zip cpython-c26ff41d3d765e0299eed8adcb00dbd8079c52ec.tar.gz cpython-c26ff41d3d765e0299eed8adcb00dbd8079c52ec.tar.bz2 |
Generalized my type flags structure extension without being specific about
the purpose. Increased my claim to two bits, hoping that nobody
will complain about it. I'm taking the highest two bits, whatever
the integer word size may be.
-rw-r--r-- | Include/object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/object.h b/Include/object.h index 1687457..06e19be 100644 --- a/Include/object.h +++ b/Include/object.h @@ -488,11 +488,11 @@ given type object has a specified feature. /* Objects support garbage collection (see objimp.h) */ #define Py_TPFLAGS_HAVE_GC (1L<<14) -/* Objects support special, non-recursive calls (reserved for Stackless) */ +/* These last two bits are preserved for Stackless Python */ #ifdef STACKLESS -#define Py_TPFLAGS_HAVE_NR_THINGS (1L<<31) +#define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION (3L<<(sizeof(int)*8-2)) #else -#define Py_TPFLAGS_HAVE_NR_THINGS 0 +#define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION 0 #endif #define Py_TPFLAGS_DEFAULT ( \ @@ -503,7 +503,7 @@ given type object has a specified feature. Py_TPFLAGS_HAVE_WEAKREFS | \ Py_TPFLAGS_HAVE_ITER | \ Py_TPFLAGS_HAVE_CLASS | \ - Py_TPFLAGS_HAVE_NR_THINGS | \ + Py_TPFLAGS_HAVE_STACKLESS_EXTENSION | \ 0) #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) |