summaryrefslogtreecommitdiffstats
path: root/Mac/Include/macglue.h
Commit message (Collapse)AuthorAgeFilesLines
* Getting rid of pre-Carbon (MacOS8) support. All code depending onJack Jansen2002-12-121-6/+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).
* Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.Jack Jansen2002-09-101-1/+3
| | | | Bugfix candidate.
* Got rid of ifdefs for long-obsolete GUSI versions and other lurkers.Jack Jansen2002-04-111-6/+0
|
* We have strdup(), but not its prototype:-(Jack Jansen2001-12-141-2/+0
|
* Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandlerJack Jansen2001-10-081-0/+19
| | | | and PyMac_DummyWriteHandler.
* Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen2001-09-101-1/+0
| | | | | | 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-7/+0
| | | | Moved the declarations to pymactoolbox.h.
* Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen2001-08-081-26/+2
| | | | | | | | | | | | 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).
* Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs ↵Jack Jansen2001-07-081-3/+8
| | | | | | | | and pathnames where applicable. PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue. These mods are untested on OSX.
* Got the first MacPython module working under MacOSX/MachO (gestalt). Main ↵Jack Jansen2001-05-121-3/+10
| | | | | | | | changes are including Carbon/Carbon.h in stead of the old headers (unless WITHOUT_FRAMEWORKS is defined, as it will be for classic MacPython) and selectively disabling all the stuff that is unneeded in a unix-Python (event handling, etc).
* Be more sensible about when to use TARGET_API_MAC_OS8 in stead of ↵Jack Jansen2001-05-121-2/+2
| | | | !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
* - Raise console window on input. Fixes Carbon hang.Jack Jansen2001-04-251-0/+1
|
* Bit the bullet and added a private GUSISIOUX for Python. This makes the ↵Jack Jansen2001-02-111-0/+2
| | | | delayconsole and keepopen code neater. Also tells Sioux to behave better with events, and handles cmd-. during print better. The pythonpreferences have also changed due to this.
* Added PyMac_OutputSeen(), which acknowledges all current output in the stdio ↵Jack Jansen2000-10-191-0/+1
| | | | window, i.e. it acts like input has been read insofar as the keep-console-open option is interested.
* Moved PyOS_StackCheck prototype to pythonrun.hJack Jansen2000-08-071-1/+0
|
* Added more prototypes.Jack Jansen2000-07-241-1/+1
|
* Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define.Jack Jansen2000-07-141-8/+0
|
* Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.Jack Jansen2000-07-141-1/+1
|
* PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.Jack Jansen2000-07-141-0/+2
|
* Got rid of __SC__ ifdefs.Jack Jansen2000-07-111-4/+0
|
* ANSIfication step 2: make sure all needed prototypes are available, and all ↵Jack Jansen2000-07-111-2/+17
| | | | | | needed header files included.
* ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.Jack Jansen2000-07-111-10/+10
|
* PyMac_FindModuleExtension now uses a size_t as its size parameter for ↵Jack Jansen2000-07-031-1/+1
| | | | compatibility.
* Made the GUSI options work again with GUSI 2.Jack Jansen2000-04-211-0/+4
|
* Started on GUSI2 and threading support.Jack Jansen2000-04-071-2/+3
|
* Added PyMac_BuildOptStr255, which returns None on a null pointer.Jack Jansen1999-12-171-0/+1
|
* First bits and pieces of appearance support: an init routine, a global flag ↵Jack Jansen1999-12-071-0/+1
| | | | | | PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE is off the code is disabled (but the variables are still there, set to 0).
* Make macglue.h C++ compatible.Jack Jansen1999-09-301-0/+7
|
* Added prototypes for the code resource routines, and for PstringJack Jansen1998-07-131-0/+3
| | | | (which was missing, for some reason).
* Incorrect argument for PyMacBuildwide()Jack Jansen1998-04-231-1/+1
|
* Add (temporary) PyMac_{Build,Get}wideJack Jansen1998-04-211-0/+2
|
* Added declarations for mac{set,get}filetypeJack Jansen1998-04-151-0/+5
|
* Mods for user mainloop event handlingJack Jansen1997-06-201-2/+3
|
* Make imports faster on the Mac, byJack Jansen1997-06-121-1/+2
| | | | | | | | - Remembering whether sys.path components refer to files or folders, - Using mac-specific code to check for file existence, in stead of trying to fopen() each possible file. These mods need an accompanying mod to import.c.
* Added prototype for PyMac_RestoreMenuBarJack Jansen1997-06-121-0/+1
|
* Removed SetScheduleTimes and PyMac_DoYieldEnabledJack Jansen1997-06-031-6/+13
| | | | | | Added [GS]etSchedParams Added parameter to PyMac_HandleEvent (safe to run python code at this point) Removed various cruft
* Added PyMac_StopGUSISpinJack Jansen1997-05-231-5/+6
|
* Added/updated copyright noticesJack Jansen1997-01-311-1/+1
| | | | (and the &*^$%@ resource files got binhexed again, sigh)
* Added PyMac_Initialize() routine, to be used by embedding programs (inJack Jansen1997-01-151-0/+1
| | | | stead of standard Py_Initialize(), which it calls).
* Added PyMac_GetFullPath(), PyMac_ApplicationPath and PyMac_ApplicationFSSpecJack Jansen1996-11-091-0/+5
|
* macglue: added PyMac_AppRefNumJack Jansen1996-09-061-0/+2
| | | | pythonresources: elaborated comment on preferences, added new options
* Python about box implemented. Slightly convoluted, since (a) we haveJack Jansen1996-09-061-0/+2
| | | | | to override an internal sioux routine and (b) we have to override the "about sioux" menuitem after sioux has created its menus.
* - Fixed PyMac_DoYield:Jack Jansen1996-09-041-2/+6
| | | | | | | | | - Update lastyield correctly - Do event handling if PyMac_YieldEnabled > 0 (previous cmd-. fix broke this) - Use our own GUSISpin routine: fixes crash when exiting with sockets open and keeps windows, etc reacting consistently when waiting for accepts(), etc.
* PyMac_BuildNumVersion addedJack Jansen1996-08-021-0/+2
|
* Replaced previous gusi-chdir() fix by a call to PyMac_FixGUSIcd()Jack Jansen1996-03-061-0/+4
| | | | after each chdir call.
* Added converters for FixedJack Jansen1995-11-151-0/+2
|
* Added PyMac_PromptGetFile, removed stuff gone to other sources.Jack Jansen1995-08-141-3/+4
|
* Initial port to CodeWarrior CFM68K support (mainly by disablingJack Jansen1995-06-271-1/+1
| | | | unsupported features).
* - Added PyMac_GetDirectory call which asks the user to select aJack Jansen1995-02-201-0/+2
| | | | | | | | directory. - No __main__ resource found message is now a dialog - Fixes wrt stdio window handling in applets. NB: these fixes require a new resource file.
* macstrerror -> MacOS-StrError; added applet and cfm-68k supportGuido van Rossum1995-02-181-7/+13
|