mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
This commit is contained in:
parent
5e80a75799
commit
9ae898b415
19 changed files with 83 additions and 41 deletions
|
@ -34,6 +34,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "getapplbycreator.h"
|
||||
|
||||
/* Should this be in macglue.h? */
|
||||
extern FSSpec *mfs_GetFSSpecFSSpec(PyObject *);
|
||||
|
||||
static PyObject *ErrorObject;
|
||||
|
||||
/* ----------------------------------------------------- */
|
||||
|
@ -174,9 +177,8 @@ mfsa_getattr(self, name)
|
|||
return Py_FindMethod(mfsa_methods, (PyObject *)self, name);
|
||||
}
|
||||
|
||||
mfsaobject *
|
||||
newmfsaobject(alias)
|
||||
AliasHandle alias;
|
||||
static mfsaobject *
|
||||
newmfsaobject(AliasHandle alias)
|
||||
{
|
||||
mfsaobject *self;
|
||||
|
||||
|
@ -334,8 +336,7 @@ static PyTypeObject Mfsitype = {
|
|||
** object is a python fsspec object, else NULL
|
||||
*/
|
||||
FSSpec *
|
||||
mfs_GetFSSpecFSSpec(self)
|
||||
PyObject *self;
|
||||
mfs_GetFSSpecFSSpec(PyObject *self)
|
||||
{
|
||||
if ( is_mfssobject(self) )
|
||||
return &((mfssobject *)self)->fsspec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue