/* Declared in macfsmodule.c: */
extern FSSpec *mfs_GetFSSpecFSSpec();
+extern PyObject *newmfssobject Py_PROTO((FSSpec *));
/* Interrupt code variables: */
static int interrupted; /* Set to true when cmd-. seen */
** Replacement routines for the PLstr... functions so we don't need
** StdCLib. Moreover, that implementation is broken under cfm68k...
*/
-void
+pascal void
PLstrcpy(to, fr)
unsigned char *to, *fr;
{
memcpy(to, fr, fr[0]+1);
}
-int
+pascal int
PLstrcmp(s1, s2)
unsigned char *s1, *s2;
{
return 0;
}
-unsigned char *
+pascal unsigned char *
PLstrrchr(str, chr)
unsigned char *str;
unsigned char chr;
return 1;
}
+/* Convert FSSpec to PyObject */
+PyObject *PyMac_BuildFSSpec(FSSpec *v)
+{
+ return newmfssobject(v);
+}
/* Convert a Python object to a Rect.
The object must be a (left, top, right, bottom) tuple.