summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-09-20 23:02:10 +0000
committerBenjamin Peterson <benjamin@python.org>2010-09-20 23:02:10 +0000
commitd4efd9eb1534eeead7f56c89d1b5e394d8633990 (patch)
tree434f841f14949c0c0e09b9012f1b22842ffae97a /Include
parent2bc5c0be0141501c23eeb2bc96c33632443186ba (diff)
downloadcpython-git-d4efd9eb1534eeead7f56c89d1b5e394d8633990.tar.gz
add column offset to all syntax errors
Diffstat (limited to 'Include')
-rw-r--r--Include/symtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index d5ef96f802..9b1b75b823 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;