Commit Graph

1996 Commits

Author SHA1 Message Date
Jack Jansen b088dd4a26 Some of the lesser used targets still used FMADD/FMSUB instructions. Fixed. 2001-10-10 21:59:08 +00:00
Jack Jansen e67dab3d3f Updated, and added a very terse description of PyMac_SetConsoleHandler(). 2001-10-09 23:14:06 +00:00
Jack Jansen 893b0ab988 Fixed the embedding demo to correctly show the use of
overriding the console writer.
2001-10-09 23:09:00 +00:00
Jack Jansen a0472f73e6 Mods by Alexandre Parenteau to allow embedding programs to disable the MacPython console window completely, and optionally route console output (and input) to routines provided by the embedding app.
Things don't fully work yet, but at least it doesn't break anything.
2001-10-08 15:35:38 +00:00
Jack Jansen 509ad42470 Brought up to date with the current state of affairs. 2001-10-08 15:32:17 +00:00
Jack Jansen b58f1c0c03 Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandler
and PyMac_DummyWriteHandler.
2001-10-08 13:16:39 +00:00
Jack Jansen 144d387c85 Added weakrefobject.c and regenerated .exp files. 2001-10-08 13:01:05 +00:00
Just van Rossum c72d4cddc9 Fixed old bug (caused by careless Carbonizing) that noone noticed until
this week (apparently me and Bob Heeter at more or less the same time).
2001-09-24 17:29:09 +00:00
Jack Jansen 998a40a6d4 Mods by Donovan Preston (with changes by me to make them "go with the flow")
that will detect an __main__.py or __rawmain__.py in the application bundle.
This file is then exectued as the main script. We now have applets in
MachO Python!!!

The difference between __main__ and __rawmain__ is that the former gets a
complete simulated argv (so you can drop files on the applet and the script
sees them in sys.argv) while the latter skips the argv simulation and the
<option>key dialog. This keeps the AppleEvent that started the app intact,
as well as the funny "-psn_xxxx" argv[1] argument, so the script can do
with these what it wants.
2001-09-11 13:08:10 +00:00
Jack Jansen 0b60772ee9 - Removed the . in the extensions.
- Allow any file to be dropped on the interpreter (for file args).
2001-09-11 13:01:07 +00:00
Jack Jansen be67f8a5bf removed debug print. 2001-09-11 13:00:16 +00:00
Jack Jansen 408c16fad0 Added a note about making sure the Lac/Lib directory is in sys.path. 2001-09-11 11:30:02 +00:00
Jack Jansen 6438e1d280 Failing to import macfsn is not a fatal error. 2001-09-11 11:29:31 +00:00
Jack Jansen cf0319326a Implemented PyMac_GetFullPathname for MacPython. 2001-09-11 09:22:19 +00:00
Jack Jansen 697842f58c Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.
2001-09-10 22:00:39 +00:00
Jack Jansen c6249e9fef Superseded by Python 2.2.vct. 2001-09-10 21:03:06 +00:00
Jack Jansen c432cba3f2 Install the dialog resources into the application bundle. The EasyDialogs
selftest now works.
2001-09-09 00:36:52 +00:00
Jack Jansen eb30843ea4 Don't call MacOS.SchedParams() in MachO, it doesn't exist. 2001-09-09 00:36:01 +00:00
Jack Jansen a48d4eaddf Minimal module to decode AppleSingle files (the way resource files are
stored in the CVS repository). It can either decode resource/data forks
in the standard Mac way or decode only the resource fork but store
the result in the data fork (the MacOSX preferred way). Finder info
and all other stuff is ignored.
2001-09-09 00:35:19 +00:00
Jack Jansen f7e571432a Final tweaks for 2.2a3 distribution. 2001-09-08 21:38:26 +00:00
Jack Jansen 02646fe6d3 Oops, this file is very outdated. Removed. 2001-09-08 13:57:16 +00:00
Jack Jansen 71707f3bb8 Patch by Mark Day to allow from __future__ imports. Looks harmless
enough, but may have side-effects because it preallocates a single
codeop.Compiler() to compile all statements the user enters.

