diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-01-18 13:53:49 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-01-18 13:53:49 (GMT) |
commit | 5f653091d1c5a453b8a0c71b304c600c0f3f52b0 (patch) | |
tree | b8f0cbf2b6633cbc04b22a056135a42501c4d268 /Mac/Include/macglue.h | |
parent | 9589e93491544e4f2775e7928734851703edeaa1 (diff) | |
download | cpython-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.h | 15 |
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 */ + |