mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
remove forward declarations. No constructors to move for these files. Makes
code work with C++ compilers.
This commit is contained in:
parent
aefd8ca701
commit
d6495b5944
2 changed files with 1 additions and 6 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue