summaryrefslogtreecommitdiff
path: root/usr.bin/mg/key.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-02-25 19:08:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-02-25 19:08:53 +0000
commit998d769a0cf8bef7d4ca0d26945c151a23b542ec (patch)
treefe53a083eaa06a2bf7631453e18a161a86ad9d62 /usr.bin/mg/key.h
parentb0226ecd4460819556afd27fd575d64421fd0f68 (diff)
initial import of mg2a
Diffstat (limited to 'usr.bin/mg/key.h')
-rw-r--r--usr.bin/mg/key.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.bin/mg/key.h b/usr.bin/mg/key.h
new file mode 100644
index 00000000000..88e8bc1f1c7
--- /dev/null
+++ b/usr.bin/mg/key.h
@@ -0,0 +1,13 @@
+/* key.h: Insert file for mg 2 functions that need to reference key pressed */
+
+#ifndef EXTERN
+#define EXTERN extern
+#endif
+
+#define MAXKEY 8 /* maximum number of prefix chars */
+
+EXTERN struct { /* the chacter sequence in a key */
+ int k_count; /* number of chars */
+ KCHAR k_chars[MAXKEY]; /* chars */
+} key;
+#undef EXTERN