diff options
author | Christian Tismer <tismer@stackless.com> | 2003-05-20 15:14:31 (GMT) |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2003-05-20 15:14:31 (GMT) |
commit | 6695ba89de69ee3857f0e394967a379b2d847213 (patch) | |
tree | a86b117e527483e858caf91ca8287701fb360aee /Include/object.h | |
parent | 5d6ad75d5022b961dc01ed0b54e7f3fc04818a70 (diff) | |
download | cpython-6695ba89de69ee3857f0e394967a379b2d847213.zip cpython-6695ba89de69ee3857f0e394967a379b2d847213.tar.gz cpython-6695ba89de69ee3857f0e394967a379b2d847213.tar.bz2 |
Preserved one bit in type objects for Stackless.
The presence of this bit controls, whether there
are special fields for non-recursive calls.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 3c7264f..1687457 100644 --- a/Include/object.h +++ b/Include/object.h @@ -488,6 +488,13 @@ 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) */ +#ifdef STACKLESS +#define Py_TPFLAGS_HAVE_NR_THINGS (1L<<31) +#else +#define Py_TPFLAGS_HAVE_NR_THINGS 0 +#endif + #define Py_TPFLAGS_DEFAULT ( \ Py_TPFLAGS_HAVE_GETCHARBUFFER | \ Py_TPFLAGS_HAVE_SEQUENCE_IN | \ @@ -496,6 +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 | \ 0) #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) |