mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Porting to CW CFM68K
This commit is contained in:
parent
f9480ce4d4
commit
eceb3e3f0a
3 changed files with 8 additions and 2 deletions
|
@ -60,7 +60,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef __CFM68K__
|
#ifdef SYMANTEC__CFM68K__
|
||||||
#pragma lib_export on
|
#pragma lib_export on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ typedef void (*dl_funcptr)();
|
||||||
|
|
||||||
#ifdef USE_MAC_DYNAMIC_LOADING
|
#ifdef USE_MAC_DYNAMIC_LOADING
|
||||||
#include <CodeFragments.h>
|
#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 CFragConnectionID ConnectionID
|
||||||
#define kLoadCFrag 0x01
|
#define kLoadCFrag 0x01
|
||||||
#endif
|
#endif
|
||||||
|
@ -268,7 +268,10 @@ load_dynamic_module(name, pathname, fp)
|
||||||
|
|
||||||
/* First resolve any aliases to find the real file */
|
/* First resolve any aliases to find the real file */
|
||||||
(void)FSMakeFSSpec(0, 0, Pstring(pathname), &libspec);
|
(void)FSMakeFSSpec(0, 0, Pstring(pathname), &libspec);
|
||||||
|
#if !(defined(__MWERKS__) && defined(__CFM68K__))
|
||||||
|
/* Bug: not in library */
|
||||||
err = ResolveAliasFile(&libspec, 1, &isfolder, &didsomething);
|
err = ResolveAliasFile(&libspec, 1, &isfolder, &didsomething);
|
||||||
|
#endif
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
sprintf(buf, "%s: %s", pathname, PyMac_StrError(err));
|
sprintf(buf, "%s: %s", pathname, PyMac_StrError(err));
|
||||||
err_setstr(ImportError, buf);
|
err_setstr(ImportError, buf);
|
||||||
|
|
|
@ -106,6 +106,8 @@ realmain(argc, argv)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"usage: %s [-d] [-i] [-s] [-u ] [-v] [-c cmd | file | -] [arg] ...\n",
|
"usage: %s [-d] [-i] [-s] [-u ] [-v] [-c cmd | file | -] [arg] ...\n",
|
||||||
argv[0]);
|
argv[0]);
|
||||||
|
#if !(defined(__CFM68K__) && defined(__MWERKS__))
|
||||||
|
/* Mwerks cfm68k linker doesn't like these... */
|
||||||
fprintf(stderr, "\
|
fprintf(stderr, "\
|
||||||
\n\
|
\n\
|
||||||
Options and arguments (and corresponding environment variables):\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\
|
PYTHONPATH : colon-separated list of directories prefixed to the\n\
|
||||||
default module search path. The result is sys.path.\n\
|
default module search path. The result is sys.path.\n\
|
||||||
");
|
");
|
||||||
|
#endif /* !cfm68k || !mwerks */
|
||||||
exit(2);
|
exit(2);
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue