diff options
author | Guido van Rossum <guido@python.org> | 1998-04-10 19:35:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-10 19:35:06 (GMT) |
commit | 6135df6626dd49b4dc4e1b570e0c9d1339fbf462 (patch) | |
tree | 2e2fb7092a0b2149035e04e1364911b711aaac5e | |
parent | c09520078329d5e172359017c7d772eff6437f7b (diff) | |
download | cpython-6135df6626dd49b4dc4e1b570e0c9d1339fbf462.zip cpython-6135df6626dd49b4dc4e1b570e0c9d1339fbf462.tar.gz cpython-6135df6626dd49b4dc4e1b570e0c9d1339fbf462.tar.bz2 |
Declare and use Py_TabcheckFlag here.
-rw-r--r-- | Parser/parsetok.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 93df0d6..6453b6a 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -39,6 +39,8 @@ PERFORMANCE OF THIS SOFTWARE. #include "parsetok.h" #include "errcode.h" +int Py_TabcheckFlag; + /* Forward */ static node *parsetok Py_PROTO((struct tok_state *, grammar *, int, @@ -93,6 +95,12 @@ PyParser_ParseFile(fp, filename, g, start, ps1, ps2, err_ret) err_ret->error = E_NOMEM; return NULL; } + if (Py_TabcheckFlag || Py_VerboseFlag) { + tok->filename = filename; + tok->altwarning = (filename != NULL); + if (Py_TabcheckFlag >= 2) + tok->alterror++; + } #ifdef macintosh { |