Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								52306a780b 
								
							 
						 
						
							
							
								
								The new menu initialization code would also add the SIOUX menus if a (frozen) Python program had installed its own menubar previously. We now guard against this, with a bit of a hack: FrameWork uses the same Menu ID as Sioux, and the init code checks that the text in the menu is "About SIOUX" before replacing it.  
							
							
							
						 
						
							2001-12-10 16:08:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								b3be216b41 
								
							 
						 
						
							
							
								
								Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the  
							
							... 
							
							
							
							changes from start of branch upto r22b2 were already merged, of course). 
							
						 
						
							2001-11-30 14:16:36 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								439eaa9f74 
								
							 
						 
						
							
							
								
								Fixed various problems with command-dot handling (some very old):  
							
							... 
							
							
							
							- Don't scan for cmd-. unless in the foreground
- Scan before switching out to other processes, not after
- don't scan if SchedParams.check_interrupt is false (!)
  - But: do scan if we're blocked on I/O
One problem remains: in the last case KeyboardInterrupt is raised
too late. 
							
						 
						
							2001-11-10 00:41:43 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								95837f1973 
								
							 
						 
						
							
							
								
								We always install the Sioux menubar, in stead of only when no menubar  
							
							... 
							
							
							
							was installed previously. This fixes bug #476904 , but I'm not 100%
sure it doesn't break anything else. But if it does I'll notice tomorrow
when I try to build GRiNS:-) 
							
						 
						
							2001-11-01 23:17:35 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								cf0319326a 
								
							 
						 
						
							
							
								
								Implemented PyMac_GetFullPathname for MacPython.  
							
							
							
						 
						
							2001-09-11 09:22:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								ff5d8aaa28 
								
							 
						 
						
							
							
								
								Added preferences/startup options for division warning  
							
							... 
							
							
							
							and accepting unix-style newlines on input.
Also (finally) added a startup option to get -vv behaviour.
Moved __convert_to_newlines to main.c because that's easier with the newline option. 
							
						 
						
							2001-09-01 22:37:54 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								3070ee6b37 
								
							 
						 
						
							
							
								
								Experimental feature: allow \n as well as \r as newline for text files, by breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.  
							
							
							
						 
						
							2001-08-27 23:16:34 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								f60edf861c 
								
							 
						 
						
							
							
								
								PATCHLEVEL is outdated, use PY_VERSION.  
							
							
							
						 
						
							2001-08-19 22:32:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								94bebc0381 
								
							 
						 
						
							
							
								
								Split macglue.c into two: a new mactoolboxglue.c (in ./Python)  
							
							... 
							
							
							
							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). 
							
						 
						
							2001-08-08 13:17:31 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								b760923b20 
								
							 
						 
						
							
							
								
								Got rid of 68k-Mac and other outdated ifdefs.  
							
							
							
						 
						
							2001-08-07 15:30:23 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								a5bca579fd 
								
							 
						 
						
							
							
								
								PyMac_GetFSSpec must be called via the dylib glue code on OSX.  
							
							
							
						 
						
							2001-08-03 15:39:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								cbed91b4db 
								
							 
						 
						
							
							
								
								Merging appropriate 2.1.1 fixes back into the main trunk.  
							
							
							
						 
						
							2001-08-03 13:31:36 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								2c278ed4a5 
								
							 
						 
						
							
							
								
								Fixed another case of the PyArg_Parse 'h' semantic change problem, sigh...  
							
							
							
						 
						
							2001-07-12 21:48:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								4e566ab904 
								
							 
						 
						
							
							
								
								Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs and pathnames where applicable.  
							
							... 
							
							
							
							PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue.
