summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-26 09:09:48 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-26 09:09:48 (GMT)
commite78344444086581bdf59f13415b0c701e740cce1 (patch)
tree3acac917aadc26e434e55d139ddfcab7d671ef3b /Mac/Modules/macmodule.c
parentf0171a1626164cad064930e60fe5f06ca2c51f8b (diff)
downloadcpython-e78344444086581bdf59f13415b0c701e740cce1.zip
cpython-e78344444086581bdf59f13415b0c701e740cce1.tar.gz
cpython-e78344444086581bdf59f13415b0c701e740cce1.tar.bz2
Intermediate version of changes after porting to MPW 3.2
Diffstat (limited to 'Mac/Modules/macmodule.c')
-rw-r--r--Mac/Modules/macmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/macmodule.c b/Mac/Modules/macmodule.c
index 13d208c..ff06acd 100644
--- a/Mac/Modules/macmodule.c
+++ b/Mac/Modules/macmodule.c
@@ -170,6 +170,8 @@ mac_dup(self, args)
return newintobject((long)fd);
}
+#endif /* MPW */
+
static object *
mac_fdopen(self, args)
object *self;
@@ -189,8 +191,6 @@ mac_fdopen(self, args)
return newopenfileobject(fp, "(fdopen)", mode, fclose);
}
-#endif /* MPW */
-
static object *
mac_getbootvol(self, args)
object *self;
@@ -369,7 +369,7 @@ mac_stat(self, args)
return mac_error();
return mkvalue("(llllllllll)",
(long)st.st_mode,
- (long)st.st_ito, /* XXX st_ino -- typo in THINK C <stat.h>? */
+ (long)st.st_ino,
(long)st.st_dev,
(long)st.st_nlink,
(long)st.st_uid,
@@ -427,8 +427,8 @@ static struct methodlist mac_methods[] = {
{"close", mac_close},
#ifdef MPW
{"dup", mac_dup},
- {"fdopen", mac_fdopen},
#endif
+ {"fdopen", mac_fdopen},
{"getbootvol", mac_getbootvol}, /* non-standard */
{"getcwd", mac_getcwd},
{"listdir", mac_listdir},