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
59c14e2254
Bit the bullet and enabled garbage collection (finally).
...
Also updated pyconfig.h to the current state of pyconfig.h.in.
2001-08-07 12:33:32 +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
b4a7db7736
config.h renamed to pyconfig.h
2001-07-27 09:22:03 +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
d1054ef31a
Set the default 8-bit encoding based on the system script and language.
2001-07-04 22:37:19 +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
Just van Rossum
0297dca941
Fixed bug that prevented shared libs that are submodules of a
...
package to be loaded from a PYD resource.
2001-06-26 06:54:33 +00:00
Jack Jansen
5daef31355
Adapted for Universal Headers 3.4: refcon type has changed (sigh) and use modern (UPP in stead of Proc) names for callback object creation.
2001-06-20 20:50:19 +00:00
Jack Jansen
fe9110b2ad
removed a routine that has moved to macglue.c
2001-05-22 22:37:05 +00:00
Jack Jansen
b45032e629
Fixed a nasty slowdown in imports in frozen applications: the shortcut
...
for loading modules from the application resource fork stopped working
when sys.path component normalization was implemented. Comparison
of sys.path components is now done by FSSpec in stead of by pathname.
2001-05-22 14:13:02 +00:00
Jack Jansen
25e0c79487
Another include Carbon/Carbon.h
2001-05-19 12:57:22 +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
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
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
c6cecf55d1
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why this wasn't a problem before...
2001-02-28 15:54:18 +00:00
Jack Jansen
add8b246f6
Release a PYC resource after reading it. No need to keep it incore.
2001-02-21 15:48:19 +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
fab7415831
Made version string shorter for Carbon so it fits on one line.
2001-02-17 22:00:43 +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
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