These mods are untested on OSX. 
							
						 
						
							2001-07-08 22:07:23 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									unknown 
								
							 
						 
						
							
							
							
							
								
							
							
								f428aef3b2 
								
							 
						 
						
							
							
								
								Don't promise mac-japanese encoding as we don't have a codec for it.  
							
							... 
							
							
							
							Return a reasonable name for the general macos exception (MacOS.Error). 
							
						 
						
							2001-07-04 22:36:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								741e0378e4 
								
							 
						 
						
							
							
								
								Moved PyMac_GetFullPath from macgetargv.c to macglue.c. It should  
							
							... 
							
							
							
							have been there in the first place. 
							
						 
						
							2001-05-19 12:55:57 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								8bb1dc1f8d 
								
							 
						 
						
							
							
								
								Merged mactoolboxglue.c into macglue.c. A later step will be to separate out  
							
							... 
							
							
							
							the stuff that is only needed on classic-MacOS. 
							
						 
						
							2001-05-19 12:31:09 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								0194ad5c7d 
								
							 
						 
						
							
							
								
								Got the first MacPython module working under MacOSX/MachO (gestalt). Main 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). 
							
						 
						
							2001-05-12 22:46:35 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								6e68a7e74f 
								
							 
						 
						
							
							
								
								Be more sensible about when to use TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.  
							
							
							
						 
						
							2001-05-12 21:31:34 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								15f1c08d96 
								
							 
						 
						
							
							
								
								- Raise console window on input. Fixes Carbon hang.  
							
							... 
							
							
							
							- Better handling of menu bar save/restore.
