From ce3a72aec6eaa0293c397c8d0407f7afe0072b2f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 Oct 2007 23:16:50 +0000 Subject: 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. --- Include/fileobject.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/fileobject.h') diff --git a/Include/fileobject.h b/Include/fileobject.h index 2d8c397989..b65d9847d4 100644 --- a/Include/fileobject.h +++ b/Include/fileobject.h @@ -9,6 +9,9 @@ extern "C" { #define PY_STDIOTEXTMODE "b" PyAPI_FUNC(PyObject *) PyFile_FromFile(FILE *, char *, char *, int (*)(FILE*)); +PyAPI_FUNC(PyObject *) PyFile_FromFileEx(FILE *, char *, char *, + int (*)(FILE *), int, char *, + char *); PyAPI_FUNC(PyObject *) PyFile_GetLine(PyObject *, int); PyAPI_FUNC(int) PyFile_WriteObject(PyObject *, PyObject *, int); PyAPI_FUNC(int) PyFile_WriteString(const char *, PyObject *); -- cgit v1.2.1