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
becdbec8
Commit
becdbec8
authored
Feb 14, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ported to Think C
parent
e2aaa9dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
Mac/Include/macglue.h
Mac/Include/macglue.h
+8
-0
Mac/Modules/config.c
Mac/Modules/config.c
+15
-0
Mac/Modules/macfsmodule.c
Mac/Modules/macfsmodule.c
+1
-0
Mac/Python/macglue.c
Mac/Python/macglue.c
+2
-1
No files found.
Mac/Include/macglue.h
View file @
becdbec8
...
@@ -22,10 +22,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -22,10 +22,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
******************************************************************/
#ifndef SystemSevenOrLater
#define SystemSevenOrLater 1
#endif
#include <Types.h>
#include <Types.h>
#include <Files.h>
#include <Files.h>
#include <Events.h>
#include <Events.h>
#ifdef GENERATINGCFM
/* Defined to 0 or 1 in Universal headers */
#define HAVE_UNIVERSAL_HEADERS
#endif
char
*
macstrerror
(
int
);
/* strerror with mac errors */
char
*
macstrerror
(
int
);
/* strerror with mac errors */
extern
int
PyMac_DoYieldEnabled
;
/* Don't do eventloop when false */
extern
int
PyMac_DoYieldEnabled
;
/* Don't do eventloop when false */
...
...
Mac/Modules/config.c
View file @
becdbec8
...
@@ -99,6 +99,20 @@ getversion()
...
@@ -99,6 +99,20 @@ getversion()
#else
#else
strcat
(
version
,
" [MW 68K compiler]"
);
strcat
(
version
,
" [MW 68K compiler]"
);
#endif
#endif
#endif
#ifdef THINK_C
#ifdef __SC__
strcat
(
version
,
" [Symantec Think C compiler]"
);
#else
strcat
(
version
,
" [Think C compiler]"
);
#endif
#endif
#ifdef MPW
#ifdef __SC__
strcat
(
version
,
" [Symantec MPW C compiler]"
);
#else
strcat
(
version
,
" [Apple MPW C compiler]"
);
#endif
#endif
#endif
return
version
;
return
version
;
}
}
...
@@ -335,6 +349,7 @@ struct {
...
@@ -335,6 +349,7 @@ struct {
#ifdef THINK_C
#ifdef THINK_C
{
"Snd"
,
initSnd
},
{
"Snd"
,
initSnd
},
{
"Win"
,
initWin
},
{
"Win"
,
initWin
},
#endif
/* -- ADDMODULE MARKER 2 -- */
/* -- ADDMODULE MARKER 2 -- */
...
...
Mac/Modules/macfsmodule.c
View file @
becdbec8
...
@@ -26,6 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -26,6 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "modsupport.h"
/* For getargs() etc. */
#include "modsupport.h"
/* For getargs() etc. */
#include "macglue.h"
#include "macglue.h"
#include <Memory.h>
#include <Files.h>
#include <Files.h>
#include <StandardFile.h>
#include <StandardFile.h>
#include <Aliases.h>
#include <Aliases.h>
...
...
Mac/Python/macglue.c
View file @
becdbec8
...
@@ -23,6 +23,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -23,6 +23,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
******************************************************************/
#include "Python.h"
#include "Python.h"
#include "macglue.h"
#include "macglue.h"
#include <OSUtils.h>
/* for Set(Current)A5 */
#include <OSUtils.h>
/* for Set(Current)A5 */
...
@@ -401,7 +402,7 @@ PyMac_GetPythonDir()
...
@@ -401,7 +402,7 @@ PyMac_GetPythonDir()
prefrh
=
FSpOpenResFile
(
&
dirspec
,
fsRdWrShPerm
);
prefrh
=
FSpOpenResFile
(
&
dirspec
,
fsRdWrShPerm
);
if
(
prefrh
==
-
1
)
{
if
(
prefrh
==
-
1
)
{
/* It doesn't exist. Try to create it */
/* It doesn't exist. Try to create it */
FSpCreateResFile
(
&
dirspec
,
'
PYTH
'
,
'
pref
'
,
NULL
);
FSpCreateResFile
(
&
dirspec
,
'
PYTH
'
,
'
pref
'
,
0
);
prefrh
=
FSpOpenResFile
(
&
dirspec
,
fsRdWrShPerm
);
prefrh
=
FSpOpenResFile
(
&
dirspec
,
fsRdWrShPerm
);
if
(
prefrh
==
-
1
)
{
if
(
prefrh
==
-
1
)
{
cannotmodify
=
1
;
cannotmodify
=
1
;
...
...
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