Just van Rossum
14666cc04f
Added __members__ to FInfo object.
2001-12-11 14:04:12 +00:00
Guido van Rossum
146483964e
Patch supplied by Burton Radons for his own SF bug #487390 : Modifying
...
type.__module__ behavior.
This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this). Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right. Apologies if they're
not. This also touches the weakref docs, which contains a sample type
object initializer. It also touches the mmap test output, because the
mmap type's repr is included in that output. It touches object.h to
put the correct description in a comment.
2001-12-08 18:02:58 +00:00
Jack Jansen
101de912d3
Replace sprintf() with PyOS_snprintf().
2001-12-05 23:27:58 +00:00
Jack Jansen
2bf52daedd
Added an error message when using FSRef objects on platforms that don't
...
support them.
2001-11-06 15:57:26 +00:00
Jack Jansen
01a9462787
Under MachO-Python unconditionally import macfsn.
2001-11-01 14:00:19 +00:00
Just van Rossum
ab57c7dcfc
Moved macfsn hackery from macmain.c to macfsmodule.c so it loads
...
on demand instead of at startup.
2001-10-31 22:55:08 +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
6114297c87
Silly typos.
2001-09-02 00:09:35 +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
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