[Python-checkins] CVS: python/dist/src/Mac/Modules/mlte mltescan.py,1.2,1.3
Jack Jansen
jackjansen@users.sourceforge.net
Sat, 14 Jul 2001 07:00:48 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/mlte
In directory usw-pr-cvs1:/tmp/cvs-serv18126/Python/Mac/Modules/mlte
Modified Files:
mltescan.py
Log Message:
Various small fixes. The demo now starts to limp along.
Index: mltescan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltescan.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** mltescan.py 2001/07/13 22:27:14 1.2
--- mltescan.py 2001/07/14 14:00:45 1.3
***************
*** 38,42 ****
def writeinitialdefs(self):
! self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
def makeblacklistnames(self):
--- 38,54 ----
def writeinitialdefs(self):
! 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):
***************
*** 45,48 ****
--- 57,77 ----
"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",
]
***************
*** 85,88 ****
--- 114,121 ----
([("void", "*", "OutMode"), ("ByteCount", "*", "InMode")],
[("MlteInBuffer", "*", "InMode")]),
+
+ # The AdjustCursor region handle is optional
+ ([("RgnHandle", "ioCursorRgn", "InMode")],
+ [("OptRgnHandle", "*", "*")])
]