summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 13:06:13 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 13:06:13 -0500
commit4293f5284971473afaa43b83075d4d985b976622 (patch)
tree498243bee09fab77d0a3414c9cc8ad421a7f1136 /command.h
parent98c618770f44a2bde4b5ba45c7390971c91a3fc3 (diff)
more documentation
Diffstat (limited to 'command.h')
-rw-r--r--command.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/command.h b/command.h
index 2713df8..c29f01d 100644
--- a/command.h
+++ b/command.h
@@ -1,12 +1,12 @@
+// command enum
+
#ifndef COMMAND_H_
#define COMMAND_H_
-#include "base.h"
-
-// i | ARG_STRING = ted->strings[i]
+// `i | ARG_STRING` when used as an argument refers to `ted->strings[i]`
#define ARG_STRING 0x4000000000000000
-ENUM_U16 {
+typedef enum {
CMD_UNKNOWN,
CMD_NOOP, // do nothing
// movement and selection commands
@@ -113,7 +113,7 @@ ENUM_U16 {
CMD_ESCAPE, // by default this is the escape key. closes menus, etc.
CMD_COUNT
-} ENUM_U16_END(Command);
+} Command;
#endif