summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/file
Commit message (Collapse)AuthorAgeFilesLines
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-2376/+2376
|
* Another fix for 4-way universal builds, use the right #ifndef guardRonald Oussoren2008-08-121-1/+1
| | | | to detect the OSX 10.5 SDK.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-7/+7
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Fix build issue on OSX 10.4Ronald Oussoren2008-06-061-4/+4
|
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-052-19/+154
| | | | | | | | | | | | | | | | | | This patch adds a new configure argument on OSX: --with-universal-archs=[32-bit|64-bit|all] When used with the --enable-universalsdk option this controls which CPU architectures are includes in the framework. The default is 32-bit, meaning i386 and ppc. The most useful alternative is 'all', which includes all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64). This includes limited support for the Carbon bindings in 64-bit mode as well, limited because (a) I haven't done extensive testing and (b) a large portion of the Carbon API's aren't available in 64-bit mode anyway. I've also duplicated a feature of Apple's build of python: setting the environment variable 'ARCHFLAGS' controls the '-arch' flags used for building extensions using distutils.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-7/+7
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Correct None refcount issue in Mac modules. (Are theyGeorg Brandl2006-05-282-2/+2
| | | | still used?)
* Fix some warnings on Mac OS X 10.4Neal Norwitz2006-04-281-4/+5
|
* mwh pointed out _Filemodule.c is generated. So to fix the memory leakNeal Norwitz2006-01-251-4/+3
| | | | | | | | | 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.
* This should fix a mem leak on the Mac. Brett tested it.Neal Norwitz2006-01-231-4/+3
|
* Whitespace normalization.Tim Peters2005-07-171-38/+38
|
* Fix for #1236090: FSSpec.as_pathname() crashes.Jack Jansen2005-07-122-2/+93
| | | | | | 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.
* Updated (and regenerated) for name change in tp_init method arguments:Jack Jansen2005-07-032-232/+192
| | | | they are now _self, _args and _kwds.
* SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in coreRaymond Hettinger2004-11-051-1/+44
| | | | | | | | | | | | | (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
* Whitespace normalization, via reindent.py.Tim Peters2004-07-182-759/+758
|
* Ported to Universal Headers 3.4.2. Qd and Qt remain to be done.Jack Jansen2003-12-031-0/+2
| | | | Completely untested.
* Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.Jack Jansen2003-11-201-5/+0
| | | | Cleaned up various things in the toolbox modules.
* Getting rid of code conditional on TARGET_API_MAC_*.Jack Jansen2003-11-193-122/+0
|
* Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:Jack Jansen2003-11-192-8/+0
| | | | MacOS9isms.
* Adding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by ↵Jack Jansen2003-03-212-2/+4
| | | | disabling unicode filenames on OS9.
* Allow unicode pathnames where FSRefs are expected. Fixes 696253.Jack Jansen2003-03-112-4/+10
|
* The FSAliasFile routines also have an in/out parameter.Jack Jansen2003-02-022-4/+9
|
* Added a missing INCREF in pathname().Jack Jansen2003-01-282-2/+6
|
* FSRef and EasyDialogs pathname support was pretty much broken in ↵Jack Jansen2003-01-262-2/+52
| | | | MacPython-OS9. Fixed.
* Added a convenience routine pathname() which accepts either a string, unicode,Jack Jansen2003-01-192-3/+37
| | | | FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
* Implemented FSCatalogInfo structure support, and used this to implementJack Jansen2003-01-152-12/+2
| | | | FSSpec.SetDates() and GetDates(). Closes #662836.
* Implemented FSCatalogInfo.Jack Jansen2003-01-123-27/+705
|
* Started on implementing support for FSCatalogInfo. Doesn't work yet, don'tJack Jansen2003-01-092-2/+60
| | | | try it.
* Second-argument alias methods were generated with a variation onJack Jansen2002-12-262-53/+53
| | | | MethodGenerator, this should be OSErrMethodGenerator.
* If you entered a pathname for a nonexisting file to a FSSpec constructorJack Jansen2002-12-252-0/+4
| | | | | on OSX then the actual error (file not found) was obscured by the error message that tried to be helpful about the allowed arguments. Fixed.
* - Various tweaks to shut up compiler warnings.Jack Jansen2002-12-231-0/+4
| | | | | - Regenerated with the correct calls to PyType_Ready and the correct deallocator calls.
* Added the last missing bits of functionality, and fixed a nasty bug where weJack Jansen2002-12-192-129/+385
| | | | could overwrite memory.
* Regenerated with inheritance-aware xxxx_Check() macros.Jack Jansen2002-12-191-3/+3
|
* - Added rawdata initializersJack Jansen2002-12-183-124/+339
| | | | | - Added support for optional FSSpecs and FSRefs to the Alias routines. NewAlias and friends are still functions, though, not methods.
* Fixed silly typo.Jack Jansen2002-12-172-4/+9
| | | | Added comment (to myself) on what still needs to be done.
* Include Finder.h too in the list of header files to parse: the finderJack Jansen2002-12-171-1/+2
| | | | constants have tradiationally been in MACFS.py.
* - Added as_pathname and as_tuple methodsJack Jansen2002-12-172-19/+205
| | | | | | | - Added access to the "data" attribute - Fixed the FSRef tp_init routine to accept pathnames on OSX - Changed the FSSpec tp_repr to return something resembling what macfs returns.
* Combined alias and file into a single module. This is the only reasonableJack Jansen2002-12-153-579/+1742
| | | | | | | way to get various alias creation routines as methods of FSSpec or FSRef objects (which is the logical thing, from a Python POV). Also started on the code that will contain all the macfs functionality, so macfs can becode a Python module, to be used mainly for backward compatibility.
* Tweaks to make this module OS9-compatible.Jack Jansen2002-12-133-13/+31
|
* Got angry and added support for pretty much the whole file and folderJack Jansen2002-11-223-0/+1754
manager. This should allow us the get rid of most of the FSSpecs, only navigation services remains to be done.