summaryrefslogtreecommitdiffstats
path: root/Include/fileobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/fileobject.h')
-rw-r--r--Include/fileobject.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/Include/fileobject.h b/Include/fileobject.h
index c30d63b..7c6bfac 100644
--- a/Include/fileobject.h
+++ b/Include/fileobject.h
@@ -1,9 +1,3 @@
-#ifndef Py_FILEOBJECT_H
-#define Py_FILEOBJECT_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/***********************************************************
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
@@ -16,20 +10,26 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* File object interface */
+#ifndef Py_FILEOBJECT_H
+#define Py_FILEOBJECT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern DL_IMPORT(PyTypeObject) PyFile_Type;
#define PyFile_Check(op) ((op)->ob_type == &PyFile_Type)
-extern DL_IMPORT(PyObject *) PyFile_FromString Py_PROTO((char *, char *));
-extern DL_IMPORT(void) PyFile_SetBufSize Py_PROTO((PyObject *, int));
-extern DL_IMPORT(PyObject *) PyFile_FromFile
- Py_PROTO((FILE *, char *, char *, int (*)Py_FPROTO((FILE *))));
-extern DL_IMPORT(FILE *) PyFile_AsFile Py_PROTO((PyObject *));
-extern DL_IMPORT(PyObject *) PyFile_Name Py_PROTO((PyObject *));
-extern DL_IMPORT(PyObject *) PyFile_GetLine Py_PROTO((PyObject *, int));
-extern DL_IMPORT(int) PyFile_WriteObject Py_PROTO((PyObject *, PyObject *, int));
-extern DL_IMPORT(int) PyFile_SoftSpace Py_PROTO((PyObject *, int));
-extern DL_IMPORT(int) PyFile_WriteString Py_PROTO((char *, PyObject *));
+extern DL_IMPORT(PyObject *) PyFile_FromString(char *, char *);
+extern DL_IMPORT(void) PyFile_SetBufSize(PyObject *, int);
+extern DL_IMPORT(PyObject *) PyFile_FromFile(FILE *, char *, char *,
+ int (*)(FILE *));
+extern DL_IMPORT(FILE *) PyFile_AsFile(PyObject *);
+extern DL_IMPORT(PyObject *) PyFile_Name(PyObject *);
+extern DL_IMPORT(PyObject *) PyFile_GetLine(PyObject *, int);
+extern DL_IMPORT(int) PyFile_WriteObject(PyObject *, PyObject *, int);
+extern DL_IMPORT(int) PyFile_SoftSpace(PyObject *, int);
+extern DL_IMPORT(int) PyFile_WriteString(char *, PyObject *);
#ifdef __cplusplus
}