[Python-checkins] CVS: python/dist/src/Mac/Modules/res _Resmodule.c,1.8,1.9

Jack Jansen jackjansen@users.sourceforge.net
Fri, 04 Jan 2002 08:00:21 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/res
In directory usw-pr-cvs1:/tmp/cvs-serv17695/Python/Mac/Modules/res

Modified Files:
	_Resmodule.c 
Log Message:
Some of the new routines are carbon-only.

Index: _Resmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/res/_Resmodule.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** _Resmodule.c	2002/01/01 22:43:03	1.8
--- _Resmodule.c	2002/01/04 16:00:19	1.9
***************
*** 1437,1440 ****
--- 1437,1442 ----
  }
  
+ #if TARGET_API_MAC_CARBON
+ 
  static PyObject *Res_FSCreateResourceFile(PyObject *_self, PyObject *_args)
  {
***************
*** 1474,1478 ****
--- 1476,1483 ----
  	return _res;
  }
+ #endif
  
+ #if TARGET_API_MAC_CARBON
+ 
  static PyObject *Res_FSOpenResourceFile(PyObject *_self, PyObject *_args)
  {
***************
*** 1504,1507 ****
--- 1509,1513 ----
  	return _res;
  }
+ #endif
  
  static PyObject *Res_Resource(PyObject *_self, PyObject *_args)
***************
*** 1672,1679 ****
--- 1678,1691 ----
  	{"FSResourceFileAlreadyOpen", (PyCFunction)Res_FSResourceFileAlreadyOpen, 1,
  	 "(FSRef resourceFileRef) -> (Boolean _rv, Boolean inChain, SInt16 refNum)"},
+ 
+ #if TARGET_API_MAC_CARBON
  	{"FSCreateResourceFile", (PyCFunction)Res_FSCreateResourceFile, 1,
  	 "(FSRef parentRef, Buffer nameLength, Buffer forkNameLength) -> (OSErr _rv, FSRef newRef, FSSpec newSpec)"},
+ #endif
+ 
+ #if TARGET_API_MAC_CARBON
  	{"FSOpenResourceFile", (PyCFunction)Res_FSOpenResourceFile, 1,
  	 "(FSRef ref, Buffer forkNameLength, SignedByte permissions) -> (OSErr _rv, SInt16 refNum)"},
+ #endif
  	{"Resource", (PyCFunction)Res_Resource, 1,
  	 "Convert a string to a resource object.\n\nThe created resource object is actually just a handle,\napply AddResource() to write it to a resource file.\nSee also the Handle() docstring.\n"},