summaryrefslogtreecommitdiff
path: root/Mac/Modules/mlte/mltescan.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-07-14 14:00:50 +0000
committerJack Jansen <jack.jansen@cwi.nl>2001-07-14 14:00:50 +0000
commitf0ded2f0bc1bb295aaab0b4385a576a99088c18c (patch)
treef932074a959ca5e48f4db7be2ada7377f700d301 /Mac/Modules/mlte/mltescan.py
parente1608529d1028f69f808c4392d13601d96998950 (diff)
downloadcpython-git-f0ded2f0bc1bb295aaab0b4385a576a99088c18c.tar.gz
Various small fixes. The demo now starts to limp along.
Diffstat (limited to 'Mac/Modules/mlte/mltescan.py')
-rw-r--r--Mac/Modules/mlte/mltescan.py35
1 files changed, 34 insertions, 1 deletions
diff --git a/Mac/Modules/mlte/mltescan.py b/Mac/Modules/mlte/mltescan.py
index 25e7d62ed2..6da7267ac4 100644
--- a/Mac/Modules/mlte/mltescan.py
+++ b/Mac/Modules/mlte/mltescan.py
@@ -37,13 +37,42 @@ class MyScanner(Scanner_OSX):
return classname, listname
def writeinitialdefs(self):
- self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
+ self.defsfile.write("""
+def FOUR_CHAR_CODE(x): return x
+false = 0
+true = 1
+kTXNClearThisControl = 0xFFFFFFFF
+kTXNClearTheseFontFeatures = 0x80000000
+kTXNDontCareTypeSize = 0xFFFFFFFF
+kTXNDecrementTypeSize = 0x80000000
+kTXNUseCurrentSelection = 0xFFFFFFFF
+kTXNStartOffset = 0
+kTXNEndOffset = 0x7FFFFFFF
+MovieFileType = FOUR_CHAR_CODE('moov')
+""")
def makeblacklistnames(self):
return [
"TXNGetFontDefaults", # Arg is too difficult
"TXNSetFontDefaults", # Arg is too difficult
"TXNInitTextension", # done manually
+
+ # Constants with funny definitions
+ "kTXNClearThisControl",
+ "kTXNClearTheseFontFeatures",
+ "kTXNDontCareTypeSize",
+ "kTXNDecrementTypeSize",
+ "kTXNUseCurrentSelection",
+ "kTXNStartOffset",
+ "kTXNEndOffset",
+ "kTXNQDFontNameAttributeSize",
+ "kTXNQDFontFamilyIDAttributeSize",
+ "kTXNQDFontSizeAttributeSize",
+ "kTXNQDFontStyleAttributeSize",
+ "kTXNQDFontColorAttributeSize",
+ "kTXNTextEncodingAttributeSize",
+ "status",
+ "justification",
]
def makegreylist(self):
@@ -84,6 +113,10 @@ class MyScanner(Scanner_OSX):
# In buffers are passed as void *
([("void", "*", "OutMode"), ("ByteCount", "*", "InMode")],
[("MlteInBuffer", "*", "InMode")]),
+
+ # The AdjustCursor region handle is optional
+ ([("RgnHandle", "ioCursorRgn", "InMode")],
+ [("OptRgnHandle", "*", "*")])
]
if __name__ == "__main__":