Commit Graph

103 Commits

Author SHA1 Message Date
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