summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/waste/wastescan.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-04-23 16:17:08 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-04-23 16:17:08 (GMT)
commit8ae8e4f9635215fece5eafba5593279065291811 (patch)
tree42824e6acbebf3a0e5af37db89c67573733a4798 /Mac/Modules/waste/wastescan.py
parentefe8c9c7464479a9d8ab8ec7e01ac85b6ad374b9 (diff)
downloadcpython-8ae8e4f9635215fece5eafba5593279065291811.zip
cpython-8ae8e4f9635215fece5eafba5593279065291811.tar.gz
cpython-8ae8e4f9635215fece5eafba5593279065291811.tar.bz2
Made style and soup handles optional
Diffstat (limited to 'Mac/Modules/waste/wastescan.py')
-rw-r--r--Mac/Modules/waste/wastescan.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/Mac/Modules/waste/wastescan.py b/Mac/Modules/waste/wastescan.py
index ddb2de9..b501344 100644
--- a/Mac/Modules/waste/wastescan.py
+++ b/Mac/Modules/waste/wastescan.py
@@ -18,7 +18,7 @@ def main():
defsoutput = TOOLBOXDIR + "WASTEconst.py"
scanner = MyScanner(input, output, defsoutput)
scanner.scan()
- scanner.gentypetest(SHORT+"typetest.py")
+## scanner.gentypetest(SHORT+"typetest.py")
scanner.close()
print "=== Done scanning and generating, now importing the generated code... ==="
exec "import " + SHORT + "support"
@@ -67,8 +67,19 @@ class MyScanner(Scanner):
[("InBuffer", "*", "*")]),
# WEContinuousStyle
- ([("WEStyleMode", "mode", "OutMode"), ("TextStyle", "aStyle", "OutMode")],
- [("WEStyleMode", "mode", "InOutMode"), ("TextStyle", "aStyle", "InOutMode")])
+ ([("WEStyleMode", "mode", "OutMode"), ("TextStyle", "ts", "OutMode")],
+ [("WEStyleMode", "mode", "InOutMode"), ("TextStyle", "ts", "OutMode")]),
+
+ # WECopyRange
+ ([('Handle', 'hText', 'InMode'), ('StScrpHandle', 'hStyles', 'InMode'),
+ ('WESoupHandle', 'hSoup', 'InMode')],
+ [('OptHandle', 'hText', 'InMode'), ('OptStScrpHandle', 'hStyles', 'InMode'),
+ ('OptSoupHandle', 'hSoup', 'InMode')]),
+
+ # WEInsert
+ ([('StScrpHandle', 'hStyles', 'InMode'), ('WESoupHandle', 'hSoup', 'InMode')],
+ [('OptStScrpHandle', 'hStyles', 'InMode'), ('OptSoupHandle', 'hSoup', 'InMode')])
+
]
if __name__ == "__main__":