diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-09-20 23:02:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-09-20 23:02:10 (GMT) |
commit | d4efd9eb1534eeead7f56c89d1b5e394d8633990 (patch) | |
tree | 434f841f14949c0c0e09b9012f1b22842ffae97a /Include/symtable.h | |
parent | 2bc5c0be0141501c23eeb2bc96c33632443186ba (diff) | |
download | cpython-d4efd9eb1534eeead7f56c89d1b5e394d8633990.zip cpython-d4efd9eb1534eeead7f56c89d1b5e394d8633990.tar.gz cpython-d4efd9eb1534eeead7f56c89d1b5e394d8633990.tar.bz2 |
add column offset to all syntax errors
Diffstat (limited to 'Include/symtable.h')
-rw-r--r-- | Include/symtable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/symtable.h b/Include/symtable.h index d5ef96f..9b1b75b 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -46,7 +46,9 @@ typedef struct _symtable_entry { unsigned ste_returns_value : 1; /* true if namespace uses return with an argument */ int ste_lineno; /* first line of block */ + int ste_col_offset; /* offset of first line of block */ int ste_opt_lineno; /* lineno of last exec or import * */ + int ste_opt_col_offset; /* offset of last exec or import * */ int ste_tmpname; /* counter for listcomp temp vars */ struct symtable *ste_table; } PySTEntryObject; |