Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bcf3b56e
Commit
bcf3b56e
authored
Feb 20, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also set cur dir for standard get/put file
parent
86b4049b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Mac/Compat/chdir.c
Mac/Compat/chdir.c
+9
-0
No files found.
Mac/Compat/chdir.c
View file @
bcf3b56e
...
...
@@ -4,6 +4,10 @@
#include "macdefs.h"
/* Last directory used by Standard File */
#define SFSaveDisk (*(short *)0x214)
#define CurDirStore (*(long *)0x398)
/* Change current directory. */
int
...
...
@@ -19,5 +23,10 @@ chdir(path)
errno
=
ENOENT
;
return
-
1
;
}
if
(
PBHGetVol
(
&
pb
,
FALSE
)
==
noErr
)
{
/* Set the Standard File directory */
SFSaveDisk
=
-
pb
.
ioWDVRefNum
;
CurDirStore
=
pb
.
ioWDDirID
;
}
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment