Commit Graph

876 Commits

Author SHA1 Message Date
Jack Jansen 120a105823 Removed SetScheduleTimes
Added SchedParams
Added docstrings for most routines
1997-06-03 15:29:41 +00:00
Jack Jansen e68a61c95b Added zlib (optional on USE_ZLIB) 1997-06-03 15:28:52 +00:00
Jack Jansen e3ae0dfeb7 Removed old scheduler parameterizing calls and replaced with something
a bit easier to use and understand
1997-06-03 15:28:29 +00:00
Jack Jansen 4a79a4b0a9 Removed SetScheduleTimes and PyMac_DoYieldEnabled
Added [GS]etSchedParams
Added parameter to PyMac_HandleEvent (safe to run python code at this point)
Removed various cruft
1997-06-03 15:27:31 +00:00
Jack Jansen 8d1ac0225c Documented (slightly) the USE_CACHE_ALIGNED define, for the standalone
distribution
1997-05-29 14:57:45 +00:00
Jack Jansen e66b8c8543 Updated for 1.5a2 distribution 1997-05-29 14:57:07 +00:00
Jack Jansen 219e2e2bb3 Projects for 1.5a2 distritbuion 1997-05-29 14:57:04 +00:00
Jack Jansen baa6d551ed Version number and such for 1.5a2 distribution 1997-05-29 14:56:25 +00:00
Jack Jansen 7701fd9af2 Changed release note structure:
- Relnotes contains current release notes
- HISTORY contains all old release notes
1997-05-28 12:01:14 +00:00
Jack Jansen 001aa86d34 Added a range of resource numbers reserved for Bruce 1997-05-28 11:54:43 +00:00
Jack Jansen 549e0ff752 Removed references to StdClib and PLStringFuncs, rebuilt everything 1997-05-23 15:41:54 +00:00
Jack Jansen 6f69c504f1 Nothing important 1997-05-23 15:41:15 +00:00
Jack Jansen 525819017e Changed version string and preferences filename to 1.5a2. 1997-05-23 15:37:54 +00:00
Jack Jansen a07dd0fdd1 Renamed 1997-05-23 15:36:53 +00:00
Jack Jansen e8b9b9f15b Added keys() and mapping interface to shared-library objects, allowing
iteration over all symbols exported
1997-05-23 15:36:13 +00:00
Jack Jansen a39f1b0ce2 - Added Py_GetProgramFullPath
- Added PyMac_StopGUSISpin and have it called at exit time (fixes crash
  when exiting with sockets open)
- Added PLstr... funcs needed by gusi: those provided by StdCLib are
  broken under cfm68k
1997-05-23 15:35:14 +00:00
Jack Jansen 570e4b7ad1 Added PyMac_StopGUSISpin 1997-05-23 15:33:20 +00:00
Jack Jansen 8766dfd9e8 Regenreated for MSL 1997-05-15 11:18:32 +00:00
Jack Jansen b83b46d2c6 MSL errno.h has moved some errors around, and doesn't document
them in comments, so we do that ourselves.
1997-05-15 11:18:13 +00:00
Jack Jansen af647ddc52 Use ProgressBar to show progress in stead of print 1997-05-13 15:42:26 +00:00
Jack Jansen 450ae9f352 Don't free the MacOS_Splash() dialog twice... 1997-05-13 15:41:48 +00:00
Jack Jansen 48c5527c78 Add a few more BringToFont calls 1997-05-13 15:41:07 +00:00
Jack Jansen 79b5bb488e Export a few more New/Convert routines, on Just's request 1997-05-13 11:28:03 +00:00
Jack Jansen 141f9a0f8a Regenrated from CW11 IDE 1997-05-13 11:27:19 +00:00
Jack Jansen 1d63d8c829 Fixes to progress bar by SDM, modified by Jack:
- Window has a titlebar, and title() changes it
- The label is changed with label()
- The window is now movable-modal
- Cancel is now called Stop, and works.
1997-05-12 15:44:14 +00:00
Jack Jansen 8b4c98783d - toolboxmodules built first (others depend on it)
- Changed name of fat interpreter to PythonFAT (Python conflicted with toplevel
  folder of the same name, unfortunately)
1997-05-07 15:52:12 +00:00
Jack Jansen c512be0bb2 Sometimes tried to modify a tuple. Fixed. 1997-05-07 15:50:56 +00:00
Jack Jansen 73d203fb43 Version upped to 1.5a1 1997-05-07 15:49:51 +00:00
Jack Jansen 3edc476b12 Included new MSL error numbers 1997-05-07 15:49:38 +00:00
Jack Jansen e44545fc0b Workaround for bug in MSL and CWGUSI interaction that stopped the
"don't close window on exit" feature to work.
1997-05-07 15:48:54 +00:00
Jack Jansen 3089b7eead - Various names in CodeFragments.h have changed
- a dummy main program was added, so we can use the standard MW MSL
  runtime library for main programs (in stead of rolling our own, as we
  did previously).
1997-05-07 15:48:01 +00:00
Jack Jansen eeccca9bdc - Changed the m# format for PyArg_ParseTuple back to s#
- c2pstr has moved to a different include file
1997-05-07 15:46:31 +00:00
Jack Jansen d1d242ec84 c2pstr has moved to a different include file 1997-05-07 15:45:01 +00:00
Jack Jansen b764eeda56 c2pstring has moved to a different include file 1997-05-07 15:44:31 +00:00
Jack Jansen 1473af76a2 Updated for building with MSL libraries 1997-05-07 15:43:38 +00:00
Jack Jansen 2fe3a371b2 Updated for (optional) use of MSL libraries 1997-05-07 15:42:50 +00:00
Jack Jansen a176485bb7 Updated to use MSL libraries 1997-05-07 15:41:31 +00:00
Jack Jansen 0f00c5e2dc - Use cfmfile to (finally) implement building fat Pythons
- Turned the 10 or so yes/no questions into a single dialog
1997-05-06 16:15:32 +00:00
Jack Jansen c70c350f5d Module to merge 'cfrg' resources (to create fat ppc/cfm68k programs
and shared libraries).
1997-05-06 16:14:34 +00:00
Jack Jansen 1836a62016 NewMovieFromFile has extra parameter and return value 1997-04-09 15:54:54 +00:00
Jack Jansen e0cf87b20d Enabled resID input/output parameter to NewMovieFromFile. This changes
the Python interface, unfortunately.
Added a few calls that were blacklisted for no apparent reason.
1997-04-09 15:53:46 +00:00
Jack Jansen 64639202ba (Optional) MSL compatability 1997-04-08 15:28:05 +00:00
Jack Jansen 184c16031e DisposPtr -> DisposePtr 1997-04-08 15:27:29 +00:00
Jack Jansen 08c3be35c3 Changed the few old routine names still used to the new ones
Started working on MSL support
1997-04-08 15:27:00 +00:00
Jack Jansen 85ae4a82ac Changed [SG]etCRefCon to [SG]etControlReference 1997-04-08 15:26:03 +00:00
Jack Jansen 54956722e5 Modified for (optional) use of MSL 1997-04-08 15:24:58 +00:00
Jack Jansen 9e1be97ddf Fixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS 1997-04-08 15:24:17 +00:00
Jack Jansen f73bab7f96 Added an attribute string_id_to_buffer, which gives the offset you
have to add to the id() of a string to get the address of the
data. This is a horrible and error-prone hack, but unfortunately it is
one that is needed for playing audio and crearing pixmaps. Having the
constant here is at least marginally better than the previous practice
of having the constant 16 all over the place...
1997-04-03 14:51:03 +00:00
Jack Jansen 377df98005 - Most errors are *not* OSErr style, so raise better exceptions (with
textual messages)
- Plugged a memory leak or two
1997-04-03 14:48:04 +00:00
Jack Jansen cb2554effa Still not a real test, but at least it runs again 1997-04-03 14:45:28 +00:00
Jack Jansen 1801aad5dc Use MacOS.string_id_to_buffer for id() to buffer address hack 1997-04-03 14:44:41 +00:00
Jack Jansen 4240b610f3 Use MacOS.string_id_to_buffer for the hack to convert string id() to
buffer address.
1997-04-03 14:44:07 +00:00
Jack Jansen 827eecd290 Converted to CW11. 1997-02-24 14:03:45 +00:00
Jack Jansen 666212d429 Make cache-alignment work always (in stead of 50% of the time:-) 1997-02-24 14:00:52 +00:00
Jack Jansen c587301e2e - Changed GestaltEqu.h to Gestalt.h
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
1997-02-24 13:59:38 +00:00
Jack Jansen 4a8c54e6d9 - Changed GestaltEqu.h to Gestalt.h
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
- Regenerated bgen modules from new universal headers
- Changed some of the s# in PyArg_ParseTuple to m# (unfortunately:
  this should have been a different commit)
