summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macosmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* CGMainDisplayID() doesn't exist on 10.1, so don't try to call it whenJack Jansen2004-06-021-0/+7
| | | | building for that platform.
* Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.Jack Jansen2003-11-201-2/+1
| | | | Cleaned up various things in the toolbox modules.
* Getting rid of code conditional on TARGET_API_MAC_*.Jack Jansen2003-11-191-185/+1
|
* WITHOUT_FRAMEWORKS conditional code bites the dust: this was forJack Jansen2003-11-191-8/+0
| | | | pre-carbon MacOS9 support.
* Getting rid of support for the ancient Apple MPW compiler.Jack Jansen2003-11-191-5/+0
|
* GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted byJack Jansen2003-03-191-2/+2
| | | | Just.
* Added a linkmodel attribute, showing how Python was built. This is soJack Jansen2003-02-231-0/+13
| | | | | | | | | packages can check that extension modules are built for the right type of python. Current values can be static, framework, shared and cfm (for completeness, for MacPyton-OS9). Closes bug #691889. The reporter suggests backporting this to 2.2.3 and I think I agree.
* Added a method WMAvailable(). This will return True if and only if thereJack Jansen2003-02-211-0/+43
| | | | | | | is a window manager and we can connect to it, i.e. if it is safe to try and put up windows. As a side effect the first call will make the current process frontmost.
* - Various tweaks to shut up compiler warnings.Jack Jansen2002-12-231-1/+1
| | | | | - Regenerated with the correct calls to PyType_Ready and the correct deallocator calls.
* Getting rid of pre-Carbon (MacOS8) support. All code depending onJack Jansen2002-12-121-48/+0
| | | | | | TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some TARGET_API_MAC_OSX conditional code is gone, because it is no longer used on OSX-only Python (only in MacPython-OS9).
* staticforward bites the dust.Jeremy Hylton2002-07-171-1/+1
| | | | | | | | | | | | | | | The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
* Replaced lots of PyMem_DEL() calls with PyObject_DEL().Jack Jansen2002-05-221-1/+1
|
* 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
|