summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-09-01 23:39:58 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-09-01 23:39:58 (GMT)
commitfabd00fa91277d2536d97d033e0f7ac561c65fab (patch)
tree12d421896780b1360337deb8627d82d69ebad0de /Mac/Modules
parent62d24a0f50db4b959ef32ac0e7b9946cc045ca08 (diff)
downloadcpython-fabd00fa91277d2536d97d033e0f7ac561c65fab.zip
cpython-fabd00fa91277d2536d97d033e0f7ac561c65fab.tar.gz
cpython-fabd00fa91277d2536d97d033e0f7ac561c65fab.tar.bz2
Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.
Moved the declarations to pymactoolbox.h.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/macfsmodule.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 6204cee..19724cd 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -41,7 +41,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern int _PyMac_GetFSSpec(PyObject *, FSSpec *);
+extern PyObject *_PyMac_BuildFSRef(FSRef *);
+extern int _PyMac_GetFSSpec(PyObject *, FSSpec *);
+extern PyObject *_PyMac_BuildFSRef(FSRef *);
#define PyMac_GetFSSpec _PyMac_GetFSSpec
+#define PyMac_BuildFSSpec _PyMac_BuildFSSpec
+#define PyMac_GetFSRef _PyMac_GetFSRef
+#define PyMac_BuildFSRef _PyMac_BuildFSRef
#endif
static PyObject *ErrorObject;
@@ -1207,6 +1213,9 @@ initmacfs(void)
PyObject *m, *d;
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(FSSpec, PyMac_GetFSSpec);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(FSRef, PyMac_GetFSRef);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(FSSpec *, PyMac_BuildFSSpec);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(FSRef *, PyMac_BuildFSRef);
/* Create the module and add the functions */
m = Py_InitModule("macfs", mfs_methods);