Kaydet (Commit) 6fc5aecd authored tarafından Guido van Rossum's avatar Guido van Rossum

ported back to Think C

üst 9784295b
...@@ -36,7 +36,7 @@ extern PyObject *WinObj_WhichWindow(WindowPtr); ...@@ -36,7 +36,7 @@ extern PyObject *WinObj_WhichWindow(WindowPtr);
#ifndef HAVE_UNIVERSAL_HEADERS #ifndef HAVE_UNIVERSAL_HEADERS
#define SndCallBackUPP ProcPtr #define SndCallBackUPP ProcPtr
#define NewSndCallBackProc(x) (x) #define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
#define SndListHandle Handle #define SndListHandle Handle
#endif #endif
......
...@@ -21,7 +21,7 @@ includestuff = includestuff + """ ...@@ -21,7 +21,7 @@ includestuff = includestuff + """
#ifndef HAVE_UNIVERSAL_HEADERS #ifndef HAVE_UNIVERSAL_HEADERS
#define SndCallBackUPP ProcPtr #define SndCallBackUPP ProcPtr
#define NewSndCallBackProc(x) (x) #define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
#define SndListHandle Handle #define SndListHandle Handle
#endif #endif
""" """
......
...@@ -41,6 +41,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -41,6 +41,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <AEObjects.h> #include <AEObjects.h>
#include <Desk.h> #include <Desk.h>
#include <Fonts.h> #include <Fonts.h>
#include <TextEdit.h>
#include <Menus.h>
#include <Dialogs.h>
#include <Windows.h>
#ifdef GENERATINGCFM /* Defined to 0 or 1 in Universal headers */ #ifdef GENERATINGCFM /* Defined to 0 or 1 in Universal headers */
#define HAVE_UNIVERSAL_HEADERS #define HAVE_UNIVERSAL_HEADERS
...@@ -147,7 +151,6 @@ get_application_name() ...@@ -147,7 +151,6 @@ get_application_name()
{ {
static char appname[256]; static char appname[256];
FSSpec appspec; FSSpec appspec;
long size;
if (current_process_location(&appspec)) if (current_process_location(&appspec))
return NULL; return NULL;
...@@ -282,6 +285,9 @@ event_loop() ...@@ -282,6 +285,9 @@ event_loop()
static void static void
init_mac_world() init_mac_world()
{ {
#ifdef THINK_C
printf("\n");
#else
MaxApplZone(); MaxApplZone();
InitGraf(&qd.thePort); InitGraf(&qd.thePort);
InitFonts(); InitFonts();
...@@ -290,6 +296,7 @@ init_mac_world() ...@@ -290,6 +296,7 @@ init_mac_world()
InitDialogs((long)0); InitDialogs((long)0);
InitMenus(); InitMenus();
InitCursor(); InitCursor();
#endif
} }
/* Get the argv vector, return argc */ /* Get the argv vector, return argc */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment