summaryrefslogtreecommitdiffstats
path: root/constants.awk
diff options
context:
space:
mode:
Diffstat (limited to 'constants.awk')
-rw-r--r--constants.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/constants.awk b/constants.awk
new file mode 100644
index 0000000..c9395c1
--- /dev/null
+++ b/constants.awk
@@ -0,0 +1,13 @@
+BEGIN {
+ print "static PY_CONSTANT_REC py_constants[] = {";
+}
+
+{
+ printf(" {\"%s\", %25s},\n", $1,$1);
+}
+
+END {
+ print " {NULL}";
+ print "};"
+}
+