Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python2....
File: node.h
[0] Fix | Delete
/* Parse tree node interface */
[1] Fix | Delete
[2] Fix | Delete
#ifndef Py_NODE_H
[3] Fix | Delete
#define Py_NODE_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
typedef struct _node {
[9] Fix | Delete
short n_type;
[10] Fix | Delete
char *n_str;
[11] Fix | Delete
int n_lineno;
[12] Fix | Delete
int n_col_offset;
[13] Fix | Delete
int n_nchildren;
[14] Fix | Delete
struct _node *n_child;
[15] Fix | Delete
} node;
[16] Fix | Delete
[17] Fix | Delete
PyAPI_FUNC(node *) PyNode_New(int type);
[18] Fix | Delete
PyAPI_FUNC(int) PyNode_AddChild(node *n, int type,
[19] Fix | Delete
char *str, int lineno, int col_offset);
[20] Fix | Delete
PyAPI_FUNC(void) PyNode_Free(node *n);
[21] Fix | Delete
PyAPI_FUNC(Py_ssize_t) _PyNode_SizeOf(node *n);
[22] Fix | Delete
[23] Fix | Delete
/* Node access functions */
[24] Fix | Delete
#define NCH(n) ((n)->n_nchildren)
[25] Fix | Delete
[26] Fix | Delete
#define CHILD(n, i) (&(n)->n_child[i])
[27] Fix | Delete
#define RCHILD(n, i) (CHILD(n, NCH(n) + i))
[28] Fix | Delete
#define TYPE(n) ((n)->n_type)
[29] Fix | Delete
#define STR(n) ((n)->n_str)
[30] Fix | Delete
[31] Fix | Delete
/* Assert that the type of a node is what we expect */
[32] Fix | Delete
#define REQ(n, type) assert(TYPE(n) == (type))
[33] Fix | Delete
[34] Fix | Delete
PyAPI_FUNC(void) PyNode_ListTree(node *);
[35] Fix | Delete
[36] Fix | Delete
#ifdef __cplusplus
[37] Fix | Delete
}
[38] Fix | Delete
#endif
[39] Fix | Delete
#endif /* !Py_NODE_H */
[40] Fix | Delete
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function