mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
This commit is contained in:
parent
e89bc75048
commit
d4d7728440
16 changed files with 618 additions and 51 deletions
|
@ -10,12 +10,12 @@
|
|||
guesstabsize(path)
|
||||
char *path;
|
||||
{
|
||||
char s[256];
|
||||
Str255 s;
|
||||
int refnum;
|
||||
Handle h;
|
||||
int tabsize = 0;
|
||||
s[0] = strlen(path);
|
||||
strncpy(s+1, path, s[0]);
|
||||
memcpy(s+1, path, s[0]);
|
||||
refnum = OpenResFile(s);
|
||||
/* printf("%s --> refnum=%d\n", path, refnum); */
|
||||
if (refnum == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue