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
76974a88
Commit
76974a88
authored
Jun 27, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Porting to CW CFM68K
parent
02a607d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
Python/errors.c
Python/errors.c
+1
-1
Python/importdl.c
Python/importdl.c
+4
-1
Python/pythonmain.c
Python/pythonmain.c
+3
-0
No files found.
Python/errors.c
View file @
76974a88
...
...
@@ -60,7 +60,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
#ifdef __CFM68K__
#ifdef
SYMANTEC
__CFM68K__
#pragma lib_export on
#endif
...
...
Python/importdl.c
View file @
76974a88
...
...
@@ -151,7 +151,7 @@ typedef void (*dl_funcptr)();
#ifdef USE_MAC_DYNAMIC_LOADING
#include <CodeFragments.h>
#ifdef __CFM68K__
/* Really just an older version of Universal Headers */
#ifdef
SYMANTEC
__CFM68K__
/* Really just an older version of Universal Headers */
#define CFragConnectionID ConnectionID
#define kLoadCFrag 0x01
#endif
...
...
@@ -268,7 +268,10 @@ load_dynamic_module(name, pathname, fp)
/* First resolve any aliases to find the real file */
(
void
)
FSMakeFSSpec
(
0
,
0
,
Pstring
(
pathname
),
&
libspec
);
#if !(defined(__MWERKS__) && defined(__CFM68K__))
/* Bug: not in library */
err
=
ResolveAliasFile
(
&
libspec
,
1
,
&
isfolder
,
&
didsomething
);
#endif
if
(
err
)
{
sprintf
(
buf
,
"%s: %s"
,
pathname
,
PyMac_StrError
(
err
));
err_setstr
(
ImportError
,
buf
);
...
...
Python/pythonmain.c
View file @
76974a88
...
...
@@ -106,6 +106,8 @@ realmain(argc, argv)
fprintf
(
stderr
,
"usage: %s [-d] [-i] [-s] [-u ] [-v] [-c cmd | file | -] [arg] ...
\n
"
,
argv
[
0
]);
#if !(defined(__CFM68K__) && defined(__MWERKS__))
/* Mwerks cfm68k linker doesn't like these... */
fprintf
(
stderr
,
"\
\n
\
Options and arguments (and corresponding environment variables):
\n
\
...
...
@@ -128,6 +130,7 @@ PYTHONSTARTUP: file executed on interactive startup (no default)\n\
PYTHONPATH : colon-separated list of directories prefixed to the
\n
\
default module search path. The result is sys.path.
\n
\
"
);
#endif
/* !cfm68k || !mwerks */
exit
(
2
);
/*NOTREACHED*/
...
...
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