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
f905a7fe
Commit
f905a7fe
authored
May 06, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Walker's changes fixed so they work in THINK C 5
parent
842f63a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
Mac/Modules/macmodule.c
Mac/Modules/macmodule.c
+17
-10
No files found.
Mac/Modules/macmodule.c
View file @
f905a7fe
...
...
@@ -36,9 +36,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <fcntl.h>
#include "macdefs.h"
#include "dir.h"
#include "stat.h"
#include "
::unixemu:
macdefs.h"
#include "
::unixemu:
dir.h"
#include "
::unixemu:
stat.h"
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
...
...
@@ -46,17 +46,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Prototypes for Unix simulation on Mac */
int
access
PROTO
((
char
*
path
,
int
mode
));
int
chdir
PROTO
((
char
*
path
));
int
access
PROTO
((
c
onst
c
har
*
path
,
int
mode
));
int
chdir
PROTO
((
c
onst
c
har
*
path
));
char
*
getbootvol
PROTO
((
void
));
char
*
getwd
PROTO
((
char
*
));
int
mkdir
PROTO
((
char
*
path
,
int
mode
));
DIR
*
opendir
PROTO
((
char
*
));
int
mkdir
PROTO
((
const
char
*
path
,
int
mode
));
DIR
*
opendir
PROTO
((
char
*
));
void
closedir
PROTO
((
DIR
*
));
struct
direct
*
readdir
PROTO
((
DIR
*
));
int
rmdir
PROTO
((
char
*
path
));
int
stat
PROTO
((
char
*
path
,
struct
stat
*
buf
));
int
rmdir
PROTO
((
const
char
*
path
));
int
stat
PROTO
((
const
char
*
path
,
struct
stat
*
buf
));
int
sync
PROTO
((
void
));
int
unlink
PROTO
((
const
char
*
));
...
...
@@ -67,7 +68,7 @@ static object *MacError; /* Exception mac.error */
static
object
*
mac_error
()
{
return
err_errno
(
MacError
);
return
err_errno
(
MacError
);
}
/* MAC generic methods */
...
...
@@ -160,6 +161,8 @@ mac_close(self, args)
return
None
;
}
#ifdef MPW
static
object
*
mac_dup
(
self
,
args
)
object
*
self
;
...
...
@@ -195,6 +198,8 @@ mac_fdopen(self, args)
return
newopenfileobject
(
fp
,
"(fdopen)"
,
mode
,
fclose
);
}
#endif
/* MPW */
static
object
*
mac_getbootvol
(
self
,
args
)
object
*
self
;
...
...
@@ -424,8 +429,10 @@ static struct methodlist mac_methods[] = {
{
"access"
,
mac_access
},
{
"chdir"
,
mac_chdir
},
{
"close"
,
mac_close
},
#ifdef MPW
{
"dup"
,
mac_dup
},
{
"fdopen"
,
mac_fdopen
},
#endif
{
"getbootvol"
,
mac_getbootvol
},
/* non-standard */
{
"getcwd"
,
mac_getcwd
},
{
"listdir"
,
mac_listdir
},
...
...
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