summaryrefslogtreecommitdiff
path: root/utils/kc/mkenam
diff options
context:
space:
mode:
Diffstat (limited to 'utils/kc/mkenam')
-rw-r--r--utils/kc/mkenam17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/kc/mkenam b/utils/kc/mkenam
new file mode 100644
index 00000000..e0857f17
--- /dev/null
+++ b/utils/kc/mkenam
@@ -0,0 +1,17 @@
+ed - ../kc/k.out.h <<'!'
+v/^ A/d
+g/^ AEND/s//&,/
+g/[ ]*=.*,/s//,/
+v/,/p
+,s/^ A/ "/
+,s/,.*$/",/
+1i
+char *anames[] =
+{
+.
+,a
+};
+.
+w enam.c
+Q
+!