Mercurial > cpython-lru_cache-weakref
diff Include/node.h @ 36786:57322cb2ca11 legacy-trunk
Patch #1440601: Add col_offset attribute to AST nodes.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 01 Mar 2006 22:49:05 +0000 |
| parents | c7e03cf8333e |
| children | aceb975c4832 169fbbac2dec |
line wrap: on
line diff
--- a/Include/node.h Wed Mar 01 22:45:36 2006 +0000 +++ b/Include/node.h Wed Mar 01 22:49:05 2006 +0000 @@ -11,13 +11,14 @@ short n_type; char *n_str; int n_lineno; + int n_col_offset; int n_nchildren; struct _node *n_child; } node; PyAPI_FUNC(node *) PyNode_New(int type); PyAPI_FUNC(int) PyNode_AddChild(node *n, int type, - char *str, int lineno); + char *str, int lineno, int col_offset); PyAPI_FUNC(void) PyNode_Free(node *n); /* Node access functions */
