summaryrefslogtreecommitdiff
path: root/Mac/Python
AgeCommit message (Collapse)AuthorLines
1995-02-27Under MW also be more conservative about events to requestJack Jansen-11/+6
1995-02-26return old value of PyMac_DoYieldEnabled; -1 means do not even check for ↵Guido van Rossum-1/+9
interrupts
1995-02-24MAde a few things more orthogonal and did some cleanups:Jack Jansen-24/+67
- Applications now have their (minimal) main prrogram in macapplication.c and the rest of the init code in macglue.c. - A new define, USE_MAC_APPLET_SUPPORT, independent of USE_MAC_SHARED_LIB - chdir to script directory now done in PyMac_InitApplication.
1995-02-20ported to MPW, moved main() hereGuido van Rossum-15/+31
1995-02-20moved main() to macglue.cGuido van Rossum-12/+0
1995-02-20ported to CFM-68KGuido van Rossum-12/+19
1995-02-20- Added PyMac_GetDirectory call which asks the user to select aJack Jansen-20/+79
directory. - No __main__ resource found message is now a dialog - Fixes wrt stdio window handling in applets. NB: these fixes require a new resource file.
1995-02-19ported back to Think CGuido van Rossum-1/+8
1995-02-19use PyMac_GetArgv (in macgetargv.c) for applet initsGuido van Rossum-17/+8
1995-02-19get argc/argv from AppleEventsGuido van Rossum-0/+325
1995-02-18added applet initialization;Guido van Rossum-12/+74
fewer restrictions on loading modules from resources (+ fix!); macstrerror -> MacOS_StrError
1995-02-18moved most of it to macglue.cGuido van Rossum-67/+6
1995-02-17main program for appletsGuido van Rossum-0/+96
1995-02-15Added support for loading pyc code from a resource.Jack Jansen-0/+115
1995-02-14ported to Think CGuido van Rossum-1/+2
1995-02-13Changed PyMac_GetPythonDir to use a preferences file to store theJack Jansen-4/+46
alias resource. Also added a few comments.
1995-02-13Open library resource file read-onlyJack Jansen-1/+1
1995-02-13null-terminate the error string in macstrerrorGuido van Rossum-0/+1
1995-02-13Glue for the python shared library: an init routine that remembersJack Jansen-0/+65
where we're loaded from and PyMac_AddLibResources() which adds that file to the resource file list.
1995-02-13Various changes wrt shared-library python:Jack Jansen-7/+39
- Moved fileargument to config.c - Added PyMac_AddLibResources() call in case of shlib python - Build argc/argv differently in case of applet template
1995-02-13Added PyMac_GetPythonDir routine which obtains python home directoryJack Jansen-0/+75
from an alias resource (or from the user). Note: this uses a dialog resource so there's an accompanying change in the resource file.
1995-02-13Added getfiletype routineJack Jansen-0/+13
1995-02-02Added stuff so CodeWarrior isn't so verbose about its stdio windowsJack Jansen-0/+9
1995-02-02Added HandleEvent method to macos, so python programs can hand backJack Jansen-12/+23
events they don't want to handle to stdio
1995-01-30added <OSEvents.h> for Think CGuido van Rossum-0/+3
1995-01-27- Moved interrupt code to macglue.cJack Jansen-21/+131
- Added possibility to turn off mainloop event handling - Check interrupts even when not handling events - Be more carefulabout which events we want - Use different method to determine fg/bg
1995-01-26reverse h/v in Point and RectGuido van Rossum-10/+12
1995-01-26Added eventhandling in mainloop/busywait routine plus leaving someJack Jansen-18/+119
cycles for background apps. MacOS has a new method to set the amount of time for bg apps.
1995-01-25Some layout changes; added EventRecord Get/Build functions (as a tuple).Guido van Rossum-11/+96
1995-01-22fixed commentGuido van Rossum-1/+1
1995-01-22added printf -- hack for Think C to init stdwin and stdioGuido van Rossum-0/+16
1995-01-22cosmetics: copyright, commentsGuido van Rossum-15/+33
1995-01-21renamed Get routines to PyMac_Get; added macfs to config.cGuido van Rossum-6/+7
1995-01-18modernized/rationalized, added PyMac_BuildOSTypeGuido van Rossum-4/+13
1995-01-18More Pstring() stuff and some cosmeticsJack Jansen-3/+1
1995-01-18- Moved some useful routines from macosmodule.c hereJack Jansen-5/+93
- Added GetFSSpec (tuple-style), BuildFSSpec and Pstring (platform-independent correct conversion of C to Pascal strings)
1995-01-17must include rename2.hGuido van Rossum-0/+2
1995-01-12rename2 changesGuido van Rossum-1/+2
1995-01-081995 copyrightGuido van Rossum-2/+2
1994-12-14New routines:Jack Jansen-0/+86
macstrerror - strerror which uses 'Estr' resource to convert numerical MacOS errors to strings. PyErr_Mac - Raise exception with MacOS error in string form. PyMac_Idle - better idle-loop routine, which allows the user to switch applications.
1994-12-14Enlarged version buffer (nobody expects the spanish inquisition:-)Jack Jansen-1/+5
Support for new sys.path code in config.c
1994-10-01Make it work under MPW too.Guido van Rossum-3/+2
1994-09-16gestaltmodule.c: interface to Gestalt Manager.Guido van Rossum-0/+25
macosmodule.c: interface to random collection of Managers. macsetfiletype.c: set file type, for import.c.
1994-08-29Completed (hopefully) the unification of THINK 6.0 and MPW 3.2Guido van Rossum-3/+3
versions -- they now share config.c and config.h, and statting is always done through macstat.[ch] (THINK's <stat.h> defines funny constants). Also the configuration of stdwin is done differently: you have to define USE_STDWIN to the compiler prefix.
1994-08-26Intermediate version of changes after porting to MPW 3.2Guido van Rossum-3/+0
1994-08-23Added macmain.c (separate Mac specific main prog); bump version to 1.1Guido van Rossum-0/+83
1994-08-19Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.Guido van Rossum-3/+3
1994-06-27Replace <MacHeaders> by specific required header filesGuido van Rossum-1/+5
1994-01-05Initial revisionGuido van Rossum-0/+40