Commit Graph

129 Commits

Author SHA1 Message Date
Jack Jansen b4a7db7736 config.h renamed to pyconfig.h 2001-07-27 09:22:03 +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
Jack Jansen 4542897d96 Added the new unicode defines. Not really tested yet, but Python compiles again at least. 2001-07-02 15:34:57 +00:00
Jack Jansen 0e2d6bfe09 Updated to reflect the current state of config.h.in. 2001-05-23 08:55:50 +00:00
Jack Jansen 0268ac80de Include Carbon/Carbon.h if appropriate.
Fixed glue initialization code so prototype is correct.
2001-05-22 22:34:56 +00:00
Jack Jansen 9f66b4af6a include Carbon/Carbon.h in stead of universal headers, if appropriate. 2001-05-19 12:32:39 +00:00
Jack Jansen f57a4a2e97 Glue code to connect obj_New and obj_Convert routines (the PyArg_Parse and Py_BuildTuple helpers) from one dynamically imported module to another. 2001-05-17 22:11:44 +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 b4b27bec0e - Raise console window on input. Fixes Carbon hang. 2001-04-25 22:07:42 +00:00
Jack Jansen 2b73fe9956 Updated for 2.1b2 distribution. 2001-03-27 21:38:55 +00:00
Jack Jansen 4cf97c4972 Files for second 2.1b1 distribution. 2001-03-15 14:41:01 +00:00
Jack Jansen 1d79f79bd0 Files for 2.1b1 distribution. 2001-03-06 22:51:42 +00:00
Jack Jansen 2f9a9e3c31 2.1a2 distribution files. 2001-02-17 22:03:42 +00:00
Jack Jansen 90f22fee6b Brought in line with current config.h.in. 2001-02-12 14:59:13 +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 add58f95cc Added prototype for DlgObj_WhichDialog() 2001-02-09 15:59:18 +00:00
Jack Jansen 50bf148afe Qdoffs now exports the GWorldObj_{New,Convert} functions. 2000-12-12 22:13:03 +00:00
Jack Jansen 87f204ad77 Final version used for 2.0 distribution. 2000-10-22 21:54:33 +00:00
Jack Jansen 8413b47ba7 Added PyMac_OutputSeen(), which acknowledges all current output in the stdio window, i.e. it acts like input has been read insofar as the keep-console-open option is interested. 2000-10-19 22:02:16 +00:00
Jack Jansen d5fd45ffa5 Made options global (as PyMac_options) so macosmodule can access it. 2000-10-13 19:44:40 +00:00
Jack Jansen 4a5eb967b8 Keepconsole is now a 4-way option: never/errorexit/unseen output/always. Default is "unseen output". Upped the Popt version number. 2000-09-22 21:50:11 +00:00
Jack Jansen 7a1b6fe020 Added prototype for DlgObj_ConvertToWindow(). 2000-08-25 22:28:08 +00:00
Jack Jansen 5660639f9f Moved PyOS_StackCheck prototype to pythonrun.h 2000-08-07 21:03:33 +00:00
Jack Jansen 5bdbabd203 Added more prototypes. 2000-07-24 19:52:52 +00:00
Jack Jansen a44923fbfe Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define. 2000-07-14 22:52:50 +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 9d8b96c850 pymactoolbox.h contains protoypes for all externally visible toolbox module
functions. Include it in stead of duplicating the declarations everywhere. Also
cleaned up toolbox module exports, and got rid of resNotFound error.
2000-07-14 22:16:45 +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 c3f593e6ab Don't declare sync if we use gusi. 2000-07-14 22:14:46 +00:00
Jack Jansen e17fd2a5af Got rid of __SC__ ifdefs. 2000-07-11 22:37:03 +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 fe38d2998f PyMac_FindModuleExtension now uses a size_t as its size parameter for compatibility. 2000-07-03 23:53:40 +00:00
Jack Jansen 021da55579 Removed THINK_C support. 2000-06-04 21:56:05 +00:00
Jack Jansen a04b24bf8d Removed hfsrunning() macro. This means MacPython won't run on MacOS 5 (oops, System 5) or earlier anymore:-) 2000-06-02 21:36:39 +00:00
Jack Jansen 7bfc2ebb01 Fixed to work again without USE_GUSI and with USE_MSL_MALLOC 2000-05-12 21:37:10 +00:00
Jack Jansen e4d7b5e626 Changed for the new preference resource version. 2000-05-07 22:07:26 +00:00
Jack Jansen ee0810403d Made the GUSI options work again with GUSI 2. 2000-04-21 23:53:37 +00:00
Jack Jansen 2d1306b7cf Started on GUSI2 and threading support. 2000-04-07 09:10:49 +00:00
Jack Jansen 5c21420772 Ready for 1.6a1. Reordered the defines to be in line with config.h.in again, so tracking the new defines will be easier in future. 2000-04-07 09:10:35 +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 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 f941acda60 Added HAVE_LIMITS_H, MAVE_MEMMOVE, HAVE_STRERROR, HAVE_LOCALE_H
since we have these in the current CW release (and probably already had them
quite some time, but never added the defines).
1999-11-05 15:54:46 +00:00
Jack Jansen 32a15adeab MrC also needs BAD_STATIC_FORWARD define. 1999-10-26 09:25:32 +00:00
Jack Jansen c7fda7e195 Make macglue.h C++ compatible. 1999-09-30 11:14:49 +00:00
Jack Jansen 245d17930b Added pascal-style string name of preference file resource, and bracketed
C struct declarations with #ifndef rez
1999-01-30 13:21:24 +00:00
Jack Jansen b736a87703 Project files converted for CW Pro 4. And the daylight savings time switch seems to have "modified" the resource files (but nothing has changed there). 1998-11-01 22:11:33 +00:00
Jack Jansen deff89c8be Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate. 1998-10-12 20:53:15 +00:00
Jack Jansen 60a9ee2679 Added SIZEOF_VOID_P and HAVE_LONG_LONG 1998-10-05 11:43:32 +00:00