Commit Graph

54 Commits

Author SHA1 Message Date
Jack Jansen 033b79c483 Regenerated. 2002-04-23 22:46:01 +00:00
Jack Jansen 714d7268d5 Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.
2002-03-25 00:32:17 +00:00
Jack Jansen 9d79990ac7 Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.

Also blacklisted some constants with definitions that were not Python-compatible.
2002-03-24 23:04:18 +00:00
Just van Rossum 3e584aaa2a Ugh, by all means, _do_ report exceptions somehow ;-) 2002-01-04 13:49:36 +00:00
Jack Jansen 086f7c3890 There's a new include file AEInteraction.h which contains AESend and friends. 2001-12-17 11:47:27 +00:00
Jack Jansen 2168e9d602 Adapted for Universal Headers 3.4 2001-12-16 20:18:40 +00:00
Guido van Rossum 146483964e Patch supplied by Burton Radons for his own SF bug #487390: Modifying
type.__module__ behavior.

This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this).  Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right.  Apologies if they're
not.  This also touches the weakref docs, which contains a sample type
object initializer.  It also touches the mmap test output, because the
mmap type's repr is included in that output.  It touches object.h to
put the correct description in a comment.
2001-12-08 18:02:58 +00:00
Jack Jansen b3be216b41 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
changes from start of branch upto r22b2 were already merged, of course).
2001-11-30 14:16:36 +00:00
Jack Jansen fd064863eb Shut up many more gcc warnings. 2001-09-05 10:31:52 +00:00
Jack Jansen 06d2e1af35 Regenerated without default int return types. 2001-09-04 22:19:18 +00:00
Jack Jansen 62d24a0f50 Don't call PyMac_HandleEvent if we're in unix-Python. 2001-09-01 23:38:50 +00:00
Jack Jansen 25a5bd7708 Renamed. 2001-08-23 14:11:10 +00:00
Jack Jansen 50ecb0ad83 Renamed the Mac toolbox modules to have an initial _ in their name. 2001-08-23 14:02:09 +00:00
Jack Jansen 77105a960b The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package. 2001-08-23 13:51:46 +00:00
Jack Jansen cbed91b4db Merging appropriate 2.1.1 fixes back into the main trunk. 2001-08-03 13:31:36 +00:00
Jack Jansen 2942131dac Got rid of a silly #if. 2001-06-20 21:44:38 +00:00
Jack Jansen ff75c214ef Adapted to Universal Headers 3.4: new refcontype and use UPP names in stead of Proc names for callback creation. 2001-06-20 20:53:38 +00:00
Jack Jansen fa77e1a1b1 Lots more Carbon/Carbon.h includes, new UPP routine names, function prototypes. Most toolbox modules now compile, link and import in MacOSX-MachO python. 2001-05-22 21:56:42 +00:00
Jack Jansen 0e04eecdbf First step in porting MacPython modules to OSX/unix: break all references between modules except for the obj_New() and obj_Convert() routines, the PyArg_Parse and Py_BuildValue helpers.
And these can now be vectored through glue routines (by defining USE_TOOLBOX_OBJECT_GLUE) which will do the necessary imports, whereupon the module's init routine will tell the glue routine about the real conversion routine address and everything is fine again.
2001-05-17 21:58:34 +00:00
Jack Jansen 7ee67a1224 Remove (unused) regex imports. 2001-01-02 22:02:45 +00:00
Jack Jansen 8ed81303f6 Use new multi-input-file feature of bgen in stead of @-file hack to parse multiple header files. A side effect is that the ObjectSupportLib routines are now also available in Python. 2000-12-12 22:09:11 +00:00
Jack Jansen f7d5aa61d3 Adapted to Universal Headers 3.3.2. More to follow. 2000-12-10 23:43:49 +00:00
Jack Jansen 742ca0385a Updated for new AppleScript structure and moved to Lib (it's far too useful to lurk in the source folder). 2000-08-20 20:06:51 +00:00
Jack Jansen 18b47a07b7 Fixed again to work with the old scripting interface (so we can test the new one actually still works). 2000-08-20 20:02:39 +00:00
Jack Jansen a44923fbfe Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define. 2000-07-14 22:52:50 +00:00
Jack Jansen 74a1e63a89 Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef. 2000-07-14 22:37:27 +00:00
Jack Jansen 9d8b96c850 pymactoolbox.h contains protoypes for all externally visible toolbox module
functions. Include it in stead of duplicating the declarations everywhere. Also
cleaned up toolbox module exports, and got rid of resNotFound error.
2000-07-14 22:16:45 +00:00
Jack Jansen e79dc76f53 Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
2000-06-02 21:35:07 +00:00
Jack Jansen def77e5346 AETransactionID was mistakenly defined as a short (it is a long). Fixed. 2000-03-14 23:29:08 +00:00
Jack Jansen b1b78d85d3 Bgen now understands more constant definitions, but that means that a few which are not parseable in Python have to be blacklisted. 1999-12-14 15:47:01 +00:00
Jack Jansen deff89c8be Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate. 1998-10-12 20:53:15 +00:00
Jack Jansen 0c4d947eac Replaced addpack by handcrafted code to find the bgen stuff. 1998-04-17 14:07:56 +00:00
Jack Jansen 21f96872f2 Regenerated from Universal Headers 3.0.1. Some new calls are
blacklisted, because they are not available in classic 68k programs,
and bgen doesn't have a way to put #ifdef/#endif in the generated
code. For now we only implement calls that work on all three models.
1998-02-20 16:02:09 +00:00
Jack Jansen a755e68df6 Export type objects to Python 1997-09-20 17:40:22 +00:00
Jack Jansen f69633e4a1 Made AEDesc_{New,Convert} global 1997-08-15 14:31:13 +00:00
Jack Jansen 3757523f1e Adapted to new event handling. It is now also possible to abort out of
an AESend with command-. (unless specifically disabled, of course).
1997-06-20 16:19:14 +00:00
Jack Jansen d84e7aaf00 Regenerated 1996-08-02 11:24:34 +00:00
Jack Jansen ded81a1ffe Removed ...gen.py files from repository 1996-04-16 14:33:21 +00:00
Jack Jansen 46d9e79de6 bgen-generators now drop the python definition file straight in the
Lib:toolbox folder.
1996-04-12 16:29:23 +00:00
Jack Jansen d390325bbb Modules implementing WWW and URL suite, and a module to control netscape. 1996-01-29 15:45:59 +00:00
Jack Jansen 425e9eb6cb - Added color window/pixmap support
- Added support for obtaining pixmap data
- Added OptResObj_* routines for optional handles
1995-12-12 15:02:03 +00:00
Jack Jansen 8ce4d51068 Different arg to GetEventHandler (but I cannot really remember fixing
this.... Hope it is correct)
1995-08-17 14:24:35 +00:00
Jack Jansen 5050199787 Fixed incorrect call to InstallHandler and a few other things 1995-07-29 13:58:41 +00:00
Jack Jansen 5ccd826aab Gensuitemodule generates python classes from aete/aeut resources
test_suite is a tiny test program for such a generated class
1995-07-17 11:43:20 +00:00
Jack Jansen 5ae5fdf901 Generated anew after fixing aescan.py 1995-07-17 11:40:10 +00:00
Jack Jansen 7433568172 Also scan AERegistry.h and AEObjects.h and create .py definition
files.

Some methods had turned to functions again. Fixed.
1995-07-17 11:39:04 +00:00
Jack Jansen 7d0bc8343f Ported to Universal Header 2.0.1f (i.e. CW6) 1995-06-09 20:56:31 +00:00
Jack Jansen c7cfb95559 Rather massive changes:
- Make the stuff run on Jack's machine (and hopefully all machines) in
  stead of Guido's only (addpack stuff)
- Use the Universal Headers in stead of the Think headers
- Fixed the test programs to use the new routine names
1995-06-05 22:34:12 +00:00
Guido van Rossum e375b3f1e5 use PyMac_Yield() instead of PyMac_Idle() 1995-03-23 10:41:41 +00:00
Guido van Rossum 227a4232e6 the usual 1995-03-10 14:42:57 +00:00