[Python-checkins] python/dist/src/Mac/Modules/file _Filemodule.c,1.16,1.17 filescan.py,1.7,1.8

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sun, 02 Feb 2003 15:00:26 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/file
In directory sc8-pr-cvs1:/tmp/cvs-serv3819

Modified Files:
	_Filemodule.c filescan.py 
Log Message:
The FSAliasFile routines also have an in/out parameter.


Index: _Filemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/file/_Filemodule.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** _Filemodule.c	28 Jan 2003 23:29:46 -0000	1.16
--- _Filemodule.c	2 Feb 2003 23:00:19 -0000	1.17
***************
*** 2955,2959 ****
  	Boolean wasAliased;
  	unsigned long mountFlags;
! 	if (!PyArg_ParseTuple(_args, "bl",
  	                      &resolveAliasChains,
  	                      &mountFlags))
--- 2955,2960 ----
  	Boolean wasAliased;
  	unsigned long mountFlags;
! 	if (!PyArg_ParseTuple(_args, "O&bl",
! 	                      FSRef_Convert, &theRef,
  	                      &resolveAliasChains,
  	                      &mountFlags))
***************
*** 2980,2984 ****
  	Boolean targetIsFolder;
  	Boolean wasAliased;
! 	if (!PyArg_ParseTuple(_args, "b",
  	                      &resolveAliasChains))
  		return NULL;
--- 2981,2986 ----
  	Boolean targetIsFolder;
  	Boolean wasAliased;
! 	if (!PyArg_ParseTuple(_args, "O&b",
! 	                      FSRef_Convert, &theRef,
  	                      &resolveAliasChains))
  		return NULL;
***************
*** 3134,3140 ****
  	 PyDoc_STR("(FSRef fromFile, FSRef target) -> (AliasHandle inAlias)")},
  	{"FSResolveAliasFileWithMountFlags", (PyCFunction)File_FSResolveAliasFileWithMountFlags, 1,
! 	 PyDoc_STR("(Boolean resolveAliasChains, unsigned long mountFlags) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)")},
  	{"FSResolveAliasFile", (PyCFunction)File_FSResolveAliasFile, 1,
! 	 PyDoc_STR("(Boolean resolveAliasChains) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)")},
  	{"FSUpdateAlias", (PyCFunction)File_FSUpdateAlias, 1,
  	 PyDoc_STR("(FSRef fromFile, FSRef target, AliasHandle alias) -> (Boolean wasChanged)")},
--- 3136,3142 ----
  	 PyDoc_STR("(FSRef fromFile, FSRef target) -> (AliasHandle inAlias)")},
  	{"FSResolveAliasFileWithMountFlags", (PyCFunction)File_FSResolveAliasFileWithMountFlags, 1,
! 	 PyDoc_STR("(FSRef theRef, Boolean resolveAliasChains, unsigned long mountFlags) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)")},
  	{"FSResolveAliasFile", (PyCFunction)File_FSResolveAliasFile, 1,
! 	 PyDoc_STR("(FSRef theRef, Boolean resolveAliasChains) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)")},
  	{"FSUpdateAlias", (PyCFunction)File_FSUpdateAlias, 1,
  	 PyDoc_STR("(FSRef fromFile, FSRef target, AliasHandle alias) -> (Boolean wasChanged)")},

Index: filescan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/file/filescan.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** filescan.py	12 Jan 2003 23:01:46 -0000	1.7
--- filescan.py	2 Feb 2003 23:00:21 -0000	1.8
***************
*** 173,176 ****
--- 173,179 ----
  			 [('FSSpec_ptr', 'theSpec', 'InOutMode')]),
  			 
+ 			([('FSRef', 'theRef', 'OutMode')],
+ 			 [('FSRef_ptr', 'theRef', 'InOutMode')]),
+ 			 
  			# The optional FSSpec to all ResolveAlias and NewAlias methods
  			([('FSSpec_ptr', 'fromFile', 'InMode')],