@@ -16,42 +16,41 @@ extern "C" {
1616 pointer is NULL. */
1717
1818typedef struct PyMemberDef {
19- /* Current version, use this */
20- char * name ;
21- int type ;
22- Py_ssize_t offset ;
23- int flags ;
24- char * doc ;
19+ char * name ;
20+ int type ;
21+ Py_ssize_t offset ;
22+ int flags ;
23+ char * doc ;
2524} PyMemberDef ;
2625
2726/* Types */
28- #define T_SHORT 0
29- #define T_INT 1
30- #define T_LONG 2
31- #define T_FLOAT 3
32- #define T_DOUBLE 4
33- #define T_STRING 5
34- #define T_OBJECT 6
27+ #define T_SHORT 0
28+ #define T_INT 1
29+ #define T_LONG 2
30+ #define T_FLOAT 3
31+ #define T_DOUBLE 4
32+ #define T_STRING 5
33+ #define T_OBJECT 6
3534/* XXX the ordering here is weird for binary compatibility */
36- #define T_CHAR 7 /* 1-character string */
37- #define T_BYTE 8 /* 8-bit signed int */
35+ #define T_CHAR 7 /* 1-character string */
36+ #define T_BYTE 8 /* 8-bit signed int */
3837/* unsigned variants: */
39- #define T_UBYTE 9
40- #define T_USHORT 10
41- #define T_UINT 11
42- #define T_ULONG 12
38+ #define T_UBYTE 9
39+ #define T_USHORT 10
40+ #define T_UINT 11
41+ #define T_ULONG 12
4342
4443/* Added by Jack: strings contained in the structure */
45- #define T_STRING_INPLACE 13
44+ #define T_STRING_INPLACE 13
4645
4746/* Added by Lillo: bools contained in the structure (assumed char) */
48- #define T_BOOL 14
47+ #define T_BOOL 14
4948
50- #define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError
51- when the value is NULL, instead of
52- converting to None. */
49+ #define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError
50+ when the value is NULL, instead of
51+ converting to None. */
5352#ifdef HAVE_LONG_LONG
54- #define T_LONGLONG 17
53+ #define T_LONGLONG 17
5554#define T_ULONGLONG 18
5655#endif /* HAVE_LONG_LONG */
5756
@@ -60,10 +59,10 @@ typedef struct PyMemberDef {
6059
6160
6261/* Flags */
63- #define READONLY 1
64- #define READ_RESTRICTED 2
62+ #define READONLY 1
63+ #define READ_RESTRICTED 2
6564#define PY_WRITE_RESTRICTED 4
66- #define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED)
65+ #define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED)
6766
6867
6968/* Current API, use this */
0 commit comments