python (3.12.0)

(root)/
include/
python3.12/
structmember.h
       1  #ifndef Py_STRUCTMEMBER_H
       2  #define Py_STRUCTMEMBER_H
       3  #ifdef __cplusplus
       4  extern "C" {
       5  #endif
       6  
       7  
       8  /* Interface to map C struct members to Python object attributes
       9   *
      10   * This header is deprecated: new code should not use stuff from here.
      11   * New definitions are in descrobject.h.
      12   *
      13   * However, there's nothing wrong with old code continuing to use it,
      14   * and there's not much mainenance overhead in maintaining a few aliases.
      15   * So, don't be too eager to convert old code.
      16   *
      17   * It uses names not prefixed with Py_.
      18   * It is also *not* included from Python.h and must be included individually.
      19   */
      20  
      21  #include <stddef.h> /* For offsetof (not always provided by Python.h) */
      22  
      23  /* Types */
      24  #define T_SHORT     Py_T_SHORT
      25  #define T_INT       Py_T_INT
      26  #define T_LONG      Py_T_LONG
      27  #define T_FLOAT     Py_T_FLOAT
      28  #define T_DOUBLE    Py_T_DOUBLE
      29  #define T_STRING    Py_T_STRING
      30  #define T_OBJECT    _Py_T_OBJECT
      31  #define T_CHAR      Py_T_CHAR
      32  #define T_BYTE      Py_T_BYTE
      33  #define T_UBYTE     Py_T_UBYTE
      34  #define T_USHORT    Py_T_USHORT
      35  #define T_UINT      Py_T_UINT
      36  #define T_ULONG     Py_T_ULONG
      37  #define T_STRING_INPLACE    Py_T_STRING_INPLACE
      38  #define T_BOOL      Py_T_BOOL
      39  #define T_OBJECT_EX Py_T_OBJECT_EX
      40  #define T_LONGLONG  Py_T_LONGLONG
      41  #define T_ULONGLONG Py_T_ULONGLONG
      42  #define T_PYSSIZET  Py_T_PYSSIZET
      43  #define T_NONE      _Py_T_NONE
      44  
      45  /* Flags */
      46  #define READONLY            Py_READONLY
      47  #define PY_AUDIT_READ        Py_AUDIT_READ
      48  #define READ_RESTRICTED     Py_AUDIT_READ
      49  #define PY_WRITE_RESTRICTED _Py_WRITE_RESTRICTED
      50  #define RESTRICTED          (READ_RESTRICTED | PY_WRITE_RESTRICTED)
      51  
      52  
      53  #ifdef __cplusplus
      54  }
      55  #endif
      56  #endif /* !Py_STRUCTMEMBER_H */