Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Include/structmember.h

    r2 r391  
    2727
    2828struct memberlist {
    29         /* Obsolete version, for binary backwards compatibility */
    30         char *name;
    31         int type;
    32         int offset;
    33         int flags;
     29    /* Obsolete version, for binary backwards compatibility */
     30    char *name;
     31    int type;
     32    int offset;
     33    int flags;
    3434};
    3535
    3636typedef struct PyMemberDef {
    37         /* Current version, use this */
    38         char *name;
    39         int type;
    40         Py_ssize_t offset;
    41         int flags;
    42         char *doc;
     37    /* Current version, use this */
     38    char *name;
     39    int type;
     40    Py_ssize_t offset;
     41    int flags;
     42    char *doc;
    4343} PyMemberDef;
    4444
    4545/* Types */
    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
     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
    5353/* 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 */
    5656/* unsigned variants: */
    57 #define T_UBYTE         9
    58 #define T_USHORT        10
    59 #define T_UINT          11
    60 #define T_ULONG         12
     57#define T_UBYTE         9
     58#define T_USHORT        10
     59#define T_UINT          11
     60#define T_ULONG         12
    6161
    6262/* Added by Jack: strings contained in the structure */
    63 #define T_STRING_INPLACE        13
     63#define T_STRING_INPLACE        13
    6464
    6565/* Added by Lillo: bools contained in the structure (assumed char) */
    66 #define T_BOOL          14
     66#define T_BOOL          14
    6767
    68 #define T_OBJECT_EX     16      /* Like T_OBJECT, but raises AttributeError
    69                                    when the value is NULL, instead of
    70                                    converting to None. */
     68#define T_OBJECT_EX     16      /* Like T_OBJECT, but raises AttributeError
     69                   when the value is NULL, instead of
     70                   converting to None. */
    7171#ifdef HAVE_LONG_LONG
    72 #define T_LONGLONG      17 
     72#define T_LONGLONG      17
    7373#define T_ULONGLONG      18
    7474#endif /* HAVE_LONG_LONG */
     
    7878
    7979/* Flags */
    80 #define READONLY        1
    81 #define RO              READONLY                /* Shorthand */
    82 #define READ_RESTRICTED 2
     80#define READONLY        1
     81#define RO              READONLY                /* Shorthand */
     82#define READ_RESTRICTED 2
    8383#define PY_WRITE_RESTRICTED 4
    84 #define RESTRICTED      (READ_RESTRICTED | PY_WRITE_RESTRICTED)
     84#define RESTRICTED      (READ_RESTRICTED | PY_WRITE_RESTRICTED)
    8585
    8686
Note: See TracChangeset for help on using the changeset viewer.