summaryrefslogtreecommitdiff
path: root/Include/fileobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-19 23:16:50 +0000
committerGuido van Rossum <guido@python.org>2007-10-19 23:16:50 +0000
commitce3a72aec6eaa0293c397c8d0407f7afe0072b2f (patch)
tree646cf27667087a48b908f330759fb94271b43f60 /Include/fileobject.h
parent75a902db7859a4751743e98530c5d96a672641be (diff)
downloadcpython-git-ce3a72aec6eaa0293c397c8d0407f7afe0072b2f.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 'Include/fileobject.h')
-rw-r--r--Include/fileobject.h3
1 files changed, 3 insertions, 0 deletions
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 *);