Commit Graph

42 Commits

Author SHA1 Message Date
Jack Jansen deefbe5666 - Don't return mac-style pathnames in unix-Python.
- Fixed up a lot more prototypes (gcc also wants them on static routines)
- Fixed various other gcc warnings.
2001-08-08 13:46:49 +00:00
Jack Jansen b927285c03 Removed unused variable. 2001-08-07 15:28:52 +00:00
Jack Jansen 4590049228 Oops, arg type for the glue routine was wrong. 2001-08-06 15:32:30 +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 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 6143d533b6 Include Carbon/Carbon.h in stead of universal headers, if appropriate.
Test for TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON where
appropriate.
2001-05-19 12:34:59 +00:00
Jack Jansen abd703d0ce FindFolder argument is a short, not an unsigned short. 2001-03-15 14:38:10 +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 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 0b13e7c153 Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only. 2000-07-07 13:09:35 +00:00
Jack Jansen d4d24cd96b Removed USE_STDWIN support. 2000-06-04 22:02:02 +00:00
Jack Jansen e79dc76f53 Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
2000-06-02 21:35:07 +00:00
Jack Jansen 4377a1a2c5 Big oops: macfs has always been using a private exception but calling it mac.error.
It now uses MacOS.Error (the OSErr valued error) and advertises that too. This
fix shouldn't break anything, I guess.
2000-01-24 10:37:59 +00:00
Jack Jansen 55e3927f58 New exception interface 1997-10-07 21:47:25 +00:00
Jack Jansen a755e68df6 Export type objects to Python 1997-09-20 17:40:22 +00:00
Jack Jansen d993648ef6 Added NewAliasMinimalFromFullPath(), and allow alias.Resolve() to return
an FSSpec to a non-existing file.
1997-06-16 14:31:38 +00:00
Jack Jansen eeccca9bdc - Changed the m# format for PyArg_ParseTuple back to s#
- c2pstr has moved to a different include file
1997-05-07 15:46:31 +00:00
Jack Jansen 4a8c54e6d9 - Changed GestaltEqu.h to Gestalt.h
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
- Regenerated bgen modules from new universal headers
- Changed some of the s# in PyArg_ParseTuple to m# (unfortunately:
  this should have been a different commit)
1997-02-24 13:56:59 +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 f5c20575cb Renamed 1997-01-30 15:48:07 +00:00
Jack Jansen 84fb1fab1f Got rid of nfullpath() 1996-11-09 18:46:57 +00:00
Jack Jansen 924ca855da Added macfs.FindApplication() to find application FSSpec given signature. 1996-09-20 15:25:16 +00:00
Jack Jansen 0bdf979af7 Added [GS]etDates methods to get and set creation, modification and
backup times.
1996-09-15 22:11:25 +00:00
Jack Jansen d99d283383 Added SetFolder method which sets Standard File initial folder 1996-07-22 15:26:01 +00:00
Jack Jansen 8ccfc93c2f Removed unused variable 1995-10-03 14:39:44 +00:00
Jack Jansen d5d5f462f9 Added new call PromptGetFile (like StandardGetFile, but accepts a
prompt) and added optional prompt to GetDirectory.
1995-08-14 12:22:56 +00:00
Jack Jansen 3d18593e6d Added interfaces to {Get,Set}FInfo and accompanying objects 1995-08-07 14:04:10 +00:00
Jack Jansen 2c67362f70 Added FindFolder interface 1995-06-18 20:05:14 +00:00
Jack Jansen c263286bc6 StandardGetFile without args now shows all files (in stead of none) 1995-06-03 21:15:50 +00:00
Guido van Rossum f45b53b13c replace %#s with portable solution 1995-02-20 23:43:29 +00:00
Jack Jansen 81f51c74ea Added GetDirectory() method 1995-02-20 15:45:25 +00:00
Guido van Rossum becdbec806 ported to Think C 1995-02-14 01:27:24 +00:00
Jack Jansen c889b760d7 Added RawFSSpec and RawAlias methods which turn their string arguments
into fsspec and alias objects.
1995-02-13 12:00:46 +00:00
Jack Jansen 8828fcf738 Added [GS]etCreatorType methods to FSSpec objects 1995-02-02 14:23:52 +00:00
Guido van Rossum b2f524ae44 fixed StandardGetFile argument handling 1995-01-30 08:56:06 +00:00
Guido van Rossum efd9767f56 added (method) casts and 1995 copyright 1995-01-26 22:56:16 +00:00
Jack Jansen 17ba43f1e4 Complete rewrite. 1995-01-26 16:22:07 +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 a42960cd09 ported to THINK C (not tested yet) 1995-01-19 00:03:47 +00:00
Jack Jansen 84fa5ecfff Initial version of FSSpec and Alias code. Non-functional as of now. 1995-01-18 14:04:40 +00:00