commit | af334387d12e12677460b4f558ed0a670fdfcebf | [log] [tgz] |
---|---|---|
author | Collin Winter <collinw@gmail.com> | Thu Mar 08 21:46:15 2007 +0000 |
committer | Collin Winter <collinw@gmail.com> | Thu Mar 08 21:46:15 2007 +0000 |
tree | afd0ade34810b6b4ee2845ad0bbb98382980a4d6 | |
parent | 7afaa88ebc7c4b1eec87c50989b599e2147e1247 [diff] |
Add a missing forward declaration for PyFileIO_Type. The _fileio module now compiles with --with-pydebug.
diff --git a/Modules/_fileio.c b/Modules/_fileio.c index 9ab27c1..adbf01b 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c
@@ -44,6 +44,8 @@ PyObject *weakreflist; } PyFileIOObject; +PyTypeObject PyFileIO_Type; + #define PyFileIO_Check(op) (PyObject_TypeCheck((op), &PyFileIO_Type)) /* Note: if this function is changed so that it can return a true value,