summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/file/filesupport.py
Commit message (Collapse)AuthorAgeFilesLines
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-051-1/+22
| | | | | | | | | | | | | | | | | | 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.
* Correct None refcount issue in Mac modules. (Are theyGeorg Brandl2006-05-281-1/+1
| | | | still used?)
* 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.
* Whitespace normalization.Tim Peters2005-07-171-38/+38
|
* Fix for #1236090: FSSpec.as_pathname() crashes.Jack Jansen2005-07-121-1/+48
| | | | | | 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-031-29/+29
| | | | they are now _self, _args and _kwds.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-576/+575
|
* Getting rid of code conditional on TARGET_API_MAC_*.Jack Jansen2003-11-191-48/+0
|
* Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:Jack Jansen2003-11-191-4/+0
| | | | MacOS9isms.
* Adding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by ↵Jack Jansen2003-03-211-1/+2
| | | | disabling unicode filenames on OS9.
* Allow unicode pathnames where FSRefs are expected. Fixes 696253.Jack Jansen2003-03-111-2/+5
|
* Added a missing INCREF in pathname().Jack Jansen2003-01-281-1/+3
|
* FSRef and EasyDialogs pathname support was pretty much broken in ↵Jack Jansen2003-01-261-1/+26
| | | | MacPython-OS9. Fixed.
* Added a convenience routine pathname() which accepts either a string, unicode,Jack Jansen2003-01-191-0/+15
| | | | FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
* Implemented FSCatalogInfo structure support, and used this to implementJack Jansen2003-01-151-6/+1
| | | | FSSpec.SetDates() and GetDates(). Closes #662836.
* Implemented FSCatalogInfo.Jack Jansen2003-01-121-12/+188
|
* Started on implementing support for FSCatalogInfo. Doesn't work yet, don'tJack Jansen2003-01-091-0/+49
| | | | try it.
* Second-argument alias methods were generated with a variation onJack Jansen2002-12-261-1/+1
| | | | MethodGenerator, this should be OSErrMethodGenerator.
* If you entered a pathname for a nonexisting file to a FSSpec constructorJack Jansen2002-12-251-0/+2
| | | | | 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.
* Added the last missing bits of functionality, and fixed a nasty bug where weJack Jansen2002-12-191-53/+130
| | | | could overwrite memory.
* - Added rawdata initializersJack Jansen2002-12-181-12/+111
| | | | | - 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-171-2/+7
| | | | Added comment (to myself) on what still needs to be done.
* - Added as_pathname and as_tuple methodsJack Jansen2002-12-171-7/+95
| | | | | | | - 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-151-44/+259
| | | | | | | 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-131-5/+1
|
* Got angry and added support for pretty much the whole file and folderJack Jansen2002-11-221-0/+156
manager. This should allow us the get rid of most of the FSSpecs, only navigation services remains to be done.