Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python3....
File: structmember.h
#ifndef Py_STRUCTMEMBER_H
[0] Fix | Delete
#define Py_STRUCTMEMBER_H
[1] Fix | Delete
#ifdef __cplusplus
[2] Fix | Delete
extern "C" {
[3] Fix | Delete
#endif
[4] Fix | Delete
[5] Fix | Delete
[6] Fix | Delete
/* Interface to map C struct members to Python object attributes */
[7] Fix | Delete
[8] Fix | Delete
#include <stddef.h> /* For offsetof */
[9] Fix | Delete
[10] Fix | Delete
/* An array of PyMemberDef structures defines the name, type and offset
[11] Fix | Delete
of selected members of a C structure. These can be read by
[12] Fix | Delete
PyMember_GetOne() and set by PyMember_SetOne() (except if their READONLY
[13] Fix | Delete
flag is set). The array must be terminated with an entry whose name
[14] Fix | Delete
pointer is NULL. */
[15] Fix | Delete
[16] Fix | Delete
typedef struct PyMemberDef {
[17] Fix | Delete
char *name;
[18] Fix | Delete
int type;
[19] Fix | Delete
Py_ssize_t offset;
[20] Fix | Delete
int flags;
[21] Fix | Delete
char *doc;
[22] Fix | Delete
} PyMemberDef;
[23] Fix | Delete
[24] Fix | Delete
/* Types */
[25] Fix | Delete
#define T_SHORT 0
[26] Fix | Delete
#define T_INT 1
[27] Fix | Delete
#define T_LONG 2
[28] Fix | Delete
#define T_FLOAT 3
[29] Fix | Delete
#define T_DOUBLE 4
[30] Fix | Delete
#define T_STRING 5
[31] Fix | Delete
#define T_OBJECT 6
[32] Fix | Delete
/* XXX the ordering here is weird for binary compatibility */
[33] Fix | Delete
#define T_CHAR 7 /* 1-character string */
[34] Fix | Delete
#define T_BYTE 8 /* 8-bit signed int */
[35] Fix | Delete
/* unsigned variants: */
[36] Fix | Delete
#define T_UBYTE 9
[37] Fix | Delete
#define T_USHORT 10
[38] Fix | Delete
#define T_UINT 11
[39] Fix | Delete
#define T_ULONG 12
[40] Fix | Delete
[41] Fix | Delete
/* Added by Jack: strings contained in the structure */
[42] Fix | Delete
#define T_STRING_INPLACE 13
[43] Fix | Delete
[44] Fix | Delete
/* Added by Lillo: bools contained in the structure (assumed char) */
[45] Fix | Delete
#define T_BOOL 14
[46] Fix | Delete
[47] Fix | Delete
#define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError
[48] Fix | Delete
when the value is NULL, instead of
[49] Fix | Delete
converting to None. */
[50] Fix | Delete
#define T_LONGLONG 17
[51] Fix | Delete
#define T_ULONGLONG 18
[52] Fix | Delete
[53] Fix | Delete
#define T_PYSSIZET 19 /* Py_ssize_t */
[54] Fix | Delete
#define T_NONE 20 /* Value is always None */
[55] Fix | Delete
[56] Fix | Delete
[57] Fix | Delete
/* Flags */
[58] Fix | Delete
#define READONLY 1
[59] Fix | Delete
#define READ_RESTRICTED 2
[60] Fix | Delete
#define PY_WRITE_RESTRICTED 4
[61] Fix | Delete
#define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED)
[62] Fix | Delete
[63] Fix | Delete
[64] Fix | Delete
/* Current API, use this */
[65] Fix | Delete
PyAPI_FUNC(PyObject *) PyMember_GetOne(const char *, struct PyMemberDef *);
[66] Fix | Delete
PyAPI_FUNC(int) PyMember_SetOne(char *, struct PyMemberDef *, PyObject *);
[67] Fix | Delete
[68] Fix | Delete
[69] Fix | Delete
#ifdef __cplusplus
[70] Fix | Delete
}
[71] Fix | Delete
#endif
[72] Fix | Delete
#endif /* !Py_STRUCTMEMBER_H */
[73] Fix | Delete
[74] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function