mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
move LINENO define to where it actually belongs
This commit is contained in:
parent
55e0043a51
commit
c0beabc2a5
2 changed files with 1 additions and 4 deletions
|
@ -28,6 +28,7 @@ PyAPI_FUNC(void) PyNode_Free(node *n);
|
|||
#define RCHILD(n, i) (CHILD(n, NCH(n) + i))
|
||||
#define TYPE(n) ((n)->n_type)
|
||||
#define STR(n) ((n)->n_str)
|
||||
#define LINENO(n) ((n)->n_lineno)
|
||||
|
||||
/* Assert that the type of a node is what we expect */
|
||||
#define REQ(n, type) assert(TYPE(n) == (type))
|
||||
|
|
|
@ -521,10 +521,6 @@ static PyObject *parsestr(struct compiling *, const node *n, int *bytesmode);
|
|||
static PyObject *parsestrplus(struct compiling *, const node *n,
|
||||
int *bytesmode);
|
||||
|
||||
#ifndef LINENO
|
||||
#define LINENO(n) ((n)->n_lineno)
|
||||
#endif
|
||||
|
||||
#define COMP_GENEXP 0
|
||||
#define COMP_LISTCOMP 1
|
||||
#define COMP_SETCOMP 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue