summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-12 04:29:01 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-12 04:29:01 (GMT)
commitd6495b5944b9fd5ac3c142cf79957084f47a3024 (patch)
tree534cb1f113425e68a6c1050c03c7183479598cb1 /Modules/zipimport.c
parentaefd8ca701e314c4f1643fb92912323c6425bcce (diff)
downloadcpython-d6495b5944b9fd5ac3c142cf79957084f47a3024.zip
cpython-d6495b5944b9fd5ac3c142cf79957084f47a3024.tar.gz
cpython-d6495b5944b9fd5ac3c142cf79957084f47a3024.tar.bz2
remove forward declarations. No constructors to move for these files. Makes
code work with C++ compilers.
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 637dc48..3e37656 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -40,7 +40,6 @@ struct _zipimporter {
PyObject *files; /* dict with file info {path: toc_entry} */
};
-static PyTypeObject ZipImporter_Type;
static PyObject *ZipImportError;
static PyObject *zip_directory_cache = NULL;
@@ -958,7 +957,7 @@ normalize_line_endings(PyObject *source)
PyObject *fixed_source;
/* one char extra for trailing \n and one for terminating \0 */
- buf = PyMem_Malloc(PyString_Size(source) + 2);
+ buf = (char *)PyMem_Malloc(PyString_Size(source) + 2);
if (buf == NULL) {
PyErr_SetString(PyExc_MemoryError,
"zipimport: no memory to allocate "