mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Initial port to CodeWarrior CFM68K support (mainly by disabling
unsupported features).
This commit is contained in:
parent
eceb3e3f0a
commit
f74f63a43f
8 changed files with 24 additions and 5 deletions
|
|
@ -24,12 +24,15 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
/* Macintosh Applet Python main program */
|
||||
|
||||
#ifdef __CFM68K__
|
||||
#ifdef SYMANTEC__CFM68K__
|
||||
#pragma lib_export on
|
||||
#endif
|
||||
|
||||
extern void PyMac_InitApplication();
|
||||
|
||||
main() {
|
||||
#if defined(__MWERKS__) && defined(__CFM68K__)
|
||||
printf("Hello, world!\n");
|
||||
#endif
|
||||
PyMac_InitApplication();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#define HAVE_UNIVERSAL_HEADERS
|
||||
#endif
|
||||
|
||||
#ifdef __CFM68K__
|
||||
#ifdef SYMANTEC__CFM68K__
|
||||
#pragma lib_export on
|
||||
#endif
|
||||
|
||||
|
|
@ -120,6 +120,9 @@ get_full_path (FSSpec *fss, char *buf)
|
|||
char tmpbuf[256];
|
||||
int plen;
|
||||
|
||||
#if defined(__MWERKS__) && defined(__CFM68K__)
|
||||
return -1; /* get_folder_parent doesn't work */
|
||||
#endif
|
||||
fss_current = *fss;
|
||||
plen = fss_current.name[0];
|
||||
memcpy(buf, &fss_current.name[1], plen);
|
||||
|
|
|
|||
|
|
@ -223,6 +223,9 @@ static void
|
|||
scan_event_queue(flush)
|
||||
int flush;
|
||||
{
|
||||
#if defined(__MWERKS__) && defined(__CFM68K__)
|
||||
return; /* No GetEvQHdr yet */
|
||||
#else
|
||||
register EvQElPtr q;
|
||||
|
||||
q = (EvQElPtr) GetEvQHdr()->qHead;
|
||||
|
|
@ -237,6 +240,7 @@ scan_event_queue(flush)
|
|||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue