Jack Jansen
c00df0bbba
Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the previous complicated expression.
2001-01-16 15:54:58 +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
8e0ee7761d
Got rid of ifdefs to enable MacTCP GUSI support, Open Transport always works fine nowadays.
2001-01-12 23:41:46 +00:00
Jack Jansen
264630e855
When compiling for GUSI and Carbon disable te "keep open on unseen output", for the time being.
2001-01-11 23:04:32 +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
ebadcb1c1d
FSSpec names may be longer on carbon (1024 chars), cater for that in buffer sizes.
2001-01-09 22:25:49 +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
6ff228c6d2
If we're not using GUSI the "keep open on unseen output" becomes the same as "always keep open".
2001-01-09 22:24:06 +00:00
Jack Jansen
5afad8315b
Added a c2pstrcpy() function.
2000-12-12 22:12:14 +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
dc86f9ebf9
Made options global (as PyMac_options) so macosmodule can access it.
2000-10-12 21:23:19 +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
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
65c3ee0f66
Use same short banner message as unix/win Python.
2000-09-08 10:20:37 +00:00
Jack Jansen
6be3480083
Removed debug output.
2000-08-25 21:58:00 +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
fb106c8c2f
Removed temporary code to disable OT networking (this was a workaround for getpeername() not working in a previous release of GUSI, but it has been fixed).
2000-08-17 20:04:26 +00:00
Jack Jansen
d843a018e9
Removed temporary code that always set creator to SimpleText.
2000-08-17 20:01:24 +00:00
Jack Jansen
5bdbabd203
Added more prototypes.
2000-07-24 19:52:52 +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
660bb1d1c7
MacPython on MacOSX DP4 gets started in the wrong directory. The workaround (ifdeffed by USE_ARGV0_CHDIR) is to do a chdir() to the folder part of our executable name.
2000-07-18 09:40:39 +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
41e25cc317
include macdefs.h for declaration of getwd, if non-gusi python.
2000-07-14 22:16:01 +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
e17fd2a5af
Got rid of __SC__ ifdefs.
2000-07-11 22:37:03 +00:00
Jack Jansen
1af5b082ab
Removed guesstabsize.c, which is obsolete.
2000-07-11 21:18:44 +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
ca23d910f8
Made argc/argv processing work again under carbon.
2000-06-20 07:40:34 +00:00
Jack Jansen
868f0c7155
Oops, default type and creator were reversed.
2000-06-14 09:12:44 +00:00
Jack Jansen
490121355e
Removed assorted old ifdefs.
2000-06-04 22:11:10 +00:00
Jack Jansen
021da55579
Removed THINK_C support.
2000-06-04 21:56:05 +00:00
Jack Jansen
d9f6e92fbf
Removed THINK_C support.
...
Added a CARBON indicator to the version string.
2000-06-04 21:51:36 +00:00
Jack Jansen
33d1ad28cb
Replaced GetFInfo and SetFInfo calls with FspGetFInfo and FspSetFInfo calls, which are carbon-compatible.
2000-06-02 21:29:59 +00:00
Jack Jansen
ee6eeb1876
Removed (within an #ifdef) Carbon-incompatabilities:
...
- Don't call all the toolbox init routines.
- No balloon help, so removed help code from the initial dialog.
2000-06-02 21:28:52 +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
14cd750004
Fixed callback function arguments to be carbon-compatible.
...
(Temporarily?) removed call to ProcessHighLevelEvent until we find out how to do this (Carbon only).
2000-06-02 21:23:09 +00:00
Jack Jansen
9cfce18c4f
GUSI 2.0.5 has a non-functional getsockname() if you use Open Transport. For now the workaround is to only enable MacTCP sockets.
2000-05-10 15:15:54 +00:00
Jack Jansen
0c6d037cc5
Removed string-exception preference, added tabcheck and NavService preference, upped version number.
2000-05-05 23:11:14 +00:00
Jack Jansen
850d118f74
Got rid of w/MSL in the version string.
2000-05-05 23:08:47 +00:00
Jack Jansen
69652f8abe
Moved to the Compat folder (in case anyone still wants to try MPW building), it hasn't been used for years.
2000-05-03 08:42:26 +00:00
Jack Jansen
6a066805e0
Removed, the core-python getmtime works fine with GUSI2.
2000-05-03 08:41:56 +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
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
205b435c50
Added initializer routine optionally to be used as PEF fragment initialization routine, which allows us to get at our own resource fork even if some shared library init routine opens other resource files.
2000-01-07 14:53:31 +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
608b3fa801
Dummy functions which return unimpErr for lots of toolbox calls that are unavailable for 68K. This way we don't have to disable thm in bgen, so we
...
can still use them on PPC.
1999-12-12 21:38:29 +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