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
Jack Jansen
158d5b5a7a
I guess I'll have to commit this file occasionally...
1998-08-20 14:50:10 +00:00
Jack Jansen
6a474c5844
Define some things to 1 (in stead of empty) to be compatible with new PIL
1998-08-20 14:49:33 +00:00
Jack Jansen
debafb9d84
Added SIZEOF_INT and SIZEOF_LONG
1998-08-05 16:04:47 +00:00
Jack Jansen
f22e67dcb5
Added prototypes for the code resource routines, and for Pstring
...
(which was missing, for some reason).
1998-07-13 13:39:34 +00:00
Jack Jansen
1ed70366e3
Version for 1.5.1
1998-05-06 13:25:42 +00:00
Jack Jansen
bbf4be2c2f
Incorrect argument for PyMacBuildwide()
1998-04-23 13:20:17 +00:00
Jack Jansen
0dca75229b
Add (temporary) PyMac_{Build,Get}wide
1998-04-21 15:20:50 +00:00
Jack Jansen
4f2936e368
Add HAVE_MKTIME
1998-04-21 15:20:20 +00:00
Jack Jansen
c84cb9511b
Added declarations for mac{set,get}filetype
1998-04-15 14:12:45 +00:00
Jack Jansen
64da169f43
Added CHECK_IMPORT_CASE
...
Added HAVE_HYPOT, except for 68k (where you get 10-byte-float hypot,
sigh...)
1998-02-20 15:50:23 +00:00
Jack Jansen
6b02ac2321
I give in. Now Tk is also using resources just above 128, so Python
...
now uses only 228-256, leaving 128-228 free for others. This mod
affects prefs files, libraries and almost everything else, so I've
upped my local Python to 1.5b4 to remain sane.
1998-01-06 16:48:49 +00:00
Jack Jansen
c6bb281c50
Added old-exceptions and no-site-python options and upped preference
...
version to 4.
Added balloon-help item to options dialog.
1997-09-09 13:50:40 +00:00
Jack Jansen
447e01b04e
Preference resource now has a version number
1997-09-08 13:24:54 +00:00
Jack Jansen
222c34edc6
Moved the include of macbuildno.h to getbuildinfo.c. Putting it here
...
resulted in full recompilation every time.
1997-09-08 13:24:23 +00:00
Jack Jansen
2d30840b92
Define BUILDNO in macbuildno.h (incremented by fullbuild)
1997-09-01 15:39:07 +00:00
Jack Jansen
50ea91976b
Mods for user mainloop event handling
1997-06-20 16:25:00 +00:00
Jack Jansen
eda78634a4
Make imports faster on the Mac, by
...
- Remembering whether sys.path components refer to files or folders,
- Using mac-specific code to check for file existence, in stead of trying
to fopen() each possible file.
These mods need an accompanying mod to import.c.
1997-06-12 15:29:46 +00:00
Jack Jansen
0130f0fb8f
Added prototype for PyMac_RestoreMenuBar
1997-06-12 10:51:39 +00:00
Jack Jansen
4a79a4b0a9
Removed SetScheduleTimes and PyMac_DoYieldEnabled
...
Added [GS]etSchedParams
Added parameter to PyMac_HandleEvent (safe to run python code at this point)
Removed various cruft
1997-06-03 15:27:31 +00:00
Jack Jansen
001aa86d34
Added a range of resource numbers reserved for Bruce
1997-05-28 11:54:43 +00:00
Jack Jansen
570e4b7ad1
Added PyMac_StopGUSISpin
1997-05-23 15:33:20 +00:00
Jack Jansen
d1d242ec84
c2pstr has moved to a different include file
1997-05-07 15:45:01 +00:00
Jack Jansen
54956722e5
Modified for (optional) use of MSL
1997-04-08 15:24:58 +00:00
Jack Jansen
42218ce33c
Added/updated copyright notices
...
(and the &*^$%@ resource files got binhexed again, sigh)
1997-01-31 16:15:11 +00:00
Jack Jansen
52ac037249
Added PyMac_Initialize() routine, to be used by embedding programs (in
...
stead of standard Py_Initialize(), which it calls).
1997-01-15 15:49:08 +00:00
Jack Jansen
466be801fd
Minor fix to get non-gusi python to compile again
1997-01-10 15:25:06 +00:00
Jack Jansen
a83caa0331
Added range of resource-ids for twit.
1996-12-23 17:23:23 +00:00
Jack Jansen
6c11f7444c
Added PyMac_GetFullPath(), PyMac_ApplicationPath and PyMac_ApplicationFSSpec
1996-11-09 18:48:06 +00:00
Jack Jansen
ae178eaea6
Added HAVE_STRFTIME
1996-10-23 15:42:01 +00:00
Jack Jansen
d081b13c0d
Added resource for preference file name
1996-10-22 15:24:21 +00:00
Jack Jansen
a58d89eec4
'documented' resource-number useage of EditPythonPrefs
1996-10-11 13:19:52 +00:00
Jack Jansen
924ca855da
Added macfs.FindApplication() to find application FSSpec given signature.
1996-09-20 15:25:16 +00:00
Jack Jansen
7d5f9e847a
- Put all options in a struct
...
- Unified initialization code for interpreter and applet
- Implemented new options to skip AE-processing for argc/argv and for
disabling interactive option setting
1996-09-07 17:09:31 +00:00
Jack Jansen
3d228879fe
macglue: added PyMac_AppRefNum
...
pythonresources: elaborated comment on preferences, added new options
1996-09-06 22:18:40 +00:00
Jack Jansen
3469e997b4
Python about box implemented. Slightly convoluted, since (a) we have
...
to override an internal sioux routine and (b) we have to override the
"about sioux" menuitem after sioux has created its menus.
1996-09-06 00:30:45 +00:00
Jack Jansen
f6865f77d4
- Fixed PyMac_DoYield:
...
- Update lastyield correctly
- Do event handling if PyMac_YieldEnabled > 0 (previous cmd-. fix
broke this)
- Use our own GUSISpin routine: fixes crash when exiting with sockets
open and keeps windows, etc reacting consistently when waiting for
accepts(), etc.
1996-09-04 15:24:59 +00:00
Jack Jansen
7e124ea86a
Guido:
...
- define USE_CHECKSTACK
- Comment on defines used
1996-08-19 11:38:54 +00:00
Jack Jansen
70463665d3
PyMac_BuildNumVersion added
1996-08-02 11:21:03 +00:00
Jack Jansen
ab69eb9673
Added resource-ids for override preferences.
1996-04-04 15:39:42 +00:00
Jack Jansen
e355c4568f
- Allow setting of argc/argv in <option>-start dialog
...
- Set "ok" to be default button
1996-03-12 13:29:04 +00:00
Jack Jansen
378815ca86
Replaced previous gusi-chdir() fix by a call to PyMac_FixGUSIcd()
...
after each chdir call.
1996-03-06 16:21:34 +00:00
Jack Jansen
01fbc68896
- Reorganized init code
...
- Fixed serious bug in code to get options from a resource
1996-02-28 15:42:47 +00:00
Jack Jansen
a4b7e14df8
Store default startup options in preference file or
...
app.
1996-02-21 16:46:57 +00:00
Jack Jansen
c743c8d166
Modified for GUSI
1996-02-14 16:02:30 +00:00
Jack Jansen
fa4d5d0414
Added converters for Fixed
1995-11-15 15:19:29 +00:00
Jack Jansen
0168f279cc
Added options for keeping window open on normal/error termination
...
Moved whole exit-handling of console window here (from pythonrun.c)
1995-10-27 13:32:30 +00:00
Jack Jansen
41fa7ea719
Python will now attempt (again) to create at least a minimal
...
preferences file if it is missing.
1995-08-31 13:59:36 +00:00
Jack Jansen
32486f5662
Added PyMac_PromptGetFile, removed stuff gone to other sources.
1995-08-14 12:36:37 +00:00
Jack Jansen
c2e6dd8179
New file: list resource-ids in one place.
1995-08-14 12:34:42 +00:00
Jack Jansen
f8bddd8ae3
Mwerks now also has fopenrf
1995-08-07 14:03:14 +00:00
Jack Jansen
f74f63a43f
Initial port to CodeWarrior CFM68K support (mainly by disabling
...
unsupported features).
1995-06-27 13:18:14 +00:00
Guido van Rossum
edea408f88
changed ifdefs and comments -- more modules are good
1995-02-21 21:01:47 +00:00
Jack Jansen
3ec804af85
- Added PyMac_GetDirectory call which asks the user to select a
...
directory.
- No __main__ resource found message is now a dialog
- Fixes wrt stdio window handling in applets.
NB: these fixes require a new resource file.
1995-02-20 15:56:10 +00:00
Guido van Rossum
e71d853fc9
hacks for atoi/strtod in __SC__
1995-02-19 15:49:39 +00:00
Guido van Rossum
f71a9a9c6e
macstrerror -> MacOS-StrError; added applet and cfm-68k support
1995-02-18 14:59:48 +00:00
Guido van Rossum
eabdbff717
put #undefs insize comments; rationalize MPW support
1995-02-18 14:56:51 +00:00
Jack Jansen
74162f311f
Added support for loading pyc code from a resource.
1995-02-15 22:58:33 +00:00
Guido van Rossum
becdbec806
ported to Think C
1995-02-14 01:27:24 +00:00
Jack Jansen
8cd2b720f6
Added PyMac_GetPythonDir routine which obtains python home directory
...
from an alias resource (or from the user). Note: this uses a dialog
resource so there's an accompanying change in the resource file.
1995-02-13 11:33:28 +00:00
Jack Jansen
a76382a6ac
Added HandleEvent method to macos, so python programs can hand back
...
events they don't want to handle to stdio
1995-02-02 14:25:56 +00:00
Jack Jansen
ee23d6ec87
- Moved interrupt code to macglue.c
...
- Added possibility to turn off mainloop event handling
- Check interrupts even when not handling events
- Be more carefulabout which events we want
- Use different method to determine fg/bg
1995-01-27 14:43:25 +00:00
Jack Jansen
fdbc79e779
Prototypes for new routines.
1995-01-26 16:37:21 +00:00
Guido van Rossum
cf27c2d541
Some layout changes; added EventRecord Get/Build functions (as a tuple).
1995-01-25 23:06:44 +00:00
Guido van Rossum
b340466af9
cosmetics: copyright, comments
1995-01-22 18:36:13 +00:00
Guido van Rossum
9aa3d1370e
renamed Get routines to PyMac_Get; added macfs to config.c
1995-01-21 13:46:04 +00:00
Guido van Rossum
6a5df90918
ported Jacks changes back to think C
1995-01-18 23:59:06 +00:00
Guido van Rossum
8f69179f97
modernized/rationalized, added PyMac_BuildOSType
1995-01-18 23:57:26 +00:00
Jack Jansen
d50e4e1c54
More Pstring() stuff and some cosmetics
1995-01-18 13:58:04 +00:00
Jack Jansen
48d071d302
Comment fix
1995-01-18 13:56:20 +00:00
Jack Jansen
5f653091d1
- Moved some useful routines from macosmodule.c here
...
- Added GetFSSpec (tuple-style), BuildFSSpec and Pstring
(platform-independent correct conversion of C to Pascal strings)
1995-01-18 13:53:49 +00:00
Guido van Rossum
fffb8bb526
rename2 changes
1995-01-12 12:37:24 +00:00
Jack Jansen
0c637709ad
Ported to CodeWarrior
1994-12-14 14:10:51 +00:00
Jack Jansen
f93c72a4b0
New routines:
...
macstrerror - strerror which uses 'Estr' resource to convert numerical
MacOS errors to strings.
PyErr_Mac - Raise exception with MacOS error in string form.
PyMac_Idle - better idle-loop routine, which allows the user to
switch applications.
1994-12-14 14:07:50 +00:00
Jack Jansen
fea75336aa
Added support for MetroWerks CodeWarrior compiler
1994-12-14 13:38:13 +00:00
Guido van Rossum
739267b7c3
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
...
versions -- they now share config.c and config.h, and statting is
always done through macstat.[ch] (THINK's <stat.h> defines funny
constants). Also the configuration of stdwin is done differently: you
have to define USE_STDWIN to the compiler prefix.
1994-08-29 08:42:37 +00:00
Guido van Rossum
29e7af07f0
Some more changes
1994-08-23 13:28:34 +00:00
Guido van Rossum
d4d7728440
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
1994-08-19 10:51:31 +00:00