mirror of
https://github.com/python/cpython.git
synced 2025-09-13 04:08:37 +00:00
- Updated to Waste 2.0.
- Use waste included with CW in stead of separate package.
This commit is contained in:
parent
00638bd4f9
commit
b99e521319
3 changed files with 961 additions and 522 deletions
File diff suppressed because it is too large
Load diff
|
@ -4,10 +4,11 @@ import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner_PreUH3
|
from scantools import Scanner
|
||||||
from bgenlocations import MWERKSDIR, TOOLBOXDIR
|
from bgenlocations import MWERKSDIR, TOOLBOXDIR
|
||||||
|
|
||||||
WASTEDIR=":::::Waste 1.3 Distribution:WASTE C/C++ Headers:"
|
#WASTEDIR=":::::Waste 1.3 Distribution:WASTE C/C++ Headers:"
|
||||||
|
WASTEDIR=MWERKSDIR + 'MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers:'
|
||||||
|
|
||||||
OBJECT = "TEHandle"
|
OBJECT = "TEHandle"
|
||||||
SHORT = "waste"
|
SHORT = "waste"
|
||||||
|
@ -26,7 +27,8 @@ def main():
|
||||||
exec "import " + SHORT + "support"
|
exec "import " + SHORT + "support"
|
||||||
print "=== Done. It's up to you to compile it now! ==="
|
print "=== Done. It's up to you to compile it now! ==="
|
||||||
|
|
||||||
class MyScanner(Scanner_PreUH3):
|
#class MyScanner(Scanner_PreUH3):
|
||||||
|
class MyScanner(Scanner):
|
||||||
|
|
||||||
def destination(self, type, name, arglist):
|
def destination(self, type, name, arglist):
|
||||||
classname = "Function"
|
classname = "Function"
|
||||||
|
@ -52,6 +54,8 @@ class MyScanner(Scanner_PreUH3):
|
||||||
"WESetInfo", # Argument type unknown...
|
"WESetInfo", # Argument type unknown...
|
||||||
"WEGetInfo",
|
"WEGetInfo",
|
||||||
"WEVersion", # Unfortunately...
|
"WEVersion", # Unfortunately...
|
||||||
|
"WEPut", # XXXX TBD: needs array of flavortypes.
|
||||||
|
"WEGetOneAttribute", # XXXX TBD: output buffer
|
||||||
]
|
]
|
||||||
|
|
||||||
def makeblacklisttypes(self):
|
def makeblacklisttypes(self):
|
||||||
|
@ -60,6 +64,34 @@ class MyScanner(Scanner_PreUH3):
|
||||||
"UniversalProcPtr",
|
"UniversalProcPtr",
|
||||||
"WEFontIDToNameUPP",
|
"WEFontIDToNameUPP",
|
||||||
"WEFontNameToIDUPP",
|
"WEFontNameToIDUPP",
|
||||||
|
"WEClickLoopUPP",
|
||||||
|
"WEScrollUPP",
|
||||||
|
"WETSMPreUpdateUPP",
|
||||||
|
"WETSMPostUpdateUPP",
|
||||||
|
"WEPreTrackDragUPP",
|
||||||
|
"WETranslateDragUPP",
|
||||||
|
"WEHiliteDropAreaUPP",
|
||||||
|
"WEDrawTextUPP",
|
||||||
|
"WEDrawTSMHiliteUPP",
|
||||||
|
"WEPixelToCharUPP",
|
||||||
|
"WECharToPixelUPP",
|
||||||
|
"WELineBreakUPP",
|
||||||
|
"WEWordBreakUPP",
|
||||||
|
"WECharByteUPP",
|
||||||
|
"WECharTypeUPP",
|
||||||
|
"WEEraseUPP",
|
||||||
|
"WEFluxUPP",
|
||||||
|
"WENewObjectUPP",
|
||||||
|
"WEDisposeObjectUPP",
|
||||||
|
"WEDrawObjectUPP",
|
||||||
|
"WEClickObjectUPP",
|
||||||
|
"WEStreamObjectUPP",
|
||||||
|
"WEHoverObjectUPP",
|
||||||
|
"WERuler", # XXXX To be done
|
||||||
|
"WERuler_ptr", # ditto
|
||||||
|
"WEParaInfo", # XXXX To be done
|
||||||
|
"WEPrintSession", # XXXX To be done
|
||||||
|
"WEPrintOptions_ptr", # XXXX To be done
|
||||||
]
|
]
|
||||||
|
|
||||||
def makerepairinstructions(self):
|
def makerepairinstructions(self):
|
||||||
|
@ -68,24 +100,31 @@ class MyScanner(Scanner_PreUH3):
|
||||||
[("InBuffer", "*", "*")]),
|
[("InBuffer", "*", "*")]),
|
||||||
|
|
||||||
# WEContinuousStyle
|
# WEContinuousStyle
|
||||||
([("WEStyleMode", "mode", "OutMode"), ("TextStyle", "ts", "OutMode")],
|
([("WEStyleMode", "ioMode", "OutMode"), ("TextStyle", "outTextStyle", "OutMode")],
|
||||||
[("WEStyleMode", "mode", "InOutMode"), ("TextStyle", "ts", "OutMode")]),
|
[("WEStyleMode", "*", "InOutMode"), ("TextStyle", "*", "*")]),
|
||||||
|
|
||||||
# WECopyRange
|
# WECopyRange
|
||||||
([('Handle', 'hText', 'InMode'), ('StScrpHandle', 'hStyles', 'InMode'),
|
([('Handle', 'outText', 'InMode'), ('StScrpHandle', 'outStyles', 'InMode'),
|
||||||
('WESoupHandle', 'hSoup', 'InMode')],
|
('WESoupHandle', 'outSoup', 'InMode')],
|
||||||
[('OptHandle', 'hText', 'InMode'), ('OptStScrpHandle', 'hStyles', 'InMode'),
|
[('OptHandle', '*', '*'), ('OptStScrpHandle', '*', '*'),
|
||||||
('OptSoupHandle', 'hSoup', 'InMode')]),
|
('OptSoupHandle', '*', '*')]),
|
||||||
|
|
||||||
# WEInsert
|
# WEInsert
|
||||||
([('StScrpHandle', 'hStyles', 'InMode'), ('WESoupHandle', 'hSoup', 'InMode')],
|
([('StScrpHandle', 'inStyles', 'InMode'), ('WESoupHandle', 'inSoup', 'InMode')],
|
||||||
[('OptStScrpHandle', 'hStyles', 'InMode'), ('OptSoupHandle', 'hSoup', 'InMode')]),
|
[('OptStScrpHandle', '*', '*'), ('OptSoupHandle', '*', '*')]),
|
||||||
|
|
||||||
# WEGetObjectOwner
|
# WEGetObjectOwner
|
||||||
("WEGetObjectOwner",
|
("WEGetObjectOwner",
|
||||||
[('WEReference', '*', 'ReturnMode')],
|
[('WEReference', '*', 'ReturnMode')],
|
||||||
[('ExistingWEReference', '*', 'ReturnMode')])
|
[('ExistingWEReference', '*', 'ReturnMode')]),
|
||||||
|
|
||||||
|
# WEFindParagraph
|
||||||
|
([("char_ptr", "inKey", "InMode")],
|
||||||
|
[("stringptr", "*", "*")]),
|
||||||
|
|
||||||
|
# WESetOneAttribute
|
||||||
|
([("void_ptr", "*", "InMode"), ("ByteCount", "*", "InMode")],
|
||||||
|
[("InBuffer", "*", "*")]),
|
||||||
]
|
]
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
@ -36,6 +36,7 @@ OptSoupHandle = OpaqueByValueType("WESoupHandle", "OptResObj")
|
||||||
OptStScrpHandle = OpaqueByValueType("StScrpHandle", "OptResObj")
|
OptStScrpHandle = OpaqueByValueType("StScrpHandle", "OptResObj")
|
||||||
|
|
||||||
WEStyleMode = Type("WEStyleMode", "H")
|
WEStyleMode = Type("WEStyleMode", "H")
|
||||||
|
WERulerMode = Type("WERulerMode", "l")
|
||||||
WEActionKind = Type("WEActionKind", "h")
|
WEActionKind = Type("WEActionKind", "h")
|
||||||
WEAlignment = Type("WEAlignment", "B")
|
WEAlignment = Type("WEAlignment", "B")
|
||||||
WEEdge = Type("WEEdge", "B")
|
WEEdge = Type("WEEdge", "B")
|
||||||
|
@ -55,6 +56,9 @@ LongPt_ptr = LongPt
|
||||||
LongRect = OpaqueType("LongRect", "LongRect")
|
LongRect = OpaqueType("LongRect", "LongRect")
|
||||||
LongRect_ptr = LongRect
|
LongRect_ptr = LongRect
|
||||||
|
|
||||||
|
TextEncodingVariant = Type("TextEncodingVariant", "l")
|
||||||
|
TextEncodingFormat = Type("TextEncodingFormat", "l")
|
||||||
|
|
||||||
includestuff = includestuff + """
|
includestuff = includestuff + """
|
||||||
#include <%s>""" % MACHEADERFILE + """
|
#include <%s>""" % MACHEADERFILE + """
|
||||||
#include <WEObjectHandlers.h>
|
#include <WEObjectHandlers.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue