Initial port to CodeWarrior CFM68K support (mainly by disabling

unsupported features).
This commit is contained in:
Jack Jansen 1995-06-27 13:18:14 +00:00
parent eceb3e3f0a
commit f74f63a43f
8 changed files with 24 additions and 5 deletions

View file

@ -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();
}

View file

@ -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);

View file

@ -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