summaryrefslogtreecommitdiffstats
path: root/Mac/Include/macglue.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:53:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:53:49 (GMT)
commit5f653091d1c5a453b8a0c71b304c600c0f3f52b0 (patch)
treeb8f0cbf2b6633cbc04b22a056135a42501c4d268 /Mac/Include/macglue.h
parent9589e93491544e4f2775e7928734851703edeaa1 (diff)
downloadcpython-5f653091d1c5a453b8a0c71b304c600c0f3f52b0.zip
cpython-5f653091d1c5a453b8a0c71b304c600c0f3f52b0.tar.gz
cpython-5f653091d1c5a453b8a0c71b304c600c0f3f52b0.tar.bz2
- Moved some useful routines from macosmodule.c here
- Added GetFSSpec (tuple-style), BuildFSSpec and Pstring (platform-independent correct conversion of C to Pascal strings)
Diffstat (limited to 'Mac/Include/macglue.h')
-rw-r--r--Mac/Include/macglue.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index d5be4fb..7c074d3 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -1,3 +1,12 @@
-char *macstrerror Py_PROTO((int)); /* strerror with mac errors */
-PyObject *PyErr_Mac Py_PROTO((PyObject *, int)); /* Exception with a mac error */
-int PyMac_Idle Py_PROTO((void)); /* Idle routine */
+#include <Files.h>
+#include <Types.h>
+#include <Resources.h>
+
+char *macstrerror PROTO((int)); /* strerror with mac errors */
+object *PyErr_Mac PROTO((object *, int)); /* Exception with a mac error */
+int PyMac_Idle PROTO((void)); /* Idle routine */
+int GetOSType PROTO((object *, ResType *)); /* argument parser for OSType */
+int GetStr255 PROTO((object *, Str255)); /* argument parser for Str255 */
+int GetFSSpec PROTO((object *, FSSpec *)); /* argument parser for FSSpec */
+object *PyMac_BuildFSSpec PROTO((FSSpec *)); /* Convert FSSpec to python object */
+