Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1795f29

Browse files
committed
Fixed silly typo.
Added comment (to myself) on what still needs to be done.
1 parent 58fc91f commit 1795f29

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

Mac/Modules/file/_Filemodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,8 +2394,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec)
23942394
/* Otherwise we try to go via an FSRef. On OSX we go all the way,
23952395
** on OS9 we accept only a real FSRef object
23962396
*/
2397-
#if TARGET_API_MAX_OSX
2398-
if ( myPyMac_GetFSRef(v, &fsr) >= 0 ) {
2397+
#if TARGET_API_MAC_OSX
2398+
if ( myPyMac_GetFSRef(v, &fsr) ) {
23992399
#else
24002400
if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) {
24012401
#endif

Mac/Modules/file/filesupport.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# It uses the "bgen" package to generate C code.
33
# The function specifications are generated by scanning the mamager's header file,
44
# using the "scantools" package (customized for this particular manager).
5+
#
6+
# XXXX TO DO:
7+
# - implement rawdata initializers
8+
# - Implement correct missing FSSpec handling for Alias methods
9+
# - Implement FInfo
510

611
import string
712

@@ -157,8 +162,8 @@ class VarReverseInputBufferType(ReverseInputBufferMixin, VarInputBufferType):
157162
/* Otherwise we try to go via an FSRef. On OSX we go all the way,
158163
** on OS9 we accept only a real FSRef object
159164
*/
160-
#if TARGET_API_MAX_OSX
161-
if ( myPyMac_GetFSRef(v, &fsr) >= 0 ) {
165+
#if TARGET_API_MAC_OSX
166+
if ( myPyMac_GetFSRef(v, &fsr) ) {
162167
#else
163168
if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) {
164169
#endif

0 commit comments

Comments
 (0)