summaryrefslogtreecommitdiffstats
path: root/Mac/Python
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/Python
parent48d071d3027996d50a807139e0bfb8d392695bd8 (diff)
downloadcpython-d50e4e1c544aae822fe50d1a4f953f6329dfc827.zip
cpython-d50e4e1c544aae822fe50d1a4f953f6329dfc827.tar.gz
cpython-d50e4e1c544aae822fe50d1a4f953f6329dfc827.tar.bz2
More Pstring() stuff and some cosmetics
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macguesstabsize.c2
-rw-r--r--Mac/Python/macsetfiletype.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/Mac/Python/macguesstabsize.c b/Mac/Python/macguesstabsize.c
index 56b39a1..70314f6 100644
--- a/Mac/Python/macguesstabsize.c
+++ b/Mac/Python/macguesstabsize.c
@@ -17,14 +17,12 @@ guesstabsize(path)
s[0] = strlen(path);
memcpy(s+1, path, s[0]);
refnum = OpenResFile(s);
-/* printf("%s --> refnum=%d\n", path, refnum); */
if (refnum == -1)
return 0;
UseResFile(refnum);
h = GetIndResource('ETAB', 1);
if (h != 0) {
tabsize = (*(short**)h)[1];
-/* printf("tabsize=%d\n", tabsize); */
}
CloseResFile(refnum);
return tabsize;
diff --git a/Mac/Python/macsetfiletype.c b/Mac/Python/macsetfiletype.c
index 70647b9..328f022 100644
--- a/Mac/Python/macsetfiletype.c
+++ b/Mac/Python/macsetfiletype.c
@@ -14,7 +14,7 @@ long creator, type;
FInfo info;
unsigned char *pname;
- pname = (StringPtr) c2pstr(name);
+ pname = (StringPtr) Pstring(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;