summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macglue.c
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/Python/macglue.c
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/Python/macglue.c')
-rw-r--r--Mac/Python/macglue.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 1266b59..607f4bb 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -63,7 +63,19 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <TextUtils.h>
#ifdef __MWERKS__
#include <SIOUX.h>
+extern void SIOUXSetupMenus(void);
+extern void SIOUXDoAboutBox(void);
#endif
+#ifdef USE_GUSI
+/* Functions we redefine because they're in obscure libraries */
+extern void SpinCursor(short x);
+extern void RotateCursor(short x);
+extern pascal void PLstrcpy(unsigned char *, unsigned char *);
+extern pascal int PLstrcmp(unsigned char *, unsigned char *);
+extern pascal unsigned char *PLstrrchr(unsigned char *, unsigned char);
+
+#endif
+
#ifdef USE_GUSI1
#include <TFileSpec.h> /* For Path2FSSpec */
#include <GUSI.h>
@@ -103,7 +115,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define fnfErr -43
/* Declared in macfsmodule.c: */
-extern FSSpec *mfs_GetFSSpecFSSpec();
+extern FSSpec *mfs_GetFSSpecFSSpec(PyObject *);
extern PyObject *newmfssobject(FSSpec *);
/* Interrupt code variables: */
@@ -246,15 +258,13 @@ PyMac_StopGUSISpin() {
** StdCLib. Moreover, that implementation is broken under cfm68k...
*/
pascal void
-PLstrcpy(to, fr)
- unsigned char *to, *fr;
+PLstrcpy(unsigned char *to, unsigned char *fr)
{
memcpy(to, fr, fr[0]+1);
}
pascal int
-PLstrcmp(s1, s2)
- unsigned char *s1, *s2;
+PLstrcmp(unsigned char *s1, unsigned char *s2)
{
int res;
int l = s1[0] < s2[0] ? s1[0] : s2[0];
@@ -272,9 +282,7 @@ PLstrcmp(s1, s2)
}
pascal unsigned char *
-PLstrrchr(str, chr)
- unsigned char *str;
- unsigned char chr;
+PLstrrchr(unsigned char *str, unsigned char chr)
{
unsigned char *ptr = 0;
unsigned char *p;
@@ -457,8 +465,8 @@ PyOS_InterruptOccurred()
return interrupted;
}
/* Check whether we are in the foreground */
-int
-PyMac_InForeground()
+static int
+PyMac_InForeground(void)
{
static ProcessSerialNumber ours;
static inited;