Skip to content

Commit

Permalink
Lots more Carbon/Carbon.h includes, new UPP routine names, function p…
Browse files Browse the repository at this point in the history
…rototypes. Most toolbox modules now compile, link and import in MacOSX-MachO python.
  • Loading branch information
jackjansen committed May 22, 2001
1 parent 1129671 commit fa77e1a
Show file tree
Hide file tree
Showing 41 changed files with 2,230 additions and 5,765 deletions.
212 changes: 59 additions & 153 deletions Mac/Modules/ae/AEmodule.c

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions Mac/Modules/ae/aesupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ def passInput(self, name):


includestuff = includestuff + """
#ifdef WITHOUT_FRAMEWORKS
#include <AppleEvents.h>
#include <AEObjects.h>
#else
#include <Carbon/Carbon.h>
#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_AEDesc_New(AEDesc *);
Expand Down Expand Up @@ -144,10 +148,10 @@ def passInput(self, name):
"""

initstuff = initstuff + """
upp_AEIdleProc = NewAEIdleProc(AEIdleProc);
upp_GenericEventHandler = NewAEEventHandlerProc(GenericEventHandler);
PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc_New);
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc_Convert);
upp_AEIdleProc = NewAEIdleUPP(AEIdleProc);
upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler);
PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New);
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert);
"""

module = MacModule('AE', 'AE', includestuff, finalstuff, initstuff)
Expand Down
Loading

0 comments on commit fa77e1a

Please sign in to comment.