summaryrefslogtreecommitdiffstats
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-09-20 23:02:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-09-20 23:02:10 (GMT)
commitd4efd9eb1534eeead7f56c89d1b5e394d8633990 (patch)
tree434f841f14949c0c0e09b9012f1b22842ffae97a /Include/symtable.h
parent2bc5c0be0141501c23eeb2bc96c33632443186ba (diff)
downloadcpython-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.h2
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;