mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.
Moved the declarations to pymactoolbox.h.
This commit is contained in:
parent
62d24a0f50
commit
fabd00fa91
4 changed files with 18 additions and 8 deletions
|
@ -346,7 +346,11 @@ int routinename(PyObject *pyobj, object *cobj) { \
|
|||
} \
|
||||
return (*PyMacGluePtr_##routinename)(pyobj, cobj); \
|
||||
}
|
||||
|
||||
GLUE_NEW(FSSpec *, PyMac_BuildFSSpec, "macfs")
|
||||
GLUE_CONVERT(FSSpec, PyMac_GetFSSpec, "macfs")
|
||||
GLUE_NEW(FSRef *, PyMac_BuildFSRef, "macfs")
|
||||
GLUE_CONVERT(FSRef, PyMac_GetFSRef, "macfs")
|
||||
|
||||
GLUE_NEW(AppleEvent *, AEDesc_New, "Carbon.AE") /* XXXX Why by address? */
|
||||
GLUE_CONVERT(AppleEvent, AEDesc_Convert, "Carbon.AE")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue