summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macosmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Got rid of obsolete appearance flag.Jack Jansen2002-04-111-5/+0
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | | | | 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.
* Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen2001-09-101-4/+8
| | | | | | parameter for the return string (as unix pathnames are not limited by the 255 char pstring limit). Implemented the function for MachO-Python, where it returns unix pathnames.
* - Don't return mac-style pathnames in unix-Python.Jack Jansen2001-08-081-38/+24
| | | | | - Fixed up a lot more prototypes (gcc also wants them on static routines) - Fixed various other gcc warnings.
* Ifdeffed a few more sections. All functionality that is relevant on MacOSXJack Jansen2001-05-191-4/+13
| | | | now appears to work.
* Include Carbon/Carbon.h in stead of universal headers, if appropriate.Jack Jansen2001-05-191-1/+5
| | | | | Test for TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON where appropriate.
* Be more sensible about when to use TARGET_API_MAC_OS8 in stead of ↵Jack Jansen2001-05-121-4/+7
| | | | !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
* Added an attribute runtimemodel, which is either "ppc" or "carbon" and is ↵Jack Jansen2001-01-231-0/+9
| | | | the runtime model of the current interpreter. Will have to ad another value later for real MacOSX MachO, I guess.
* Added PyMac_OutputSeen(), which acknowledges all current output in the stdio ↵Jack Jansen2000-10-191-0/+13
| | | | window, i.e. it acts like input has been read insofar as the keep-console-open option is interested.
* Added a method KeepConsole so programs can override the Keep console open ↵Jack Jansen2000-10-121-0/+16
| | | | option.
* Got rid of Py_FatalError calls.Jack Jansen2000-09-081-4/+4
|
* Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.Jack Jansen2000-07-141-2/+2
|
* Removed USE_STDWIN support.Jack Jansen2000-06-041-58/+0
|
* Made the core toolbox modules carbon-compatible using the new greylist ↵Jack Jansen2000-06-021-9/+17
| | | | | | 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.
* Added FreeMem, MaxBlock and CompactMem calls. The values returned by these ↵Jack Jansen2000-02-211-0/+43
| | | | are lower bounds in the Python case (as malloc doesn't return memory to the heap) but they can be used to decide when to give low-memory warnings.
* First bits and pieces of appearance support: an init routine, a global flag ↵Jack Jansen1999-12-071-0/+3
| | | | | | PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE is off the code is disabled (but the variables are still there, set to 0).
* Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.Jack Jansen1998-10-121-1/+1
|
* The init routine for MacOS had a non-standard name. Changed toJack Jansen1998-07-011-1/+1
| | | | initMacOS().
* Fixed double-dispose of splash() dialogJack Jansen1998-02-201-0/+2
|
* Export type objects to PythonJack Jansen1997-09-201-1/+5
|
* Added SysBeepJack Jansen1997-09-081-7/+22
|
* Added GetTicks() here, so profiling can use a decent timerJack Jansen1997-09-011-0/+9
|
* added SetEventHandlerJack Jansen1997-06-201-12/+25
|
* Removed SetScheduleTimesJack Jansen1997-06-031-26/+66
| | | | | Added SchedParams Added docstrings for most routines
* Don't free the MacOS_Splash() dialog twice...Jack Jansen1997-05-131-2/+4
|
* - Changed the m# format for PyArg_ParseTuple back to s#Jack Jansen1997-05-071-1/+1
| | | | - c2pstr has moved to a different include file
* Added an attribute string_id_to_buffer, which gives the offset youJack Jansen1997-04-031-0/+12
| | | | | | | | 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...
* - Changed GestaltEqu.h to Gestalt.hJack Jansen1997-02-241-1/+1
| | | | | | | | - 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)
* Added/updated copyright noticesJack Jansen1997-01-311-1/+1
| | | | (and the &*^$%@ resource files got binhexed again, sigh)
* Got rid of nfullpath()Jack Jansen1996-11-091-1/+1
|
* removed unused varJack Jansen1996-10-231-1/+0
|
* Added DebugStr method to drop into low-level debuggerJack Jansen1996-09-301-0/+16
|
* Added dialog-centering code to splash()Jack Jansen1996-09-231-1/+16
|
* Fixed macos.splash to actually *draw* the splash box:-)Jack Jansen1996-09-151-3/+7
|
* Added splash method (to quickly display splash screen without firstJack Jansen1996-05-201-0/+20
| | | | having to load a zillion extension modules)
* Removed unused varsJack Jansen1996-03-051-3/+0
|
* Added openrf method, which opens resource fork. The resulting objectJack Jansen1996-02-291-0/+330
| | | | supports a subset of normal file functionality.
* Added GetErrorString method (convert OSErr number to string)Jack Jansen1995-07-171-0/+11
|
* return old value of PyMac_DoYieldEnabled; -1 means do not even check for ↵Guido van Rossum1995-02-261-5/+6
| | | | interrupts
* change SC ifdef to MPWGuido van Rossum1995-02-211-1/+1
|
* Minor bug fixJack Jansen1995-02-201-1/+1
|
* cfm 68k supportGuido van Rossum1995-02-181-0/+4
|
* Added HandleEvent method to macos, so python programs can hand backJack Jansen1995-02-021-0/+14
| | | | events they don't want to handle to stdio
* - Moved interrupt code to macglue.cJack Jansen1995-01-271-0/+15
| | | | | | | - 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
* Added eventhandling in mainloop/busywait routine plus leaving someJack Jansen1995-01-261-0/+23
| | | | | cycles for background apps. MacOS has a new method to set the amount of time for bg apps.
* Got rid of the Resource and Sound interfaces, in favor of the onesGuido van Rossum1995-01-251-410/+3
| | | | generated from the header files (with some hand-holding :-).
* ported CW5 changes back to ThinkGuido van Rossum1995-01-221-0/+1
|
* Got rid of {Get,Set}FileType in favor of {Get,Set}CreatorAndType --Guido van Rossum1995-01-221-37/+19
| | | | | | | | | | | 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, ...).
* Ported to CW5/new universal headersJack Jansen1995-01-221-2/+2
|
* renamed Get routines to PyMac_Get; added macfs to config.cGuido van Rossum1995-01-211-4/+4
|