Some minor cleanups in the Python build.
[util-vserver.git] / python / ctags-constants.awk
diff --git a/python/ctags-constants.awk b/python/ctags-constants.awk
new file mode 100644 (file)
index 0000000..15c4bdb
--- /dev/null
@@ -0,0 +1,4 @@
+(($2 == "macro" || $2 == "enumerator") && $1 ~ /^(vc|VC|CLONE)/ &&
+       $1 !~ /^VC_ATTR_/) {
+       printf "  PyModule_AddIntConstant(mod, \"%s\", %s);\n", $1, $1
+}