diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 00:28:41 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 00:29:18 -0500 |
commit | 1665510ec0edf0feaf687acfdf8405b898c80089 (patch) | |
tree | 69f2651b40765a7b168cccf0c0ce3da93a2cbf92 /command.c | |
parent | 636ea84bc7fa738c179168664ea22118ecc89ab3 (diff) |
restructure ui.c, command.c
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |