Changeset 388 for python/vendor/current/Include/structmember.h
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Include/structmember.h
r2 r388 27 27 28 28 struct memberlist { 29 30 31 32 33 29 /* Obsolete version, for binary backwards compatibility */ 30 char *name; 31 int type; 32 int offset; 33 int flags; 34 34 }; 35 35 36 36 typedef struct PyMemberDef { 37 38 39 40 41 42 37 /* Current version, use this */ 38 char *name; 39 int type; 40 Py_ssize_t offset; 41 int flags; 42 char *doc; 43 43 } PyMemberDef; 44 44 45 45 /* Types */ 46 #define T_SHORT 47 #define T_INT 48 #define T_LONG 49 #define T_FLOAT 50 #define T_DOUBLE 51 #define T_STRING 52 #define T_OBJECT 46 #define T_SHORT 0 47 #define T_INT 1 48 #define T_LONG 2 49 #define T_FLOAT 3 50 #define T_DOUBLE 4 51 #define T_STRING 5 52 #define T_OBJECT 6 53 53 /* XXX the ordering here is weird for binary compatibility */ 54 #define T_CHAR 7/* 1-character string */55 #define T_BYTE 8/* 8-bit signed int */54 #define T_CHAR 7 /* 1-character string */ 55 #define T_BYTE 8 /* 8-bit signed int */ 56 56 /* unsigned variants: */ 57 #define T_UBYTE 58 #define T_USHORT 59 #define T_UINT 60 #define T_ULONG 57 #define T_UBYTE 9 58 #define T_USHORT 10 59 #define T_UINT 11 60 #define T_ULONG 12 61 61 62 62 /* Added by Jack: strings contained in the structure */ 63 #define T_STRING_INPLACE 63 #define T_STRING_INPLACE 13 64 64 65 65 /* Added by Lillo: bools contained in the structure (assumed char) */ 66 #define T_BOOL 66 #define T_BOOL 14 67 67 68 #define T_OBJECT_EX 16/* Like T_OBJECT, but raises AttributeError69 70 68 #define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError 69 when the value is NULL, instead of 70 converting to None. */ 71 71 #ifdef HAVE_LONG_LONG 72 #define T_LONGLONG 17 72 #define T_LONGLONG 17 73 73 #define T_ULONGLONG 18 74 74 #endif /* HAVE_LONG_LONG */ … … 78 78 79 79 /* Flags */ 80 #define READONLY 81 #define RO READONLY/* Shorthand */82 #define READ_RESTRICTED 80 #define READONLY 1 81 #define RO READONLY /* Shorthand */ 82 #define READ_RESTRICTED 2 83 83 #define PY_WRITE_RESTRICTED 4 84 #define RESTRICTED 84 #define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED) 85 85 86 86
Note:
See TracChangeset
for help on using the changeset viewer.