summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/dlg/dlgscan.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/dlg/dlgscan.py')
-rw-r--r--Mac/Modules/dlg/dlgscan.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mac/Modules/dlg/dlgscan.py b/Mac/Modules/dlg/dlgscan.py
index d0cf144..6738828 100644
--- a/Mac/Modules/dlg/dlgscan.py
+++ b/Mac/Modules/dlg/dlgscan.py
@@ -1,5 +1,8 @@
# Scan an Apple header file, generating a Python file of generator calls.
+import addpack
+addpack.addpack(':Tools:bgen:bgen')
+
from scantools import Scanner
LONG = "Dialogs"
@@ -24,7 +27,7 @@ class MyScanner(Scanner):
listname = "functions"
if arglist:
t, n, m = arglist[0]
- if t == "DialogPtr" and m == "InMode":
+ if t in ("DialogPtr", "DialogRef") and m == "InMode":
classname = "Method"
listname = "methods"
return classname, listname
@@ -42,6 +45,7 @@ class MyScanner(Scanner):
'FreeAlert',
'CouldDialog',
'FreeDialog',
+ 'GetStdFilterProc',
]
def makeblacklisttypes(self):
@@ -66,6 +70,8 @@ class MyScanner(Scanner):
([("DialogPtr", "*", "OutMode")],
[("ExistingDialogPtr", "*", "*")]),
+ ([("DialogRef", "*", "OutMode")],
+ [("ExistingDialogPtr", "*", "*")]),
]
if __name__ == "__main__":