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
d1f06313
Commit
d1f06313
authored
Aug 01, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Minimum stacksize is now 8K for PPC, 4K for 68K
- Added PyMac_BuildNumVersion
parent
64d376a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
Mac/Python/macglue.c
Mac/Python/macglue.c
+20
-7
No files found.
Mac/Python/macglue.c
View file @
d1f06313
...
...
@@ -64,6 +64,18 @@ typedef FileFilterYDProcPtr FileFilterYDUPP;
#include <signal.h>
#include <stdio.h>
/*
** When less than this amount of stackspace is left we
** raise a MemoryError.
*/
#ifndef MINIMUM_STACK_SIZE
#ifdef __powerc
#define MINIMUM_STACK_SIZE 8192
#else
#define MINIMUM_STACK_SIZE 4096
#endif
#endif
/*
** We have to be careful, since we can't handle
** things like updates (and they'll keep coming back if we don't
...
...
@@ -140,12 +152,6 @@ PyMac_FixGUSIcd()
pb
.
ioWDDirID
=
curdirfss
.
parID
;
if
(
PBHSetVol
(
&
pb
,
0
)
!=
noErr
)
return
;
#if 0
/* Set standard-file working directory */
LMSetSFSaveDisk(-curdirfss.vRefNum);
LMSetCurDirStore(curdirfss.parID);
#endif
}
#endif
...
...
@@ -233,7 +239,7 @@ PyOS_CheckStack()
long
left
;
left
=
StackSpace
();
if
(
left
<
4000
)
if
(
left
<
MINIMUM_STACK_SIZE
)
return
-
1
;
return
0
;
}
...
...
@@ -650,6 +656,13 @@ PyMac_BuildOSType(OSType t)
return
PyString_FromStringAndSize
((
char
*
)
&
t
,
4
);
}
/* Convert an NumVersion value to a 4-element tuple */
PyObject
*
PyMac_BuildNumVersion
(
NumVersion
t
)
{
return
Py_BuildValue
(
"(hhhh)"
,
t
.
majorRev
,
t
.
minorAndBugRev
,
t
.
stage
,
t
.
nonRelRev
);
}
/* Convert a Python string object to a Str255 */
int
...
...
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