mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Guess tab size on the Mac from tab resource.
This commit is contained in:
parent
24e77d429d
commit
91ece4205b
1 changed files with 7 additions and 0 deletions
|
|
@ -84,6 +84,13 @@ parsefile(fp, filename, g, start, ps1, ps2, n_ret)
|
|||
fprintf(stderr, "no mem for tok_setupf\n");
|
||||
return E_NOMEM;
|
||||
}
|
||||
#ifdef macintosh
|
||||
{
|
||||
int tabsize = guesstabsize(filename);
|
||||
if (tabsize > 0)
|
||||
tok->tabsize = tabsize;
|
||||
}
|
||||
#endif
|
||||
ret = parsetok(tok, g, start, n_ret);
|
||||
if (ret == E_TOKEN || ret == E_SYNTAX) {
|
||||
char *p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue