summaryrefslogtreecommitdiffstats
path: root/Include/fileobject.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-09 00:20:36 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-09 00:20:36 (GMT)
commitea9cb5aebf38741871ad4f28971dcd23ddd77ad2 (patch)
tree0e891c50f3406cf846cfdad4757464dd087e6592 /Include/fileobject.h
parent5eb6d4e3bf094c33ae66432eeae3668e220dd28d (diff)
downloadcpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.zip
cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.tar.gz
cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.tar.bz2
ANSI-fication and Py_PROTO extermination.
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
}