]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
move LINENO define to where it actually belongs
authorBenjamin Peterson <benjamin@python.org>
Mon, 16 Jan 2012 22:29:05 +0000 (17:29 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 16 Jan 2012 22:29:05 +0000 (17:29 -0500)
Include/node.h
Python/ast.c

index e23e709fffa30cb625c700201102f54e6957e04f..d161195b230844e1c80c074a8bf8c4740dafceca 100644 (file)
@@ -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))
index 26163f7132109b77e172811b7a1de6a384e93de3..66b85b5a7f532292e54af2b44a31fbc9ac3c64b7 100644 (file)
@@ -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