diff options
author | Guido van Rossum <guido@python.org> | 1998-04-09 21:38:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-09 21:38:06 (GMT) |
commit | 926f13a0819eb3d40a0d0fd38ff25ef0c7d489b3 (patch) | |
tree | a8328e6f26b187da5385cec3a0955ad8b4fc9539 /Parser/tokenizer.h | |
parent | e77a992a0d77fa09f0f541d8730d439abda81187 (diff) | |
download | cpython-926f13a0819eb3d40a0d0fd38ff25ef0c7d489b3.zip cpython-926f13a0819eb3d40a0d0fd38ff25ef0c7d489b3.tar.gz cpython-926f13a0819eb3d40a0d0fd38ff25ef0c7d489b3.tar.bz2 |
Add checking for inconsistent tab usage
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r-- | Parser/tokenizer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h index 837bdca..a47b537 100644 --- a/Parser/tokenizer.h +++ b/Parser/tokenizer.h @@ -62,6 +62,12 @@ struct tok_state { int lineno; /* Current line number */ int level; /* () [] {} Parentheses nesting level */ /* Used to allow free continuations inside them */ + /* Stuff for checking on different tab sizes */ + char *filename; /* For error messages */ + int altwarning; /* Issue warning if alternate tabs don't match */ + int alterror; /* Issue error if alternate tabs don't match */ + int alttabsize; /* Alternate tab spacing */ + int altindstack[MAXINDENT]; /* Stack of alternate indents */ }; extern struct tok_state *PyTokenizer_FromString Py_PROTO((char *)); |