summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:58:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:58:04 (GMT)
commitd50e4e1c544aae822fe50d1a4f953f6329dfc827 (patch)
treeaf06af8873f0a28e458e06fd2e7ad03bab0301d3 /Mac/Modules/macmodule.c
parent48d071d3027996d50a807139e0bfb8d392695bd8 (diff)
downloadcpython-d50e4e1c544aae822fe50d1a4f953f6329dfc827.zip
cpython-d50e4e1c544aae822fe50d1a4f953f6329dfc827.tar.gz
cpython-d50e4e1c544aae822fe50d1a4f953f6329dfc827.tar.bz2
More Pstring() stuff and some cosmetics
Diffstat (limited to 'Mac/Modules/macmodule.c')
-rw-r--r--Mac/Modules/macmodule.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/Mac/Modules/macmodule.c b/Mac/Modules/macmodule.c
index 8db0cea..fbb408b 100644
--- a/Mac/Modules/macmodule.c
+++ b/Mac/Modules/macmodule.c
@@ -447,6 +447,18 @@ mac_write(self, args)
}
#endif /* !__MWERKS__ */
+#ifdef MALLOC_DEBUG
+static object *
+mac_mstats(self, args)
+ object*self;
+ object *args;
+{
+ mstats("python");
+ INCREF(None);
+ return None;
+}
+#endif MALLOC_DEBUG
+
static struct methodlist mac_methods[] = {
{"chdir", mac_chdir},
#ifndef __MWERKS__
@@ -477,6 +489,9 @@ static struct methodlist mac_methods[] = {
#ifndef __MWERKS__
{"write", mac_write},
#endif
+#ifdef MALLOC_DEBUG
+ {"mstats", mac_mstats},
+#endif
{NULL, NULL} /* Sentinel */
};
@@ -485,7 +500,7 @@ static struct methodlist mac_methods[] = {
void
initmac()
{
- object *m, *d, *v;
+ object *m, *d;
m = initmodule("mac", mac_methods);
d = getmoduledict(m);