From 1795f29b4b87c34876cae4e3a7653f0f79b1f8e4 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 17 Dec 2002 23:29:27 +0000 Subject: Fixed silly typo. Added comment (to myself) on what still needs to be done. --- Mac/Modules/file/_Filemodule.c | 4 ++-- Mac/Modules/file/filesupport.py | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c index eaaa547..0322cca 100644 --- a/Mac/Modules/file/_Filemodule.c +++ b/Mac/Modules/file/_Filemodule.c @@ -2394,8 +2394,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec) /* Otherwise we try to go via an FSRef. On OSX we go all the way, ** on OS9 we accept only a real FSRef object */ -#if TARGET_API_MAX_OSX - if ( myPyMac_GetFSRef(v, &fsr) >= 0 ) { +#if TARGET_API_MAC_OSX + if ( myPyMac_GetFSRef(v, &fsr) ) { #else if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) { #endif diff --git a/Mac/Modules/file/filesupport.py b/Mac/Modules/file/filesupport.py index 4a215be..a0406b7 100644 --- a/Mac/Modules/file/filesupport.py +++ b/Mac/Modules/file/filesupport.py @@ -2,6 +2,11 @@ # It uses the "bgen" package to generate C code. # The function specifications are generated by scanning the mamager's header file, # using the "scantools" package (customized for this particular manager). +# +# XXXX TO DO: +# - implement rawdata initializers +# - Implement correct missing FSSpec handling for Alias methods +# - Implement FInfo import string @@ -157,8 +162,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec) /* Otherwise we try to go via an FSRef. On OSX we go all the way, ** on OS9 we accept only a real FSRef object */ -#if TARGET_API_MAX_OSX - if ( myPyMac_GetFSRef(v, &fsr) >= 0 ) { +#if TARGET_API_MAC_OSX + if ( myPyMac_GetFSRef(v, &fsr) ) { #else if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) { #endif -- cgit v0.12