671 Commits

Author SHA1 Message Date
Ronald Oussoren
de39bd3f27 This is a backport of the fix in rev. 59369.
This patch doesn't remove the wrappers for OSADebug* API's but only defines
them when configure detects that the API's are present in the system's
header files.
2007-12-05 20:43:57 +00:00
Georg Brandl
226910f52d bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
(backport from rev. 58119)
2007-09-12 18:29:21 +00:00
Ronald Oussoren
bfbfe1f8b9 Fix for bug #1525447 (renaming to MacOSmodule.c would also work, but not
without causing problems for anyone that is on a case-insensitive filesystem).

Setup.py tries to compile the MacOS extension from MacOSmodule.c, while the
actual file is named macosmodule.c. This is no problem on the (default)
case-insensitive filesystem, but doesn't work on case-sensitive filesystems.
2006-07-25 19:20:54 +00:00
Thomas Heller
dd82734aa1 Add missing Py_DECREF. 2006-07-11 16:42:05 +00:00
Neal Norwitz
274facfd1d Fix whitespace, there are memory leaks in this module. 2006-06-16 04:32:43 +00:00
Ronald Oussoren
fb2a169ce3 Drop Mac wrappers for the WASTE library. 2006-06-04 14:24:59 +00:00
Georg Brandl
bf92f46572 Convert more modules to METH_VARARGS. 2006-05-29 21:58:42 +00:00
Georg Brandl
5f6861df93 Correct None refcount issue in Mac modules. (Are they
still used?)
2006-05-28 21:57:35 +00:00
Ronald Oussoren
306b1f31b7 Fix bug #1000914 (again).
This patches a file that is generated by bgen, however the code is now the
same as a current copy of bgen would generate.  Without this patch most types
in the Carbon.CF module are unusable.

I haven't managed to coax bgen into generating a complete copy of _CFmodule.c
yet :-(, hence the manual patching.
2006-05-20 06:17:01 +00:00
Neal Norwitz
82d4cc27c6 Fix some warnings on Mac OS X 10.4 2006-04-28 05:28:05 +00:00
Ronald Oussoren
6c1074888e This patches fixes a number of byteorder problems in MacOSX specific code. 2006-04-17 13:40:08 +00:00
Neal Norwitz
1bd7127fec Get rid of some warnings on Mac 2006-04-12 04:56:35 +00:00
Neal Norwitz
c3264e50e7 Get rid of some warnings. 2006-03-20 02:04:23 +00:00
Neal Norwitz
8786eb5e92 Fix a couple of warnings on Mac OS X. 2006-02-24 15:39:29 +00:00
Neal Norwitz
73afe9aa32 mwh pointed out _Filemodule.c is generated. So to fix the memory leak
this file (the source) must be fixed.

Why isn't there a comment at the top saying the file is generated and
why are both the source and generated file checked in?  Bootstrap problem?

Will backport.
2006-01-25 05:42:22 +00:00
Neal Norwitz
8ac83f3152 This should fix a mem leak on the Mac. Brett tested it. 2006-01-23 07:25:29 +00:00
Tim Peters
f5f32b4712 Whitespace normalization. 2005-07-17 23:16:17 +00:00
Jack Jansen
d7b76e9f69 Fix for #1236090: FSSpec.as_pathname() crashes.
Turns out patch #1035255 was incomplete, it only patched _Filemodule.c
and not filesupport.py. So regenerating caused as_pathname() to go into
an infinite loop.
2005-07-12 21:25:05 +00:00
Jack Jansen
918a9e2f63 Updated (and regenerated) for name change in tp_init method arguments:
they are now _self, _args and _kwds.
2005-07-03 20:59:44 +00:00
Raymond Hettinger
ec6eb369d5 SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
(Contributed by Bob Ippolito.)

This patch trims down the Python core on Darwin by making it
independent of CoreFoundation and CoreServices. It does this by:

Changed linker flags in configure/configure.in
Removed the unused PyMac_GetAppletScriptFile
Moved the implementation of PyMac_StrError to the MacOS module
Moved the implementation of PyMac_GetFullPathname to the
Carbon.File module
2004-11-05 07:02:59 +00:00
Tim Peters
182b5aca27 Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
Jack Jansen
ce17cf6da7 The CF inheritance could cause double frees of the underlying objects.
Fixed.
2004-07-15 14:25:48 +00:00
Jack Jansen
d9e50f554f CFStringGetUnicode() returned an extra null character at the end of the string.
fixed.
2004-07-15 14:11:30 +00:00
Jack Jansen
3bfc28c12f Make CF module PEP253 based (finally). 2004-07-15 13:42:06 +00:00
Jack Jansen
75694501ca Get rid of incorrect use of OSAGetCurrentDialect. Fixes #884085. 2004-07-15 13:21:16 +00:00