Just: please review and retract/modify if necessary.
2001-09-07 10:11:31 +00:00
Jack Jansen 0511b764d1 Minimal instructions for using the Makefile here. Also a clear
statement that this is a proof-of-concept meant for people to
experiment with, nothing more.
2001-09-06 16:36:42 +00:00
Jack Jansen 638e5e39cf Added targets to install the application, and to install mac-additions
in Python.
2001-09-06 16:33:57 +00:00
Jack Jansen 75ed167527 Rudimentary makefile for building the executable to go into a
fullblown OSX application. It is starting to work, but building
the application bundle is still handwork, and we need a minimal
readme file too.
2001-09-05 22:09:50 +00:00
Jack Jansen dff7770b7f Changes to make these work under OSX as the main program for a
fullblown drag and drop application. To my surprise it is starting
to work already: Python actually executes a script dropped on it.

To be done:
- Make sure this still works in MacPython
- Don't lose argv[0] in the process
- Applet support
2001-09-05 22:07:52 +00:00
Jack Jansen b30e106633 Python is a Shell, not a Viewer. 2001-09-05 22:04:25 +00:00
Jack Jansen 044d95e9f7 A few more gcc warnings bite the dust. 2001-09-05 15:44:37 +00:00
Jack Jansen fd064863eb Shut up many more gcc warnings. 2001-09-05 10:31:52 +00:00
Jack Jansen f894f6f4e9 Added prototypes to shut gcc -Wstrict-prototypes up. 2001-09-04 22:29:31 +00:00
Jack Jansen 9642ecad06 Shut up a few more gcc warnings. 2001-09-04 22:25:47 +00:00
Jack Jansen 1767f93603 Added prototypes to silence gcc strict-prototype warnings.
Fixed a few missing return values.
2001-09-04 22:20:39 +00:00
Jack Jansen 06d2e1af35 Regenerated without default int return types. 2001-09-04 22:19:18 +00:00
Jack Jansen f9114239e7 Added pythonpath.r to the developer distribution. It's
useful to people extending Python. Suggested by
Alexandre Parenteau.
2001-09-04 22:15:05 +00:00
Jack Jansen f6af601dd4 Template for an OSX PythonInterpreter application. 2001-09-04 21:28:03 +00:00
Jack Jansen d043ab6503 Photoshop sources for icon files. Not pretty, but hey! I'm not an
artist (and a certain artist didn't jump in, yet).
2001-09-04 21:25:36 +00:00
Jack Jansen 13b54a9da3 Added the last few missing files, and put everything in the right packages.
Tested, too:-)
2001-09-02 14:48:32 +00:00
Jack Jansen 6114297c87 Silly typos. 2001-09-02 00:09:35 +00:00
Jack Jansen 569ba10610 Don't call PyMac_HandleEvent in unix-Python 2001-09-02 00:08:16 +00:00
Jack Jansen 38c4dd4d53 Regenerated, mainly for new GC routines. 2001-09-01 23:42:11 +00:00
Jack Jansen b18ced2909 xx.prj has been replaced by xx.mcp. 2001-09-01 23:40:19 +00:00
Jack Jansen fabd00fa91 Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.
Moved the declarations to pymactoolbox.h.
2001-09-01 23:39:58 +00:00
Jack Jansen 62d24a0f50 Don't call PyMac_HandleEvent if we're in unix-Python. 2001-09-01 23:38:50 +00:00
Jack Jansen e9fb3d6db3 Include Carbon/Carbon.h if we're on OSX. 2001-09-01 23:38:13 +00:00
Jack Jansen 0de279b9cd Updated the Popt resources for the applets to the newest version. 2001-09-01 23:37:28 +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 a5ffeb69ab Added preferences/startup options for division warning
and accepting unix-style newlines on input.
2001-09-01 22:36:29 +00:00
Jack Jansen 7561d9ead9 Added all the new files in the right packages and file groups (I think, untested). 2001-08-30 22:10:10 +00:00
Jack Jansen 1da6eb091a Superseded by the (generated) xx.mcp. 2001-08-30 21:29:57 +00:00
Jack Jansen ba0ba411d1 Case mismatch in "import Types". Apparently nobody has looked at this for a looooong time. Reported by Chris Smith. 2001-08-30 21:22:10 +00:00