Combined alias and file into a single module. This is the only reasonable
way to get various alias creation routines as methods of FSSpec or FSRef
objects (which is the logical thing, from a Python POV). Also started on
the code that will contain all the macfs functionality, so macfs can
becode a Python module, to be used mainly for backward compatibility.
diff --git a/Mac/Modules/file/filescan.py b/Mac/Modules/file/filescan.py
index 454fefc7..0195fea 100644
--- a/Mac/Modules/file/filescan.py
+++ b/Mac/Modules/file/filescan.py
@@ -8,10 +8,9 @@
 
 LONG = "Files"
 SHORT = "file"
-OBJECT = "NOTUSED"
 
 def main():
-	input = LONG + ".h"
+	input = ["Files.h", "Aliases.h"]
 	output = SHORT + "gen.py"
 	defsoutput = TOOLBOXDIR + LONG + ".py"
 	scanner = MyScanner(input, output, defsoutput)
@@ -30,11 +29,24 @@
 		classname = "Function"
 		listname = "functions"
 		if arglist:
+			# Funny special case
+			if len(arglist) > 2:
+				t, n, m = arglist[1]
+				if t == "AliasHandle" and m == "InMode":
+					classname = "Arg2MethodGenerator"
+					listname = "alias_methods"
+					return classname, listname
+			# Normal cases
 			t, n, m = arglist[0]
-			# This is non-functional today
-			if t == OBJECT and m == "InMode":
+			if t == "AliasHandle" and m == "InMode":
 				classname = "Method"
-				listname = "methods"
+				listname = "alias_methods"
+			if t == "FSSpec_ptr" and m == "InMode":
+				classname = "Method"
+				listname = "fsspec_methods"
+			if t == "FSRef_ptr" and m == "InMode":
+				classname = "Method"
+				listname = "fsref_methods"
 		return classname, listname
 
 	def makeblacklistnames(self):
@@ -45,6 +57,9 @@
 			"kFSIterateReserved",
 			
 			"FSRefMakePath", # Do this manually
+#			"ResolveAlias", # Do this manually
+#			"ResolveAliasWithMountFlags", # Do this manually
+#			"FollowFinderAlias", # Do this manually
 			
 			"FSRead", # Couldn't be bothered
 			"FSWrite", # ditto
@@ -128,7 +143,8 @@
 			
 			"IOCompletionProcPtr", # proc pointer
 			"IOCompletionUPP", # Proc pointer
-			
+			"AliasFilterProcPtr",
+			"AliasFilterUPP",
 			
 			]
 
@@ -144,6 +160,18 @@
 			  ('UniChar_ptr', '*', 'InMode')],
 			 [('UnicodeReverseInBuffer', '*', 'InMode')]
 			),
+			# Wrong guess
+			([('Str63', 'theString', 'InMode')],
+			 [('Str63', 'theString', 'OutMode')]),
+			 
+			# Yet another way to give a pathname:-)
+			([('short', 'fullPathLength', 'InMode'),
+			  ('void_ptr', 'fullPath', 'InMode')],
+			 [('FullPathName', 'fullPath', 'InMode')]),
+	
+			# Various ResolveAliasFileXXXX functions
+			([('FSSpec', 'theSpec', 'OutMode')],
+			 [('FSSpec_ptr', 'theSpec', 'InOutMode')]),
 		]