[Python-checkins] CVS: python/dist/src/Mac/Modules/mlte mltescan.py,1.1,1.2
Jack Jansen
jackjansen@users.sourceforge.net
Fri, 13 Jul 2001 15:27:17 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/mlte
In directory usw-pr-cvs1:/tmp/cvs-serv32227/Python/Mac/Modules/mlte
Modified Files:
mltescan.py
Log Message:
Fixed the mis-guessed parameters and added support for a few optional parameter types. There's a good chance that this is usable now (but there's no test code yet).
Index: mltescan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltescan.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** mltescan.py 2001/07/13 20:56:48 1.1
--- mltescan.py 2001/07/13 22:27:14 1.2
***************
*** 42,45 ****
--- 42,48 ----
def makeblacklistnames(self):
return [
+ "TXNGetFontDefaults", # Arg is too difficult
+ "TXNSetFontDefaults", # Arg is too difficult
+ "TXNInitTextension", # done manually
]
***************
*** 64,67 ****
--- 67,86 ----
def makerepairinstructions(self):
return [
+ # TXNNewObject has a lot of optional parameters
+ ([("FSSpec_ptr", "iFileSpec", "InMode")],
+ [("OptFSSpecPtr", "*", "*")]),
+ ([("Rect", "iFrame", "OutMode")],
+ [("OptRectPtr", "*", "InMode")]),
+
+ # In UH 332 some of the "const" are missing for input parameters passed
+ # by reference. We fix that up here.
+ ([("EventRecord", "iEvent", "OutMode")],
+ [("EventRecord_ptr", "*", "InMode")]),
+ ([("FSSpec", "iFileSpecification", "OutMode")],
+ [("FSSpec_ptr", "*", "InMode")]),
+ ([("TXNMacOSPreferredFontDescription", "iFontDefaults", "OutMode")],
+ [("TXNMacOSPreferredFontDescription_ptr", "*", "InMode")]),
+
+ # In buffers are passed as void *
([("void", "*", "OutMode"), ("ByteCount", "*", "InMode")],
[("MlteInBuffer", "*", "InMode")]),