- Override abort() so it honours the "keep console window" flag. 
							
						 
						
							2001-04-25 22:07:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								657ba27dde 
								
							 
						 
						
							
							
								
								More changes to attempt to get the menubar back on exit. Without success:-(  
							
							
							
						 
						
							2001-02-17 22:02:07 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								8a38714ba0 
								
							 
						 
						
							
							
								
								Bit the bullet and added a private GUSISIOUX for Python. This makes the 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.  
							
							
							
						 
						
							2001-02-11 01:08:04 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								340eb88fa8 
								
							 
						 
						
							
							
								
								On MacOSX StackSpace() may lie because it doesn't know about the stack rlimit. For now we set a hard limit of 256K (default rlimit is 512K).  
							
							
							
						 
						
							2001-02-02 22:40:28 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								d7b68021ce 
								
							 
						 
						
							
							
								
								Fixed Carbon command-dot handling. There is still a problem, though, and you may have to hit it repeatedly.  
							
							
							
						 
						
							2001-01-12 23:42:28 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								6ba34aa07f 
								
							 
						 
						
							
							
								
								Disabled a few other routines that are available in CarbonLib.  
							
							
							
						 
						
							2001-01-11 23:03:56 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								91faef83ca 
								
							 
						 
						
							
							
								
								Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.  
							
							
							
						 
						
							2001-01-09 22:24:56 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								5afad8315b 
								
							 
						 
						
							
							
								
								Added a c2pstrcpy() function.  
							
							
							
						 
						
							2000-12-12 22:12:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								53bafd97d0 
								
							 
						 
						
							
							
								
								PyOS_CheckStack now understands multiple threads. Other threads are not stack-checked, but at least they don't appear to always be out of stack.  
							
							
							
						 
						
							2000-09-08 22:05:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								14a9171cff 
								
							 
						 
						
							
							
								
								Cheaper implementation of PyOS_CheckStack: only call StackSpace once and keep a sentinel in a static variable.  
							
							
							
						 
						
							2000-08-25 21:57:23 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								1f9f2f4c49 
								
							 
						 
						
							
							
								
								Added PyMac_getscript() which returns the pythonic name of the current script. Not ideal and not complete, but good enough for the time being. Idea and most of the code by Fredrik Lund.  
							
							
							
						 
						
							2000-07-24 19:50:16 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								74a1e63a89 
								
							 
						 
						
							
							
								
								Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.  
							
							
							
						 
						
							2000-07-14 22:37:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								bb7e213a8b 
								
							 
						 
						
							
							
								
								PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.  
							
							
							
						 
						
							2000-07-14 22:15:24 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								9ae898b415 
								
							 
						 
						
							
							
								
								ANSIfication step 2: make sure all needed prototypes are available, and all needed  
							
							... 
							
							
							
							header files included. 
							
						 
						
							2000-07-11 21:16:03 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								d88296d25a 
								
							 
						 
						
							
							
								
								ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.  
							
							
							
						 
						
							2000-07-11 19:51:05 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								021da55579 
								
							 
						 
						
							
							
								
								Removed THINK_C support.  
							
							
							
						 
						
							2000-06-04 21:56:05 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								bb6d83a8c4 
								
							 
						 
						
							
							
								
								Removed (within an #ifdef) Carbon-incompatabilities:  
							
							... 
							
							
							
							- 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). 
							
						 
						
							2000-06-02 21:27:11 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								2d1306b7cf 
								
							 
						 
						
							
							
								
								Started on GUSI2 and threading support.  
							
							
							
						 
						
							2000-04-07 09:10:49 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								3d7575406f 
								
							 
						 
						
							
							
								
								If there's an error in an fsspec argument raise MacOS.Error, not ValueError.  
							
							
							
						 
						
							2000-01-24 09:56:06 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								b734adef4b 
								
							 
						 
						
							
							
								
								Added PyMac_BuildOptStr255, which returns None on a null pointer.  
							
							
							
						 
						
							1999-12-17 17:15:50 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								8bb573e2ab 
								
							 
						 
						
							
							
								
								Oops, PLstring funcs should be "pascal". Funny this never caused problems before...  
							
							
							
						 
						
							1999-12-12 21:37:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								8f5725af60 
								
							 
						 
						
							
							
								
								First bits and pieces of appearance support: an init routine, a global flag PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE  
							
							... 
							
							
							
							is off the code is disabled (but the variables are still there, set to 0). 
							
						 
						
							1999-12-07 23:08:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								7e1fb7c92d 
								
							 
						 
						
							
							
								
								New about box, with the version mesage filled in in a text item, and  
							
							... 
							
							
							
							PLstrcmp() fixed. (Just) 
							
						 
						
							1998-07-31 09:36:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								1e2260fcb4 
								
							 
						 
						
							
							
								
								All import-related code has moved to macimport.c.  
							
							... 
							
							
							
							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. 
							
						 
						
							1998-07-13 13:37:12 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								fa68b07526 
								
							 
						 
						
							
							
								
								Print message when we load a PYC resource, if verbose import flag is on.  
							
							
							
						 
						
							1998-06-26 14:52:04 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								bbf4be2c2f 
								
							 
						 
						
							
							
								
								Incorrect argument for PyMacBuildwide()  
							
							
							
						 
						
							1998-04-23 13:20:17 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								d58cd630eb 
								
							 
						 
						
							
							
								
								Added PyMac_{Get,Build}wide. These should support python longints at  
							
							... 
							
							
							
							some point in the future. 
							
						 
						
							1998-04-21 15:24:39 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								efaada75e4 
								
							 
						 
						
							
							
								
								- Universal Headers 3 mods  
							
							... 
							
							
							
							- Started on menubar-restore code (but it still doesn't work 100%) 
							
						 
						
							1998-02-20 16:03:15 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								213649023c 
								
							 
						 
						
							
							
								
								Bug fix for fast module location  
							
							
							
						 
						
							1997-10-08 15:32:46 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								c73f83c8d9 
								
							 
						 
						
							
							
								
								Fixed for new "import dir.module" semantics. Needs accompanying fix in  
							
							... 
							
							
							
							import.c (yes Guido, I'll send it tomorrow) 
							
						 
						
							1997-10-07 21:48:31 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jack Jansen 
								
							 
						 
						
							
							
							
							
								
							
							
								0c96887d35 
								
							 
						 
						
							
							
								
								Handle systemclicks ourselves, in stead of passing them to Sioux. This  
							
							... 
							
							
							
							fixes (or masks?) a bug with Python becoming unreactive during
time.sleep() if you have already switched applications before. 
							
						 
						
							1997-08-26 13:20:34 +00:00