diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-07-13 22:27:20 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-07-13 22:27:20 (GMT) |
commit | d4b83619102c1e0d51fac7c3773ed1943ed516fa (patch) | |
tree | d2cb9d50d23a238ba6fe1a67c160593c148524a9 /Mac/Modules/mlte/mltescan.py | |
parent | 198641247b5df9e59db69b5bf7d8cdbbe002d3a9 (diff) | |
download | cpython-d4b83619102c1e0d51fac7c3773ed1943ed516fa.zip cpython-d4b83619102c1e0d51fac7c3773ed1943ed516fa.tar.gz cpython-d4b83619102c1e0d51fac7c3773ed1943ed516fa.tar.bz2 |
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).
Diffstat (limited to 'Mac/Modules/mlte/mltescan.py')
-rw-r--r-- | Mac/Modules/mlte/mltescan.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Mac/Modules/mlte/mltescan.py b/Mac/Modules/mlte/mltescan.py index 28ba342..25e7d62 100644 --- a/Mac/Modules/mlte/mltescan.py +++ b/Mac/Modules/mlte/mltescan.py @@ -41,6 +41,9 @@ class MyScanner(Scanner_OSX): def makeblacklistnames(self): return [ + "TXNGetFontDefaults", # Arg is too difficult + "TXNSetFontDefaults", # Arg is too difficult + "TXNInitTextension", # done manually ] def makegreylist(self): @@ -63,6 +66,22 @@ class MyScanner(Scanner_OSX): 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")]), ] |