diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-11 21:16:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-11 21:16:03 (GMT) |
commit | 9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0 (patch) | |
tree | c12e44689277430502086274a8cb1ab103a8d8be /Mac/Compat | |
parent | 5e80a7579918dca87a31725e379cb3ea79e2a7a5 (diff) | |
download | cpython-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/Compat')
-rw-r--r-- | Mac/Compat/getbootvol.c | 2 | ||||
-rw-r--r-- | Mac/Compat/getwd.c | 3 | ||||
-rw-r--r-- | Mac/Compat/macstat.h | 1 | ||||
-rw-r--r-- | Mac/Compat/sync.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Compat/getbootvol.c b/Mac/Compat/getbootvol.c index 8f5d28c..df450c6 100644 --- a/Mac/Compat/getbootvol.c +++ b/Mac/Compat/getbootvol.c @@ -5,7 +5,7 @@ #include "macdefs.h" char * -getbootvol() +getbootvol(void) { short vrefnum; static unsigned char name[32]; diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c index 27f68a2..1487fb0 100644 --- a/Mac/Compat/getwd.c +++ b/Mac/Compat/getwd.c @@ -32,8 +32,7 @@ #define ROOTID 2 /* Root directory ID */ char * -getwd(cwd) - char *cwd; +getwd(char *cwd) { /* Universal parameter block. */ union { diff --git a/Mac/Compat/macstat.h b/Mac/Compat/macstat.h index 64ace4e..d6cad85 100644 --- a/Mac/Compat/macstat.h +++ b/Mac/Compat/macstat.h @@ -27,6 +27,7 @@ struct macstat { #define S_IWRITE 0200 #define S_IEXEC 0100 +extern int macstat(char *, struct macstat *); /* To stop inclusion of MWerks header: */ #ifndef _STAT #define _STAT diff --git a/Mac/Compat/sync.c b/Mac/Compat/sync.c index a6487e1..944ba23 100644 --- a/Mac/Compat/sync.c +++ b/Mac/Compat/sync.c @@ -6,7 +6,7 @@ #include "macdefs.h" int -sync() +sync(void) { if (FlushVol((StringPtr)0, 0) == noErr) return 0; |