Jack Jansen
5cc6d6e58e
Changed names, added bridge functions to macfs.fsref objects and
...
generally did things to get it working.
2001-11-06 15:57:59 +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
df222d2691
Added hfsplusapi module.
2001-11-06 15:56:56 +00:00
Jack Jansen
ae2df93814
Removed unused variable.
2001-11-06 12:10:05 +00:00
Jack Jansen
24aa3cea07
First couple of fixes to make it compile with Universal 3.3.2.
2001-11-06 12:06:39 +00:00
Jack Jansen
e9b2a0597e
HFS+ API contributed by Nitin Ganatra. This checkin is identical to what he sent me, except for the namechange (fmgr->hfsplus).
2001-11-06 11:10:13 +00:00
Jack Jansen
9c2b514014
Correctly builds the C module now.
2001-11-05 16:21:45 +00:00
Jack Jansen
bd00884415
First tweaks to allow MacPython to be compiled with
...
Universal Headers 3.4
2001-11-05 16:16:39 +00:00
Jack Jansen
34cbe718d4
Fixed broken newlines and changed module name. Still untested.
2001-11-05 16:15:45 +00:00
Jack Jansen
52e9045da6
Carbon Event Manager module donated by Donovan Preston. Checked in as I received them (except for namechange), these will not work as-is, that'll be fixed in a later checkin.
2001-11-05 14:44:23 +00:00
Jack Jansen
537a69fe66
Make the CoreFoundation object _New and _Convert routines available to other modules. Idea by Donovan Preston, implementaion by me.
2001-11-05 14:39:22 +00:00
Just van Rossum
3b5074b0fb
added acces to the cellSize field, rewrote setattr code
2001-11-05 11:12:12 +00:00
Just van Rossum
dd4830ac1d
More List Manager interfacing:
...
- CreateCustomList(): write LDEF's in Python! (carbon + classic)
- list.LGetCellDataLocation()
(Jack: what's with this _WIN32/pywintoolbox.h stuff?)
2001-11-05 08:27:57 +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
e54968a11a
Some escaped newlines had spaces between the backslash and the newline. Also slightly changed the comment on xstat().
2001-10-23 22:28:23 +00:00
Guido van Rossum
98bf58f1c6
SF patch #462296 : Add attributes to os.stat results; by Nick Mathewson.
...
This is a big one, touching lots of files. Some of the platforms
aren't tested yet. Briefly, this changes the return value of the
os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the
time functions localtime(), gmtime(), and strptime() from tuples into
pseudo-sequences. When accessed as a sequence, they behave exactly as
before. But they also have attributes like st_mtime or tm_year. The
stat return value, moreover, has a few platform-specific attributes
that are not available through the sequence interface (because
everybody expects the sequence to have a fixed length, these couldn't
be added there). If your platform's struct stat doesn't define
st_blksize, st_blocks or st_rdev, they won't be accessible from Python
either.
(Still missing is a documentation update.)
2001-10-18 20:34:25 +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
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
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
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
e7d8322630
exceptions was missing from the module list. Added.
2001-08-27 22:50:41 +00:00
Jack Jansen
75a2f85593
Last renamed module that wasn't removed yet.
2001-08-24 09:17:15 +00:00
Jack Jansen
25a5bd7708
Renamed.
2001-08-23 14:11:10 +00:00
Jack Jansen
50ecb0ad83
Renamed the Mac toolbox modules to have an initial _ in their name.
2001-08-23 14:02:09 +00:00
Jack Jansen
77105a960b
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
2001-08-23 13:51:46 +00:00
Jack Jansen
d7b568ac4d
test_glob found a nasty bug in GUSI opendir(): it will not fail when called on files, but in stead open the parent directory! We now explicitly test for the argument being a directory and simulate ENOTDIR otherwise.
2001-08-11 23:18:55 +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
b760923b20
Got rid of 68k-Mac and other outdated ifdefs.
2001-08-07 15:30:23 +00:00
Jack Jansen
71c5b02859
Got rid of mactcp cruft, added Mlte and CF modules.
2001-08-07 15:29:17 +00:00
Jack Jansen
b927285c03
Removed unused variable.
2001-08-07 15:28:52 +00:00
Jack Jansen
67992b7732
Bit another bullet: all toolbox modules are now in dynamically loaded modules. Everything still seems to work, but the ConfigurePythonXXX on initial install may still need work.
2001-08-07 13:53:25 +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
3988358b4d
If we use frameworks we should include CoreServices/CoreServices.h, not the
...
old-style CoreFoundation.h.
2001-08-03 15:36:23 +00:00
Jack Jansen
03b33effc7
TXNTSMCheck isn't available under Mach-O Carbon.
2001-08-03 15:34:29 +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
ddafd2b0c7
(Finally) converted to new-style args.
...
Added an optional (and ignored) 3d parameter to open() to make the signature compatible with posixmodule.
Added the various O_ constants (by stealing the code from posixmodule).
test_fileinput now passes.
2001-08-03 13:07:19 +00:00
Jack Jansen
6f70d62855
Used an adapted MethodGenerator to generate methods too for functions that have the object as the second arg after a first CFAllocatorRef arg (which we pass as NULL always anyway).
2001-07-17 20:47:13 +00:00
Jack Jansen
e85e4e43bd
The TNXDraw gworld argument is optional.
2001-07-16 21:58:44 +00:00
Jack Jansen
f0ded2f0bc
Various small fixes. The demo now starts to limp along.
2001-07-14 14:00:50 +00:00
Jack Jansen
d4b8361910
Fixed the mis-guessed parameters and added support for a few optional parameter types. There's a good chance that this is usable now (but there's no test code yet).
2001-07-13 22:27:20 +00:00