diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-23 23:16:25 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-23 23:16:25 (GMT) |
commit | b734869f46cdbbfff231fdab49dc0ad4e3b45623 (patch) | |
tree | 54d71b8e166220f0c933ec78490a5a6eb850856d /Mac/Modules/file | |
parent | 74d93c81c190f9dfd7302e17536a49b8dd4f7da6 (diff) | |
download | cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.zip cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.gz cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.bz2 |
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Diffstat (limited to 'Mac/Modules/file')
-rw-r--r-- | Mac/Modules/file/_Filemodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c index ad90145..70a8720 100644 --- a/Mac/Modules/file/_Filemodule.c +++ b/Mac/Modules/file/_Filemodule.c @@ -2740,24 +2740,28 @@ void init_File(void) PyDict_SetItemString(d, "Error", File_Error) != 0) return; FInfo_Type.ob_type = &PyType_Type; + if (PyType_Ready(&FInfo_Type) < 0) return; Py_INCREF(&FInfo_Type); PyModule_AddObject(m, "FInfo", (PyObject *)&FInfo_Type); /* Backward-compatible name */ Py_INCREF(&FInfo_Type); PyModule_AddObject(m, "FInfoType", (PyObject *)&FInfo_Type); Alias_Type.ob_type = &PyType_Type; + if (PyType_Ready(&Alias_Type) < 0) return; Py_INCREF(&Alias_Type); PyModule_AddObject(m, "Alias", (PyObject *)&Alias_Type); /* Backward-compatible name */ Py_INCREF(&Alias_Type); PyModule_AddObject(m, "AliasType", (PyObject *)&Alias_Type); FSSpec_Type.ob_type = &PyType_Type; + if (PyType_Ready(&FSSpec_Type) < 0) return; Py_INCREF(&FSSpec_Type); PyModule_AddObject(m, "FSSpec", (PyObject *)&FSSpec_Type); /* Backward-compatible name */ Py_INCREF(&FSSpec_Type); PyModule_AddObject(m, "FSSpecType", (PyObject *)&FSSpec_Type); FSRef_Type.ob_type = &PyType_Type; + if (PyType_Ready(&FSRef_Type) < 0) return; Py_INCREF(&FSRef_Type); PyModule_AddObject(m, "FSRef", (PyObject *)&FSRef_Type); /* Backward-compatible name */ |