Mailing List Archive

CVS: python/dist/src/Mac/Include macglue.h,1.52,1.53
Update of /cvsroot/python/python/dist/src/Mac/Include
In directory usw-pr-cvs1:/tmp/cvs-serv11903/Python/Mac/Include

Modified Files:
macglue.h
Log Message:
Be more sensible about when to use TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.

Index: macglue.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Include/macglue.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -r1.52 -r1.53
*** macglue.h 2001/04/25 22:07:42 1.52
--- macglue.h 2001/05/12 21:30:02 1.53
***************
*** 85,93 ****
struct filedescr *PyMac_FindModuleExtension(char *, size_t *, char *); /* Look for module in single folder */

! #if !TARGET_API_MAC_CARBON
int PyMac_GetDirectory(FSSpec *dirfss, char *prompt); /* Ask user for a directory */
void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
StandardFileReply *reply, char *prompt); /* Ask user for file, with prompt */
! #endif /* TARGET_API_MAC_CARBON */

int PyMac_GetOSType(PyObject *, OSType *); /* argument parser for OSType */
--- 85,93 ----
struct filedescr *PyMac_FindModuleExtension(char *, size_t *, char *); /* Look for module in single folder */

! #if TARGET_API_MAC_OS8
int PyMac_GetDirectory(FSSpec *dirfss, char *prompt); /* Ask user for a directory */
void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
StandardFileReply *reply, char *prompt); /* Ask user for file, with prompt */
! #endif /* TARGET_API_MAC_OS8 */

int PyMac_GetOSType(PyObject *, OSType *); /* argument parser for OSType */