summaryrefslogtreecommitdiff
path: root/Python/mactoolboxglue.c
AgeCommit message (Collapse)AuthorLines
2016-09-17Issue #28139: Fix messed up indentationMartin Panter-10/+10
Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
2016-09-16Issue #27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal ofsashk-4/+4
deprecated QuickTime/QuickTime.h header file. Patch by sashk.
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-165/+165
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-9/+9
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
2008-06-05MacOS X: Enable 4-way universal buildsRonald Oussoren-0/+4
This patch adds a new configure argument on OSX: --with-universal-archs=[32-bit|64-bit|all] When used with the --enable-universalsdk option this controls which CPU architectures are includes in the framework. The default is 32-bit, meaning i386 and ppc. The most useful alternative is 'all', which includes all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64). This includes limited support for the Carbon bindings in 64-bit mode as well, limited because (a) I haven't done extensive testing and (b) a large portion of the Carbon API's aren't available in 64-bit mode anyway. I've also duplicated a feature of Apple's build of python: setting the environment variable 'ARCHFLAGS' controls the '-arch' flags used for building extensions using distutils.
2008-05-26Renamed PyString to PyBytesChristian Heimes-9/+9
2008-01-03Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵Christian Heimes-1/+1
imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
2006-07-11Add missing Py_DECREFs.Thomas Heller-1/+2
2006-04-17This patches fixes a number of byteorder problems in MacOSX specific code.Ronald Oussoren-2/+6
2006-02-15Merge ssize_t branch.Martin v. Löwis-2/+2
2004-11-05SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in coreRaymond Hettinger-153/+62
(Contributed by Bob Ippolito.) This patch trims down the Python core on Darwin by making it independent of CoreFoundation and CoreServices. It does this by: Changed linker flags in configure/configure.in Removed the unused PyMac_GetAppletScriptFile Moved the implementation of PyMac_StrError to the MacOS module Moved the implementation of PyMac_GetFullPathname to the Carbon.File module
2004-07-15Moved PyMac_GetScript() to _localemodule, which is the only place whereJack Jansen-24/+0
it is used, and made it private. Should fix #978662.
2003-11-19Getting rid of code conditional on TARGET_API_MAC_*.Jack Jansen-37/+0
2003-11-19WITHOUT_FRAMEWORKS conditional code bites the dust: this was forJack Jansen-4/+0
pre-carbon MacOS9 support.
2003-05-27Added functions CFObj_New and CFObj_Convert, general functions to convertJack Jansen-0/+3
between CF objects and their Python representation. Fixes 734695.
2003-04-17Oops, 'k' is the new format code for un unchecked 32 bit quantity,Jack Jansen-2/+2
not 'K'.
2003-04-17Converted manually written code to the new K format specifier.Jack Jansen-2/+2
Untested, but at least it still compiles.
2003-03-02Use Carbon.File for FSSpec and FSRef conversion, not macfs.Jack Jansen-4/+4
2003-01-17It turns out that some calls return AEDesc records that are "borrowed",Jack Jansen-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.
2002-12-23Squashed compiler warnings by adding casts, making sure prototypes are inJack Jansen-1/+1
scope and looking at types.
2002-11-26Patch #632973: Implement _getdefaultlocale for OS X.Martin v. Löwis-5/+16
2002-11-09Restore to ANSI C.Michael W. Hudson-2/+2
2002-11-07Got rid of the python.rsrc resource file. The error message strings andJack Jansen-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.
2002-10-19Made MacOS.Error a class style exception (at last!).Jack Jansen-1/+1
2002-08-02Added one call to Py_Main(), for OSX framework builds only, that will get theJack Jansen-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.
2001-12-04More sprintf -> PyOS_snprintf.Tim Peters-1/+1
2001-11-05Make the CoreFoundation object _New and _Convert routines available to other ↵Jack Jansen-0/+22
modules. Idea by Donovan Preston, implementaion by me.
2001-10-31Link the core with CoreServices, not with Carbon, and don't use any CarbonJack Jansen-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.
2001-09-10Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen-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.
2001-09-01Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.Jack Jansen-0/+4
Moved the declarations to pymactoolbox.h.
2001-08-27Refer to the toolbox modules by their official name (Carbon.AE), not the ↵Jack Jansen-47/+47
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.
2001-08-23Mac toolbox modules have gotten an _ prepended to their name.Jack Jansen-46/+46
2001-08-08Got rid of unused includes.Jack Jansen-22/+2
2001-08-08Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen-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).