summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macglue.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Carbon command-dot handling. There is still a problem, though, and you ↵Jack Jansen2001-01-121-2/+2
| | | | may have to hit it repeatedly.
* Disabled a few other routines that are available in CarbonLib.Jack Jansen2001-01-111-2/+4
|
* Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.Jack Jansen2001-01-091-0/+2
|
* Added a c2pstrcpy() function.Jack Jansen2000-12-121-0/+11
|
* PyOS_CheckStack now understands multiple threads. Other threads are not ↵Jack Jansen2000-09-081-2/+14
| | | | stack-checked, but at least they don't appear to always be out of stack.
* Cheaper implementation of PyOS_CheckStack: only call StackSpace once and ↵Jack Jansen2000-08-251-3/+6
| | | | keep a sentinel in a static variable.
* Added PyMac_getscript() which returns the pythonic name of the current ↵Jack Jansen2000-07-241-0/+34
| | | | script. Not ideal and not complete, but good enough for the time being. Idea and most of the code by Fredrik Lund.
* Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.Jack Jansen2000-07-141-6/+6
|
* PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.Jack Jansen2000-07-141-5/+2
|
* ANSIfication step 2: make sure all needed prototypes are available, and all ↵Jack Jansen2000-07-111-10/+18
| | | | | | needed header files included.
* ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.Jack Jansen2000-07-111-3/+3
|
* Removed THINK_C support.Jack Jansen2000-06-041-3/+0
|
* Removed (within an #ifdef) Carbon-incompatabilities:Jack Jansen2000-06-021-0/+25
| | | | | | | - Use TickCount() in stead of LMGetTicks() - Don't use xxxGetFile event filter - Don't call SystemTask or HandleSysWindowEvent (is this also automatically handled under os9??) - Don't scan event queue for cmd-. (to be fixed at some point).
* Started on GUSI2 and threading support.Jack Jansen2000-04-071-7/+10
|
* If there's an error in an fsspec argument raise MacOS.Error, not ValueError.Jack Jansen2000-01-241-1/+1
|
* Added PyMac_BuildOptStr255, which returns None on a null pointer.Jack Jansen1999-12-171-0/+14
|
* Oops, PLstring funcs should be "pascal". Funny this never caused problems ↵Jack Jansen1999-12-121-3/+9
| | | | before...
* First bits and pieces of appearance support: an init routine, a global flag ↵Jack Jansen1999-12-071-0/+5
| | | | | | PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE is off the code is disabled (but the variables are still there, set to 0).
* New about box, with the version mesage filled in in a text item, andJack Jansen1998-07-311-13/+14
| | | | PLstrcmp() fixed. (Just)
* All import-related code has moved to macimport.c.Jack Jansen1998-07-131-224/+0
| | | | | | | | | There's also new support for importing code fragments: if a file on sys.path contains a PYD resource with resourcename equal to the name of the module to be imported this PYD resource should contain a (pascal) string with the name of a code fragment to load. This allows freezing Python programs without access to source or a development environment.
* Print message when we load a PYC resource, if verbose import flag is on.Jack Jansen1998-06-261-0/+3
|
* Incorrect argument for PyMacBuildwide()Jack Jansen1998-04-231-5/+5
|
* Added PyMac_{Get,Build}wide. These should support python longints atJack Jansen1998-04-211-0/+23
| | | | some point in the future.
* - Universal Headers 3 modsJack Jansen1998-02-201-2/+4
| | | | - Started on menubar-restore code (but it still doesn't work 100%)
* Bug fix for fast module locationJack Jansen1997-10-081-1/+1
|
* Fixed for new "import dir.module" semantics. Needs accompanying fix inJack Jansen1997-10-071-0/+9
| | | | import.c (yes Guido, I'll send it tomorrow)
* Handle systemclicks ourselves, in stead of passing them to Sioux. ThisJack Jansen1997-08-261-10/+15
| | | | | fixes (or masks?) a bug with Python becoming unreactive during time.sleep() if you have already switched applications before.
* Added (dummy) PyOS_FiniInterruptsJack Jansen1997-08-081-0/+5
|
* Added PyMac_SetEventHandler which allows you to replace complete eventJack Jansen1997-06-201-43/+71
| | | | | | handling in inner loop with python code. Also move (previously machine independent) PyErr_CheckSignals here, so we can propagate exceptions in event handling code.
* Make imports faster on the Mac, byJack Jansen1997-06-121-7/+104
| | | | | | | | - 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.
* - Restore SIOUX menubar just before exiting, if the console window is keptJack Jansen1997-06-121-21/+25
| | | | | open (so the user can quit with cmd-Q, print, etc) - Removed a few unused routines
* Removed old scheduler parameterizing calls and replaced with somethingJack Jansen1997-06-031-100/+116
| | | | a bit easier to use and understand
* - Added Py_GetProgramFullPathJack Jansen1997-05-231-1/+51
| | | | | | | - Added PyMac_StopGUSISpin and have it called at exit time (fixes crash when exiting with sockets open) - Added PLstr... funcs needed by gusi: those provided by StdCLib are broken under cfm68k
* Changed the few old routine names still used to the new onesJack Jansen1997-04-081-2/+2
| | | | Started working on MSL support
* - Changed GestaltEqu.h to Gestalt.hJack Jansen1997-02-241-1/+0
| | | | | - Changed FragLoader.h to CodeFragments.h - Removed Desk.h
* Only go into eventloop/interrupt check 10 times per secondJack Jansen1997-02-201-0/+9
|
* Added/updated copyright noticesJack Jansen1997-01-311-1/+1
| | | | (and the &*^$%@ resource files got binhexed again, sigh)
* When loading a PYC resource check whether the filename is theJack Jansen1996-11-091-21/+45
| | | | | application, and if so take a shortcut. This should speedup loading PYC resources when running off a CDROM quite a bit.
* About boxes should be at 20% of screen height, not halfwayJack Jansen1996-09-231-1/+1
|
* Changed default background yield time to 1 tickJack Jansen1996-09-221-1/+14
|
* - Put all options in a structJack Jansen1996-09-071-2/+4
| | | | | | - Unified initialization code for interpreter and applet - Implemented new options to skip AE-processing for argc/argv and for disabling interactive option setting
* Python about box implemented. Slightly convoluted, since (a) we haveJack Jansen1996-09-061-0/+32
| | | | | to override an internal sioux routine and (b) we have to override the "about sioux" menuitem after sioux has created its menus.
* Removed unused varsJack Jansen1996-09-051-2/+0
|
* - Fixed PyMac_DoYield:Jack Jansen1996-09-041-11/+61
| | | | | | | | | - 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.
* Fixed command-. handlingJack Jansen1996-08-191-2/+15
| | | | Added hacks for GetEventQueue (so you don't have to edit Events.h)
* Guido:Jack Jansen1996-08-191-14/+5
| | | | | - new SpinCursor (replacing Jack's almost-identical one) - use GetEventQueue in stead of GetEvQHdr
* Dummy SpinCursor() if __CFM68K__ is definedJack Jansen1996-08-191-0/+10
|
* - Minimum stacksize is now 8K for PPC, 4K for 68KJack Jansen1996-08-011-7/+20
| | | | - Added PyMac_BuildNumVersion
* Added PyOS_CheckStack() function which returns -1 when we are runningJack Jansen1996-07-221-0/+14
| | | | low on stackspace.
* PyMac_GetFixed() didn't return 1 on successJack Jansen1996-05-311-0/+1
|