1997-02-24 13:56:59 +00:00
Jack Jansen 6a528149db Re-generated from new (CW11) universal headers 1997-02-24 13:52:56 +00:00
Jack Jansen eea9ab723d Rebuilt everything with Guido's new sources, added a few modules here
and there, etc. These projects are still CW10.
1997-02-20 15:28:31 +00:00
Jack Jansen ab786562b0 Added calldll module 1997-02-20 15:27:44 +00:00
Jack Jansen 0040b4704e - Put USE_MAC_DYNAMIC_LOADING beack here in stead of auto-enabling it
in importdl.c (I had just one crash too many with a static python
  importing a dynamic module)
- On powerpc, enable USE_CACHE_ALIGNED with a linesize of 32 bytes.
1997-02-20 15:25:49 +00:00
Jack Jansen 7e94404081 Only go into eventloop/interrupt check 10 times per second 1997-02-20 15:23:18 +00:00
Jack Jansen 4f27a55e80 Comments around identifier after #endif 1997-02-20 15:22:17 +00:00
Jack Jansen c1cd2ca999 Added operator, errno and soundex modules. 1997-02-20 15:20:46 +00:00
Jack Jansen e0e1f1a25d Redid arg/return handling (still not as I would like it to be, though). 1997-02-20 15:18:32 +00:00
Jack Jansen b3928d2ffd An initial stab at calling random C routines from Python 1997-02-17 16:56:56 +00:00
Jack Jansen ce7fc98d86 Initial stab at calling C routines from python dynamically 1997-02-17 16:56:14 +00:00
Jack Jansen 3c2871e1df The USE_CACHE_ALIGNING define now has a value: the number of *words*
in a cacheline.
1997-02-03 15:06:45 +00:00
Jack Jansen b4ef4c6d4c Optionally (on USE_CACHE_ALIGN) extend overhead structure to align
returned addresses on 16-byte cacheline boundary.
1997-02-01 23:44:50 +00:00
Jack Jansen 42218ce33c Added/updated copyright notices
(and the &*^$%@ resource files got binhexed again, sigh)
1997-01-31 16:15:11 +00:00
Jack Jansen 02dee9b1a9 Added _tkinter modules in Image extension 1997-01-31 16:13:26 +00:00
Jack Jansen 19a14b6635 Image libraries moved and small things 1997-01-31 16:11:43 +00:00
Jack Jansen f5c20575cb Renamed 1997-01-30 15:48:07 +00:00
Jack Jansen 22023f4b77 Added imgpng 1997-01-30 15:47:08 +00:00
Jack Jansen 6ad8d13fe2 "ported" Guido's embedding demo to the mac, and wrote some minimal
notes on embedding on the mac.
1997-01-15 16:53:37 +00:00
Jack Jansen 52ac037249 Added PyMac_Initialize() routine, to be used by embedding programs (in
stead of standard Py_Initialize(), which it calls).
1997-01-15 15:49:08 +00:00
Jack Jansen 8dc797d1f8 Return preferences of unknown type as opaque data 1997-01-10 15:25:47 +00:00
Jack Jansen 466be801fd Minor fix to get non-gusi python to compile again 1997-01-10 15:25:06 +00:00
Jack Jansen 8dc8a6e4be Mac-specific version of getmtime (for non-GUSI Python, which needs
different include files)
1997-01-10 15:24:19 +00:00
Jack Jansen 4b76ba3280 High-level interface to Internet Config
(and readability fix to icgluetest.py)
1997-01-09 16:26:23 +00:00
Jack Jansen 52e87f3773 Added icglue modules and (optionally) NumPy and PIL extensions 1997-01-07 16:24:18 +00:00
Jack Jansen b28efe669c - Added optional profiling support
- Added Internet Config interface
- Use different ports of zlib and libpng
1997-01-07 16:22:39 +00:00
Jack Jansen 8c6932136c Added profiler initialization/finalization code (if __profile__ is defined) 1997-01-07 16:19:42 +00:00
Jack Jansen 8ce72f50b5 Low-level interface to Internet Config (to be augmented by nice Python
wrapper shortly)
1997-01-07 16:18:32 +00:00
Jack Jansen 3beb3363d4 Minimal test of icglue module 1997-01-07 16:17:44 +00:00
Jack Jansen f3dd5aab2f - CWGUSI has moved
- Changed instructions for Tcl 7.6/Tk 4.2
1996-12-23 17:29:51 +00:00
Jack Jansen a742d117db Added a chapter on using OSAXen 1996-12-23 17:28:53 +00:00
Jack Jansen a83caa0331 Added range of resource-ids for twit. 1996-12-23 17:23:23 +00:00
Jack Jansen c75e1d052b Added Application.cleanup method which asks all windows to close
themselves and returns true if they did.
1996-12-23 17:22:40 +00:00
Jack Jansen 81aa0e2888 Added gdbm (if USE_GDBM defined) 1996-12-23 17:21:20 +00:00
Jack Jansen b280e2bac2 Moved resources around to forestall conflicts with debuggee 1996-12-23 17:11:00 +00:00
Jack Jansen 3097463ef9 Added gdbm 1996-12-23 17:09:51 +00:00
Jack Jansen 83b17e8045 Added gdbm plugins, changed jpeg library to v6, various minor changes 1996-12-23 17:00:31 +00:00
Jack Jansen e1d325fb40 Added gdbm plugins 1996-12-23 16:56:19 +00:00
Jack Jansen 8bd7c56459 If sys.argv is empty ask for input file and output folder 1996-12-23 16:54:51 +00:00
Jack Jansen 3d919c4d5b Added reference to pdf documentation and bbpy, correctly explained
difference between aetools.Error and MacOS.Error for appletscript
programs.
1996-11-20 15:40:42 +00:00
Jack Jansen 0fb1d82698 Added reference to pdf documentation and bbpy, correctly explained
difference between aetools.Error and MacOS.Error for appletscript
programs.
1996-11-20 15:13:24 +00:00
Jack Jansen e1d8c9bade Fixed FSSpec->pathname code to add colon if the fsspec points to a disk. 1996-11-20 14:58:27 +00:00
Jack Jansen 56c3c7632e Fixed bundle to allow any object (file, folder, disk) to be dropped on
an applet.
1996-11-20 14:57:27 +00:00
Jack Jansen a918b8c4f6 Fixed to allow sys.path initializer to be longer than 255 chars. 1996-11-20 14:55:26 +00:00
Jack Jansen d8597858a9 Add twit "home" location to sys.path (so you can put the applet on the
desktop)
1996-11-11 15:40:45 +00:00
Jack Jansen 115c1144ea Changed project segment structure to (more-or-less) match directory
structure.
1996-11-09 19:12:03 +00:00
Jack Jansen abc2db7b68 Updated (which should have been done before the 1.4 distribution). 1996-11-09 18:48:49 +00:00
Jack Jansen 6c11f7444c Added PyMac_GetFullPath(), PyMac_ApplicationPath and PyMac_ApplicationFSSpec 1996-11-09 18:48:06 +00:00
Jack Jansen 84fb1fab1f Got rid of nfullpath() 1996-11-09 18:46:57 +00:00
Jack Jansen 26ee1260a2 Got rid of nfullpath in favor of PyMac_GetFullPath (which was pretty
much identical anyway).
Initialize PyMac_ApplicationPath and PyMac_ApplicationFSSpec to point
to the current application.
1996-11-09 18:45:18 +00:00
Jack Jansen 8096daad4f When loading a PYC resource check whether the filename is the
application, and if so take a shortcut. This should speedup loading
PYC resources when running off a CDROM quite a bit.
1996-11-09 18:43:44 +00:00
Jack Jansen 6c06590305 More sensible default sys.path 1996-11-09 18:42:13 +00:00
Jack Jansen 297d7dd2c9 Keep the folder structure in Mac:mwerks:projects similar to the
toplevel build folder structure.
1996-11-09 18:36:00 +00:00
Jack Jansen 612db8f679 Removed addpack calls 1996-11-09 18:34:30 +00:00
Jack Jansen 7b6aa0a78c Removed old project file, als restructured projects directory to
reflect build directory structure (the latter done by hand)
1996-11-09 18:29:30 +00:00
Jack Jansen 5265ae4c6d Probably just binhexed again... 1996-10-23 15:53:32 +00:00
Jack Jansen 230ad2cb8b Different default location for distribution templates 1996-10-23 15:52:56 +00:00
Jack Jansen c42c0b76c6 Only copy project files from build* and plugins to the projects
folder, leave other projects where they are
1996-10-23 15:52:16 +00:00
Jack Jansen d2034c1a63 Build imgmodules.cfm68k too 1996-10-23 15:51:35 +00:00
Jack Jansen 3a9b3b5943 Added USE_MALLOC_DEBUG (disabled) 1996-10-23 15:50:26 +00:00
Jack Jansen 05d9836462 Project files for 1.4 release 1996-10-23 15:49:36 +00:00
Jack Jansen 46ed276bc3 Malloc debugging now flagged with USE_MALLOC_DEBUG 1996-10-23 15:46:57 +00:00
Jack Jansen 6b9e56012a Updated to cw10 1996-10-23 15:46:25 +00:00
Jack Jansen d6fccdffdc Fixed gusi preferences 1996-10-23 15:45:36 +00:00
Jack Jansen a1255e0c4e removed unused var 1996-10-23 15:44:27 +00:00
Jack Jansen 176f3a9339 Added support for tab hooks 1996-10-23 15:43:46 +00:00
Jack Jansen b7e82c1c0c Raise a more intellegible error in the case of missing keyword args 1996-10-23 15:43:04 +00:00
Jack Jansen ae178eaea6 Added HAVE_STRFTIME 1996-10-23 15:42:01 +00:00
Jack Jansen 70e413dee0 Added a note on swed and htmled examples, added tab support, fixed typo 1996-10-23 15:40:48 +00:00
Jack Jansen 92ca16c335 Modified to work together with BBPy
Re-enabled splash screen
1996-10-23 15:38:26 +00:00
Jack Jansen 84872293dd Get preference file name from a resource.
Changed for 1.8.0 CWGUSI release
1996-10-22 15:33:02 +00:00
Jack Jansen d09deac2da Also put aliases to PythonCore{PPC,CFM68K} in the extensions folder 1996-10-22 15:32:06 +00:00
Jack Jansen 2d359bf212 Updated the instructions for the 1.4 release 1996-10-22 15:29:58 +00:00
Jack Jansen e272303dc1 Added a note about incorrect "PythonCore not found" message
Added a few comments on preference file handling.
1996-10-22 15:29:15 +00:00
Jack Jansen 061ac50ec9 Added a note about PythonApplet name 1996-10-22 15:27:56 +00:00
Jack Jansen baffd68a19 Version upped to 1.4, removed some unused dialogs, added STR resource
with preference filename.
1996-10-22 15:26:48 +00:00
Jack Jansen 83c74dfa2a - Get preference filename from a resource
- Create the file if it doesn't exist and don't be fussy about it
1996-10-22 15:25:42 +00:00
Jack Jansen d081b13c0d Added resource for preference file name 1996-10-22 15:24:21 +00:00
Jack Jansen f8c684d32c Ported to CW10 1996-10-16 15:30:24 +00:00
Jack Jansen 319f1a25fc Added a warning about gusi cfm68k "far data" 1996-10-16 15:28:30 +00:00
Jack Jansen 6d1356e9a6 Changed Types to types. 1996-10-15 16:32:07 +00:00
Jack Jansen 59b912adf5 Fixed xstat to again include resroucefork size, creator, type. Obtain
thru macstat(), but other values via stat() (so os.stat() and
os.xstat() agree).
1996-10-15 16:13:33 +00:00
Jack Jansen 3a4b3b0132 Fixed flashing in ProgressBar update. 1996-10-15 16:11:50 +00:00
Jack Jansen a58d89eec4 'documented' resource-number useage of EditPythonPrefs 1996-10-11 13:19:52 +00:00
Jack Jansen 145c92dfb5 Moved resources to 510/511: the numbers above 512 gave problems when
editing preferences in applets with their own dialogs
1996-10-11 11:30:26 +00:00
Jack Jansen 0eb8837560 Prepared for Tk windowing implementation 1996-10-09 09:38:46 +00:00
Jack Jansen b96aeafdc3 tweaked some of the positions of interface elements. 1996-10-09 09:38:06 +00:00
Jack Jansen 3c7739a754 Create img modules for cfm68k too. 1996-10-08 09:25:02 +00:00
Jack Jansen 6f1ee20501 Use mac_image (from cmif stuff)
Fixed off-by-four error
Keep data around so it won't get reclaimed
1996-10-04 15:22:37 +00:00
Jack Jansen 30fe363fd8 Fixed progressbar cleanup 1996-10-04 15:21:00 +00:00
Jack Jansen 7df3606f0d Fixed object-handler-install bug 1996-10-01 11:41:14 +00:00
Jack Jansen 9f2ff9124c Fixed bug in object-handler install arg handling 1996-10-01 10:48:45 +00:00
Jack Jansen cfb60ee1e8 Fixed very nasty null-dereferencing bug in DisposeControl/destroy
object.
1996-10-01 10:46:46 +00:00
Jack Jansen eb76b8484d Added DebugStr method to drop into low-level debugger 1996-09-30 14:43:22 +00:00
Jack Jansen 05cf7e040b Added VCHECK compile time option that fills allocated and freed blocks
with garbage.
1996-09-30 14:42:28 +00:00