diff options
author | Guido van Rossum <guido@python.org> | 1995-01-21 13:46:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-21 13:46:04 (GMT) |
commit | 9aa3d1370eafa5f5a62eba73585ea6932b169821 (patch) | |
tree | 5ceeb49df67b5cd61574e082b5c97e4a9216fc55 /Mac/Modules/macosmodule.c | |
parent | 796b259a1cc402711c530c996be94cef13c4e350 (diff) | |
download | cpython-9aa3d1370eafa5f5a62eba73585ea6932b169821.zip cpython-9aa3d1370eafa5f5a62eba73585ea6932b169821.tar.gz cpython-9aa3d1370eafa5f5a62eba73585ea6932b169821.tar.bz2 |
renamed Get routines to PyMac_Get; added macfs to config.c
Diffstat (limited to 'Mac/Modules/macosmodule.c')
-rw-r--r-- | Mac/Modules/macosmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index 833ef42..215fd72 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -157,7 +157,7 @@ MacOS_GetResource(PyObject *self, PyObject *args) ResType rt; int id; Handle h; - if (!PyArg_ParseTuple(args, "O&i", GetOSType, &rt, &id)) + if (!PyArg_ParseTuple(args, "O&i", PyMac_GetOSType, &rt, &id)) return NULL; h = GetResource(rt, id); return (PyObject *)Rsrc_FromHandle(h); @@ -169,7 +169,7 @@ MacOS_GetNamedResource(PyObject *self, PyObject *args) ResType rt; Str255 name; Handle h; - if (!PyArg_ParseTuple(args, "O&O&", GetOSType, &rt, GetStr255, &name)) + if (!PyArg_ParseTuple(args, "O&O&", PyMac_GetOSType, &rt, PyMac_GetStr255, &name)) return NULL; h = GetNamedResource(rt, name); return (PyObject *)Rsrc_FromHandle(h); @@ -186,7 +186,7 @@ MacOS_GetFileType(PyObject *self, PyObject *args) PyObject *type, *creator, *res; OSErr err; - if (!PyArg_ParseTuple(args, "O&", GetStr255, &name)) + if (!PyArg_ParseTuple(args, "O&", PyMac_GetStr255, &name)) return NULL; if ((err = GetFInfo(name, 0, &info)) != noErr) { errno = err; @@ -210,7 +210,7 @@ MacOS_SetFileType(PyObject *self, PyObject *args) OSErr err; if (!PyArg_ParseTuple(args, "O&O&O&", - GetStr255, &name, GetOSType, &type, GetOSType, &creator)) + PyMac_GetStr255, &name, PyMac_GetOSType, &type, PyMac_GetOSType, &creator)) return NULL; if ((err = GetFInfo(name, 0, &info)) != noErr) { errno = err; |