diff options
author | Guido van Rossum <guido@python.org> | 2007-10-19 23:16:50 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-19 23:16:50 +0000 |
commit | b90cb021b5fc5d33b6edd3f2458561487d711787 (patch) | |
tree | ef30ccc8d310896eff57bc24ec947049d32ec074 /Parser/tokenizer.h | |
parent | aa3b2b6993a20aee9f4e8fecdc66398ac8326155 (diff) | |
download | cpython-b90cb021b5fc5d33b6edd3f2458561487d711787.tar.gz |
Patch 1267 by Christian Heimes.
Move the initialization of sys.std{in,out,err} and __builtin__.open
to C code.
This solves the problem that "python -S" wouldn't work.
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r-- | Parser/tokenizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h index 72982bde47..a66d78e7d9 100644 --- a/Parser/tokenizer.h +++ b/Parser/tokenizer.h @@ -67,6 +67,7 @@ extern void PyTokenizer_Free(struct tok_state *); extern int PyTokenizer_Get(struct tok_state *, char **, char **); extern char * PyTokenizer_RestoreEncoding(struct tok_state* tok, int len, int *offset); +extern char * PyTokenizer_FindEncoding(FILE *fp); #ifdef __cplusplus } |