summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 00:28:41 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 00:29:18 -0500
commit1665510ec0edf0feaf687acfdf8405b898c80089 (patch)
tree69f2651b40765a7b168cccf0c0ce3da93a2cbf92 /command.c
parent636ea84bc7fa738c179168664ea22118ecc89ab3 (diff)
restructure ui.c, command.c
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/command.c b/command.c
index 4900c07..0347544 100644
--- a/command.c
+++ b/command.c
@@ -1,3 +1,5 @@
+#include "ted.h"
+
typedef struct {
const char *name;
Command cmd;
@@ -106,7 +108,7 @@ const char *command_to_str(Command c) {
}
// get the string corresponding to this argument; returns NULL if it's not a string argument
-const char *arg_get_string(Ted *ted, i64 argument) {
+static const char *arg_get_string(Ted *ted, i64 argument) {
if (argument < 0) return NULL;
if (argument & ARG_STRING) {
argument -= ARG_STRING;