Commit Graph

1519 Commits

Author SHA1 Message Date
Guido van Rossum becdbec806 ported to Think C 1995-02-14 01:27:24 +00:00
Jack Jansen 26a9f7467f Some of Guido's bgen modules aren't think-only anymore 1995-02-13 22:47:02 +00:00
Jack Jansen 6cfab2346c Changed PyMac_GetPythonDir to use a preferences file to store the
alias resource. Also added a few comments.
1995-02-13 22:46:00 +00:00
Jack Jansen fc0ff42034 Open library resource file read-only 1995-02-13 22:43:38 +00:00
Guido van Rossum 5693412892 malloc debug only on ppc 1995-02-13 16:19:04 +00:00
Guido van Rossum e9f29bf4ca remove unused vars 1995-02-13 16:18:02 +00:00
Guido van Rossum cc9bc8f824 null-terminate the error string in macstrerror 1995-02-13 16:17:03 +00:00
Guido van Rossum e6c884cadb added QuickDraw 1995-02-13 16:16:22 +00:00
Guido van Rossum b95ff40e29 adapted to 1.2 1995-02-13 16:15:31 +00:00
Jack Jansen c889b760d7 Added RawFSSpec and RawAlias methods which turn their string arguments
into fsspec and alias objects.
1995-02-13 12:00:46 +00:00
Jack Jansen 7467ce3eea Startup code for applications using the python shared
library. Modified because the startup code has to work together with
the runtime support in the shared library.
1995-02-13 11:41:40 +00:00
Jack Jansen 2e4679db8e Glue for the python shared library: an init routine that remembers
where we're loaded from and PyMac_AddLibResources() which adds that
file to the resource file list.
1995-02-13 11:39:17 +00:00
Jack Jansen c6647c6079 Mwerks header files for shared python and the applet template 1995-02-13 11:37:31 +00:00
Jack Jansen 0f6ca80e71 Use PyMac_GetPythonDir() to obtain python homedir
fileargument moved here from macmain.c
1995-02-13 11:36:25 +00:00
Jack Jansen f950f8d414 Various changes wrt shared-library python:
- 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-13 11:35:34 +00:00
Jack Jansen 8cd2b720f6 Added PyMac_GetPythonDir routine which obtains python home directory
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-13 11:33:28 +00:00
Jack Jansen b3642579fd Added getfiletype routine 1995-02-13 11:31:51 +00:00
Guido van Rossum 3c3eda2b7b stuff by jack to create a set of Estr resources 1995-02-05 17:01:45 +00:00
Guido van Rossum 81920f1b75 manually defined Resource() function 1995-02-05 17:01:24 +00:00
Guido van Rossum 315592383e more support for different kinds of objects 1995-02-05 16:59:27 +00:00
Guido van Rossum b19a645b69 more think/mw changes 1995-02-05 16:58:33 +00:00
Guido van Rossum 9bcb641ad4 added Resource(), to create new resources from Python 1995-02-05 16:54:27 +00:00
Guido van Rossum 0818a4c152 get rid of obsolete low-level routines 1995-02-05 16:53:45 +00:00
Jack Jansen c76fd39587 Added stuff so CodeWarrior isn't so verbose about its stdio windows 1995-02-02 14:27:31 +00:00
Jack Jansen a76382a6ac Added HandleEvent method to macos, so python programs can hand back
events they don't want to handle to stdio
1995-02-02 14:25:56 +00:00
Jack Jansen 8828fcf738 Added [GS]etCreatorType methods to FSSpec objects 1995-02-02 14:23:52 +00:00
Guido van Rossum 17448e2408 Committed a more or less working version. 1995-01-30 11:53:55 +00:00
Guido van Rossum cc0d879069 added <OSEvents.h> for Think C 1995-01-30 08:57:13 +00:00
Guido van Rossum b2f524ae44 fixed StandardGetFile argument handling 1995-01-30 08:56:06 +00:00
Jack Jansen ee23d6ec87 - Moved interrupt code to macglue.c
- 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-27 14:43:25 +00:00
Guido van Rossum 5279ec683a reverse h/v in Point and Rect 1995-01-26 22:56:59 +00:00
Guido van Rossum efd9767f56 added (method) casts and 1995 copyright 1995-01-26 22:56:16 +00:00
Jack Jansen fdbc79e779 Prototypes for new routines. 1995-01-26 16:37:21 +00:00
Jack Jansen e8e8ae0f2c Added eventhandling in mainloop/busywait routine plus leaving some
cycles for background apps. MacOS has a new method to set the amount
of time for bg apps.
1995-01-26 16:36:45 +00:00
Jack Jansen 9eeb82dde1 CodeWarrior 5 has more unixisms (open/close/read/write) 1995-01-26 16:34:53 +00:00
Jack Jansen 17ba43f1e4 Complete rewrite. 1995-01-26 16:22:07 +00:00
Guido van Rossum c9a3569416 split PATH over multiple lines for clarity;
added some generated modules
1995-01-25 23:10:10 +00:00
Guido van Rossum bf068b1505 Got rid of the Resource and Sound interfaces, in favor of the ones
generated from the header files (with some hand-holding :-).
1995-01-25 23:09:20 +00:00
Guido van Rossum cf27c2d541 Some layout changes; added EventRecord Get/Build functions (as a tuple). 1995-01-25 23:06:44 +00:00
Guido van Rossum 5679e56bd1 ported CW5 changes back to Think 1995-01-22 19:04:11 +00:00
Guido van Rossum c2544b3788 fixed comment 1995-01-22 18:42:33 +00:00
Guido van Rossum b7e79e5f94 Got rid of {Get,Set}FileType in favor of {Get,Set}CreatorAndType --
the former had their arguments reversed compared to all Apple's
routines (e.g. FSpOpenResFile()).

Also fixed the SoundMgr UserRoutine (Jack fixed it but put the fix
between #ifdef __MWERKS__ ... #endif :-( ).

NB eventually this module should disappear in favor of separate
modules per manager (e.g. Resources, Sound, Files, ...).
1995-01-22 18:42:12 +00:00
Guido van Rossum c02311ba53 added printf -- hack for Think C to init stdwin and stdio 1995-01-22 18:38:12 +00:00
Guido van Rossum d8373d82fe added Res module 1995-01-22 18:37:45 +00:00
Guido van Rossum b340466af9 cosmetics: copyright, comments 1995-01-22 18:36:13 +00:00
Jack Jansen 7cbf4803a9 Make malloc stats routine available under MetroWerks 1995-01-22 16:52:38 +00:00
Jack Jansen 673e142e00 Ported to CW5/new universal headers 1995-01-22 16:52:02 +00:00
Jack Jansen a1c5602a7a Removed imgformat reference 1995-01-22 16:49:21 +00:00
Jack Jansen 860dc048ca Ported to CW5 (or to new Universal Headers, actually) 1995-01-22 16:48:43 +00:00
Jack Jansen 2fc94eecb2 - Ported to CW5 (which has more unixisms)
- Added (rather crummy) malloc debugger
1995-01-22 16:47:22 +00:00
Jack Jansen 6bb347fc1c The last missing file of the mwerks port (this is the 'prefix' file) 1995-01-22 16:46:11 +00:00
Jack Jansen f2e5129820 reallocing large blocks now doesn't copy if not needed 1995-01-22 16:44:49 +00:00
Guido van Rossum 9aa3d1370e renamed Get routines to PyMac_Get; added macfs to config.c 1995-01-21 13:46:04 +00:00
Jack Jansen c39f4f8968 Yet another Pstring() 1995-01-19 12:23:31 +00:00
Jack Jansen f90a113176 Fixed listen()/getsockname() bug 1995-01-19 11:49:05 +00:00
Guido van Rossum a42960cd09 ported to THINK C (not tested yet) 1995-01-19 00:03:47 +00:00
Guido van Rossum 6a5df90918 ported Jacks changes back to think C 1995-01-18 23:59:06 +00:00
Guido van Rossum f74d4e2a0e added high level event interface (requires stdwin patch) 1995-01-18 23:58:07 +00:00
Guido van Rossum 8f69179f97 modernized/rationalized, added PyMac_BuildOSType 1995-01-18 23:57:26 +00:00
Jack Jansen 84fa5ecfff Initial version of FSSpec and Alias code. Non-functional as of now. 1995-01-18 14:04:40 +00:00
Jack Jansen d50e4e1c54 More Pstring() stuff and some cosmetics 1995-01-18 13:58:04 +00:00
Jack Jansen 48d071d302 Comment fix 1995-01-18 13:56:20 +00:00
Jack Jansen 67132b3de7 Some of these were overwriting their argument with a pascal
string. Use own Pstring() routine (which uses a static buffer) everywhere.
1995-01-18 13:55:41 +00:00
Jack Jansen 5f653091d1 - Moved some useful routines from macosmodule.c here
- Added GetFSSpec (tuple-style), BuildFSSpec and Pstring
  (platform-independent correct conversion of C to Pascal strings)
1995-01-18 13:53:49 +00:00
Jack Jansen 9589e93491 Moved some generally useful routines to macglue.c 1995-01-18 13:52:07 +00:00
Jack Jansen 75b6f1c8e5 - Ported to powerpc
- Fixed bug with accept() call
- Better error checking
1995-01-18 13:50:42 +00:00
Jack Jansen fa4fd8ef4f Fast (and correct) malloc for MetroWerks PPC compiler 1995-01-18 13:48:31 +00:00
Jack Jansen fbfacf6d1f Macconsole module is think-specific 1995-01-18 13:44:20 +00:00
Jack Jansen 31f61dddfa Moved development-platform specific files to subdirectories 1995-01-18 13:41:47 +00:00
Guido van Rossum 5c83252be4 must include rename2.h 1995-01-17 15:57:48 +00:00
Guido van Rossum fffb8bb526 rename2 changes 1995-01-12 12:37:24 +00:00
Guido van Rossum a48061a580 shelve.py: database of persistent objects, on top of pickle.py and anydbm.py
pickle.py: new low-level persistency module (used to be called flatten)
dbmac.py: stupid dbm clone for the Mac
anydbm.py: generic dbm interface (should be extended to support gdbm)
1995-01-10 00:31:14 +00:00
Guido van Rossum e791c2e441 Used new getargs interface; added {Get,Set}FileInfo. 1995-01-09 13:20:04 +00:00
Guido van Rossum 99546997f6 1995 copyright 1995-01-08 14:33:34 +00:00
Guido van Rossum 437a0e60ba Think 6.0 version 1995-01-02 19:13:30 +00:00
Jack Jansen 0c637709ad Ported to CodeWarrior 1994-12-14 14:10:51 +00:00
Jack Jansen f93c72a4b0 New routines:
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-14 14:07:50 +00:00
Jack Jansen 34e7cae663 Unix functionality expected by python but missing from CodeWarrior
runtime system.
1994-12-14 14:04:55 +00:00
Jack Jansen 97ce361c2c - Use PyErr_Mac for nicer exceptions
- Added methods AsString() and AsBytes() to resource objects, so you
  can get at the contents of resource items.
- Ported to CodeWarrior (mainly ProcPtr/UniversalProcPtr stuff)
1994-12-14 14:02:24 +00:00
Jack Jansen 0c097eab57 Ported to MetroWerks, which misses file-descriptor like functionality. 1994-12-14 13:48:38 +00:00
Jack Jansen bac428d2e0 Enlarged version buffer (nobody expects the spanish inquisition:-)
Support for new sys.path code in config.c
1994-12-14 13:47:30 +00:00
Jack Jansen c5b26f4a05 - PYTHONPATH is now \n-separated, so you can have directories with
spaces in the name.
- If you run python with a script the working directory is now the
  directory where the script lives (was: directory where python
  application lives). sys.path will include current dir, application
  dir and Lib, etc. relative to application dir. This is more like
  unix python does things and more useful besides (since you can
  easily import files living in the same directory as the importer).
- Added the macconsole, ctb, macspeech, macdnr and mactcp modules.
- For MW compiler, put 68K/PPC indication in version string.
1994-12-14 13:45:11 +00:00
Jack Jansen fea75336aa Added support for MetroWerks CodeWarrior compiler 1994-12-14 13:38:13 +00:00
Jack Jansen edf585579c Interface to MacTCP and the MacTCP Domain Name Resolver 1994-12-14 13:36:34 +00:00
Jack Jansen 114ca5c170 - Added Version method
- Now gives new mac exceptions
- Ported to PowerPC Mac and CodeWarrior
1994-12-14 13:34:35 +00:00
Jack Jansen ee735be06a Interface to Mac Communications Toolbox (only Connection Manager for
now)
1994-12-14 13:31:11 +00:00
Jack Jansen 115590d22f This file (which is Guido's) was somehow missing... 1994-12-14 13:07:43 +00:00
Jack Jansen 0d7cba86a6 New standard modules for the mac. 1994-12-14 13:06:25 +00:00
Guido van Rossum 3a80c8defe Add files by Jack 1994-10-02 11:33:59 +00:00
Guido van Rossum 950d47fd67 Make it work under MPW too. 1994-10-01 14:24:17 +00:00
Guido van Rossum e433c974bc config.c: add MacOS module
macosmodule.c: lots of updates (though playing sound can still hang :-( )
1994-09-29 10:02:56 +00:00
Guido van Rossum df1c4ee503 Support user routines (callbacks) on sound channels. 1994-09-16 12:48:59 +00:00
Guido van Rossum bc0ba01001 Added some files, reformatted some paragraphs. 1994-09-16 11:09:18 +00:00
Guido van Rossum 31e7642340 Added some more files to Mac-Makefile (not tested!); finishing touch
to README.MPW.
1994-09-16 11:08:31 +00:00
Guido van Rossum 2d16703d65 gestaltmodule.c: interface to Gestalt Manager.
macosmodule.c: interface to random collection of Managers.
macsetfiletype.c: set file type, for import.c.
1994-09-16 10:54:21 +00:00
Guido van Rossum c0af2aafeb Add'l notes by Guido 1994-09-09 12:10:21 +00:00
Guido van Rossum 8e1f8dd094 Restructured MPW notes 1994-08-29 09:14:14 +00:00
Guido van Rossum 8ce65b4cde README, Makfiles and `buildall' script to build Python under MPW 3.2. 1994-08-29 08:58:39 +00:00
Guido van Rossum 739267b7c3 Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
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-29 08:42:37 +00:00
Guido van Rossum e783444440 Intermediate version of changes after porting to MPW 3.2 1994-08-26 09:09:48 +00:00
Guido van Rossum b0f3c82a3b Added macmain.c (separate Mac specific main prog); bump version to 1.1 1994-08-23 13:34:25 +00:00
Guido van Rossum 29e7af07f0 Some more changes 1994-08-23 13:28:34 +00:00
Guido van Rossum d849a4838d Description of how to build Python for the Mac. 1994-08-20 21:55:48 +00:00
Guido van Rossum d4d7728440 Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here. 1994-08-19 10:51:31 +00:00
Guido van Rossum c93e13d734 Replace <MacHeaders> by specific required header files 1994-06-27 15:25:12 +00:00
Guido van Rossum 170c2e108f Change include path for unixemu headers; rename access to access_ 1994-06-27 15:24:53 +00:00
Guido van Rossum c9422ebc2b Don't include intrcheck.h 1994-06-23 09:50:58 +00:00
Guido van Rossum a9df70e02b Removed some random ^D characters 1994-05-23 12:18:57 +00:00
Guido van Rossum 921a08f303 Walker's changes fixed so they work in THINK C 5 1994-05-06 15:56:22 +00:00
Guido van Rossum 3ce7a1a9ea Changes by RMW for MPW 1994-05-06 15:54:52 +00:00
Guido van Rossum 87f223c6c7 As extended by Richard M Walker for MPW 1994-05-06 15:54:15 +00:00
Guido van Rossum dc0493ac67 Initial revision 1994-05-06 14:16:55 +00:00
Guido van Rossum fe16cc0338 Release 1.0.2. 1994-05-06 14:16:30 +00:00
Guido van Rossum a1238eb734 Fix copyright -- 1994 instead of 1004! 1994-01-18 10:09:50 +00:00
Guido van Rossum ce9739ba76 Initial revision 1994-01-05 16:17:15 +00:00
Guido van Rossum 50399ae583 mac -> os (can't this go now dircache is universal?) 1992-03-31 19:05:44 +00:00
Guido van Rossum bdfcfccbe5 New == syntax 1992-01-01 19:35:13 +00:00
Guido van Rossum fbe0a8e090 macpath.cat --> join 1991-08-16 13:27:45 +00:00
Guido van Rossum 217a5fa3c3 Initial revision 1990-12-26 15:40:07 +00:00