summaryrefslogtreecommitdiffstats
path: root/Mac/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-11 21:16:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-11 21:16:03 (GMT)
commit9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0 (patch)
treec12e44689277430502086274a8cb1ab103a8d8be /Mac/Include
parent5e80a7579918dca87a31725e379cb3ea79e2a7a5 (diff)
downloadcpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.zip
cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.gz
cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.bz2
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
Diffstat (limited to 'Mac/Include')
-rw-r--r--Mac/Include/macdefs.h6
-rw-r--r--Mac/Include/macglue.h19
2 files changed, 21 insertions, 4 deletions
diff --git a/Mac/Include/macdefs.h b/Mac/Include/macdefs.h
index 9cc3ae1..8898b49 100644
--- a/Mac/Include/macdefs.h
+++ b/Mac/Include/macdefs.h
@@ -15,8 +15,10 @@
#endif
/* We may be able to use a std routine in think, don't know */
-unsigned char *Pstring(char *);
-
+extern unsigned char *Pstring(char *);
+extern char *getbootvol(void);
+extern char *getwd(char *);
+extern int sync(void);
/* Universal constants: */
#define MAXPATH 256
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index f96b96f..5767368 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -81,6 +81,7 @@ void PyMac_GetSchedParams(PyMacSchedParams *); /* Get schedulers params */
void PyMac_SetSchedParams(PyMacSchedParams *); /* Set schedulers params */
PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
+int PyOS_CheckStack(void); /* Check that we aren't overflowing our stack */
int PyMac_DoYield(int, int); /* Yield cpu. First arg is maxtime, second ok to call python */
int PyMac_HandleEvent(EventRecord *); /* Handle one event, possibly in Python */
void PyMac_HandleEventIntern(EventRecord *); /* Handle one event internal only */
@@ -133,8 +134,22 @@ short PyMac_OpenPrefFile(void); /* From macgetpath.c, open and return preferen
/* From macfiletype.c: */
-long getfiletype(char *); /* Get file type */
-int setfiletype(char *, long, long); /* Set file creator and type */
+long PyMac_getfiletype(char *); /* Get file type */
+int PyMac_setfiletype(char *, long, long); /* Set file creator and type */
+
+/* from macmain.c: */
+void PyMac_Exit(int);
+void PyMac_InitApplication(void);
+#ifdef USE_MAC_APPLET_SUPPORT
+void PyMac_InitApplet(void);
+#endif
+
+/* from macgetargv: */
+OSErr PyMac_init_process_location(void);
+#ifndef HAVE_STRDUP
+char * strdup(const char *str);
+#endif
+
#ifdef __cplusplus
}
#endif