summaryrefslogtreecommitdiff
path: root/codegen/missingdefs.py
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/missingdefs.py')
-rwxr-xr-xcodegen/missingdefs.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/codegen/missingdefs.py b/codegen/missingdefs.py
new file mode 100755
index 0000000..f0017e7
--- /dev/null
+++ b/codegen/missingdefs.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+# -*- Mode: Python; py-indent-offset: 4 -*-
+
+import sys
+import defsparser
+
+if len(sys.argv) < 3:
+ sys.stderr.write("Usage: missingdefs.py generated-defs old-defs\n")
+ sys.exit(1)
+
+newp = defsparser.DefsParser(sys.argv[1])
+oldp = defsparser.DefsParser(sys.argv[2])
+
+newp.startParsing()
+oldp.startParsing()
+
+newp.printMissing(oldp)