blob: e2ec8cd11428debcf388d1ea6767530d95e60dc2 [file] [log] [blame]
Guido van Rossumb3404661995-01-22 18:36:13 +00001/***********************************************************
2Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI not be used in advertising or publicity pertaining to
13distribution of the software without specific, written prior permission.
14
15STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
23******************************************************************/
24
Jack Jansen5f653091995-01-18 13:53:49 +000025#include <Types.h>
Guido van Rossumb3404661995-01-22 18:36:13 +000026#include <Files.h>
Jack Jansen5f653091995-01-18 13:53:49 +000027
Guido van Rossum8f691791995-01-18 23:57:26 +000028char *macstrerror Py_PROTO((int)); /* strerror with mac errors */
Guido van Rossumb3404661995-01-22 18:36:13 +000029
Guido van Rossum8f691791995-01-18 23:57:26 +000030PyObject *PyErr_Mac Py_PROTO((PyObject *, int)); /* Exception with a mac error */
Guido van Rossumb3404661995-01-22 18:36:13 +000031
Guido van Rossum8f691791995-01-18 23:57:26 +000032int PyMac_Idle Py_PROTO((void)); /* Idle routine */
Guido van Rossumb3404661995-01-22 18:36:13 +000033
34int PyMac_GetOSType Py_PROTO((PyObject *, OSType *)); /* argument parser for OSType */
35PyObject *PyMac_BuildOSType Py_PROTO((OSType)); /* Convert OSType to PyObject */
36
Guido van Rossum8f691791995-01-18 23:57:26 +000037int PyMac_GetStr255 Py_PROTO((PyObject *, Str255)); /* argument parser for Str255 */
Guido van Rossumb3404661995-01-22 18:36:13 +000038PyObject *PyMac_BuildStr255 Py_PROTO((Str255)); /* Convert Str255 to PyObject */
39
Guido van Rossum8f691791995-01-18 23:57:26 +000040int PyMac_GetFSSpec Py_PROTO((PyObject *, FSSpec *)); /* argument parser for FSSpec */
41PyObject *PyMac_BuildFSSpec Py_PROTO((FSSpec *)); /* Convert FSSpec to PyObject */