summaryrefslogtreecommitdiff
path: root/Include/structmember.h
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-21 21:23:15 +0000
committerGeorg Brandl <georg@python.org>2008-01-21 21:23:15 +0000
commit32a3fb5ec95c9417c43344a80d9e09c8042ac66d (patch)
tree7ecc7556d326a3e4e873f52e7611ca41a122b680 /Include/structmember.h
parentf00b38e08ccdcb48e409df951454f91cec428c0e (diff)
downloadcpython-git-32a3fb5ec95c9417c43344a80d9e09c8042ac66d.tar.gz
Patch #1720595: add T_BOOL to the range of structmember types.
Patch by Angelo Mottola, reviewed by MvL, tests by me.
Diffstat (limited to 'Include/structmember.h')
-rw-r--r--Include/structmember.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/structmember.h b/Include/structmember.h
index 589c47cd9a..1f26b42825 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -62,6 +62,9 @@ typedef struct PyMemberDef {
/* Added by Jack: strings contained in the structure */
#define T_STRING_INPLACE 13
+/* Added by Lillo: bools contained in the structure (assumed char) */
+#define T_BOOL 14
+
#define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError
when the value is NULL, instead of
converting to None. */