Declare and use Py_TabcheckFlag here.

This commit is contained in:
Guido van Rossum 1998-04-10 19:35:06 +00:00
parent c095200783
commit 6135df6626
1 changed files with 8 additions and 0 deletions

View File

@ -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
{