summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macfsmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Some buffers needed to be unsigned char, not char.Jack Jansen2002-02-261-2/+2
|
* Added as_pathname() method to FSRef objects.Jack Jansen2002-01-181-1/+17
|
* In MachoPython expect Unix-style pathnames for both FSSpec and FSRef ↵Jack Jansen2002-01-131-0/+10
| | | | initializers. TBD: Do the reverse for MacPython, and also handle as_pathname().
* Added __members__ to FInfo object.Just van Rossum2001-12-111-0/+2
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-4/+4
| | | | | | | | | | | | | 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.
* Replace sprintf() with PyOS_snprintf().Jack Jansen2001-12-051-1/+1
|
* Added an error message when using FSRef objects on platforms that don'tJack Jansen2001-11-061-0/+1
| | | | support them.
* Under MachO-Python unconditionally import macfsn.Jack Jansen2001-11-011-0/+6
|
* Moved macfsn hackery from macmain.c to macfsmodule.c so it loadsJust van Rossum2001-10-311-1/+32
| | | | on demand instead of at startup.
* Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen2001-09-101-7/+8
| | | | | | 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.
* Silly typos.Jack Jansen2001-09-021-2/+2
|
* Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.Jack Jansen2001-09-011-0/+9
| | | | Moved the declarations to pymactoolbox.h.
* - Don't return mac-style pathnames in unix-Python.Jack Jansen2001-08-081-130/+55
| | | | | - Fixed up a lot more prototypes (gcc also wants them on static routines) - Fixed various other gcc warnings.
* Removed unused variable.Jack Jansen2001-08-071-2/+0
|
* Oops, arg type for the glue routine was wrong.Jack Jansen2001-08-061-1/+1
|
* PyMac_GetFSSpec must be called via the dylib glue code on OSX.Jack Jansen2001-08-031-1/+16
|
* Merging appropriate 2.1.1 fixes back into the main trunk.Jack Jansen2001-08-031-1/+26
|
* Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs ↵Jack Jansen2001-07-081-10/+274
| | | | | | | | and pathnames where applicable. PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue. These mods are untested on OSX.
* Include Carbon/Carbon.h in stead of universal headers, if appropriate.Jack Jansen2001-05-191-0/+4
| | | | | Test for TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON where appropriate.
* FindFolder argument is a short, not an unsigned short.Jack Jansen2001-03-151-1/+1
|
* Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.Jack Jansen2000-07-141-3/+3
|
* pymactoolbox.h contains protoypes for all externally visible toolbox moduleJack Jansen2000-07-141-0/+2
| | | | | functions. Include it in stead of duplicating the declarations everywhere. Also cleaned up toolbox module exports, and got rid of resNotFound error.
* ANSIfication step 2: make sure all needed prototypes are available, and all ↵Jack Jansen2000-07-111-5/+6
| | | | | | needed header files included.
* Changed all (hopefully) uses of unsigned 16 bit value to use H format ↵Jack Jansen2000-07-071-1/+1
| | | | specifier, now that h is signed-only.
* Removed USE_STDWIN support.Jack Jansen2000-06-041-4/+0
|
* Made the core toolbox modules carbon-compatible using the new greylist ↵Jack Jansen2000-06-021-0/+4
| | | | | | 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.
* Big oops: macfs has always been using a private exception but calling it ↵Jack Jansen2000-01-241-1/+1
| | | | | | | mac.error. It now uses MacOS.Error (the OSErr valued error) and advertises that too. This fix shouldn't break anything, I guess.
* New exception interfaceJack Jansen1997-10-071-5/+1
|
* Export type objects to PythonJack Jansen1997-09-201-1/+10
|
* Added NewAliasMinimalFromFullPath(), and allow alias.Resolve() to returnJack Jansen1997-06-161-1/+28
| | | | an FSSpec to a non-existing file.
* - Changed the m# format for PyArg_ParseTuple back to s#Jack Jansen1997-05-071-2/+2
| | | | - c2pstr has moved to a different include file
* - Changed GestaltEqu.h to Gestalt.hJack Jansen1997-02-241-2/+2
| | | | | | | | - 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)
* Added/updated copyright noticesJack Jansen1997-01-311-1/+1
| | | | (and the &*^$%@ resource files got binhexed again, sigh)
* RenamedJack Jansen1997-01-301-172/+171
|
* Got rid of nfullpath()Jack Jansen1996-11-091-2/+1
|
* Added macfs.FindApplication() to find application FSSpec given signature.Jack Jansen1996-09-201-0/+21
|
* Added [GS]etDates methods to get and set creation, modification andJack Jansen1996-09-151-0/+88
| | | | backup times.
* Added SetFolder method which sets Standard File initial folderJack Jansen1996-07-221-0/+29
|
* Removed unused variableJack Jansen1995-10-031-2/+0
|
* Added new call PromptGetFile (like StandardGetFile, but accepts aJack Jansen1995-08-141-2/+29
| | | | prompt) and added optional prompt to GetDirectory.
* Added interfaces to {Get,Set}FInfo and accompanying objectsJack Jansen1995-08-071-1/+174
|
* Added FindFolder interfaceJack Jansen1995-06-181-0/+24
|
* StandardGetFile without args now shows all files (in stead of none)Jack Jansen1995-06-031-0/+2
|
* replace %#s with portable solutionGuido van Rossum1995-02-201-13/+14
|
* Added GetDirectory() methodJack Jansen1995-02-201-1/+16
|
* ported to Think CGuido van Rossum1995-02-141-0/+1
|
* Added RawFSSpec and RawAlias methods which turn their string argumentsJack Jansen1995-02-131-0/+53
| | | | into fsspec and alias objects.
* Added [GS]etCreatorType methods to FSSpec objectsJack Jansen1995-02-021-0/+49
|
* fixed StandardGetFile argument handlingGuido van Rossum1995-01-301-11/+4
|
* added (method) casts and 1995 copyrightGuido van Rossum1995-01-261-9/+12
|