summaryrefslogtreecommitdiffstats
path: root/Python/mactoolboxglue.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved PyMac_GetScript() to _localemodule, which is the only place whereJack Jansen2004-07-151-24/+0
| | | | it is used, and made it private. Should fix #978662.
* Getting rid of code conditional on TARGET_API_MAC_*.Jack Jansen2003-11-191-37/+0
|
* WITHOUT_FRAMEWORKS conditional code bites the dust: this was forJack Jansen2003-11-191-4/+0
| | | | pre-carbon MacOS9 support.
* Added functions CFObj_New and CFObj_Convert, general functions to convertJack Jansen2003-05-271-0/+3
| | | | between CF objects and their Python representation. Fixes 734695.
* Oops, 'k' is the new format code for un unchecked 32 bit quantity,Jack Jansen2003-04-171-2/+2
| | | | not 'K'.
* Converted manually written code to the new K format specifier.Jack Jansen2003-04-171-2/+2
| | | | Untested, but at least it still compiles.
* Use Carbon.File for FSSpec and FSRef conversion, not macfs.Jack Jansen2003-03-021-4/+4
|
* It turns out that some calls return AEDesc records that are "borrowed",Jack Jansen2003-01-171-0/+1
| | | | | | | the AEDesc data shouldn't be disposed when the Python object is. Added a C call AEDesc_NewBorrowed() to create these objects and a Python method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
* Squashed compiler warnings by adding casts, making sure prototypes are inJack Jansen2002-12-231-1/+1
| | | | scope and looking at types.
* Patch #632973: Implement _getdefaultlocale for OS X.Martin v. Löwis2002-11-261-5/+16
|
* Restore to ANSI C.Michael W. Hudson2002-11-091-2/+2
|
* Got rid of the python.rsrc resource file. The error message strings andJack Jansen2002-11-071-0/+34
| | | | | | | | | | dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted.
* Made MacOS.Error a class style exception (at last!).Jack Jansen2002-10-191-1/+1
|
* Added one call to Py_Main(), for OSX framework builds only, that will get theJack Jansen2002-08-021-0/+88
| | | | | | | | | | | | | actual script to run in case we are running from an applet. If we are indeed running an applet we skip the normal option processing leaving it all to the applet code. This allows us to get use the normal python binary in the Python.app bundle, giving us all the normal command line options through PythonLauncher while still allowing Python.app to be used as the template for building applets. Consequently, pythonforbundle is gone, and Mac/Python/macmain.c isn't used on OSX anymore.
* More sprintf -> PyOS_snprintf.Tim Peters2001-12-041-1/+1
|
* Make the CoreFoundation object _New and _Convert routines available to other ↵Jack Jansen2001-11-051-0/+22
| | | | modules. Idea by Donovan Preston, implementaion by me.
* Link the core with CoreServices, not with Carbon, and don't use any CarbonJack Jansen2001-10-311-0/+8
| | | | | | | | | | routines. As of 10.1 using Carbon will crash Python if no window server is available (ssh connection, console mode, MacOSX Server). This fixes bug #466907. A result of this mod is that the default 8bit encoding on OSX is now ASCII, for the time being. Also, the extension modules that need the Carbon framework now explicitly include it in setup.py.
* Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen2001-09-101-1/+41
| | | | | | 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.
* Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.Jack Jansen2001-09-011-0/+4
| | | | Moved the declarations to pymactoolbox.h.
* Refer to the toolbox modules by their official name (Carbon.AE), not the ↵Jack Jansen2001-08-271-59/+59
| | | | internal name (_AE). This can slow things down (once) but it's the only way I can get things to work on OSX, OS9 dynamically loaded and OS9 frozen.
* Mac toolbox modules have gotten an _ prepended to their name.Jack Jansen2001-08-231-58/+58
|
* Got rid of unused includes.Jack Jansen2001-08-081-22/+2
|
* Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen2001-08-081-0/+430
with functionality needed for both unix-Python and MacPython and a new smaller ./Mac/Python/macglue.c which contains MacPython stuff only. pymactoolbox.h has moved to ./Include from ./Mac/Include and now also contains the relevant stuff from macglue.h. The net effect of this is that the ./Mac subdirectory is not needed anymore for building the unix-Python core on MacOSX (it is needed for building the extension modules).