fix: compilation warning for maybe unused variables

feature: shell - autocomplete and help menu improved
This commit is contained in:
2024-09-19 00:05:21 +02:00
parent 9b3a6cb5a4
commit 8fd17276b2
10 changed files with 84 additions and 109 deletions

View File

@ -2,7 +2,7 @@
#define PROMPT "> "
static const char *POOP =
[[__maybe_unused__]] static const char *POOP =
" / ____/ / _ \\\n"
" _/ ___/_ / / \\___ \\_\n"
" / _/'-, `---._ / / \\_ \\\n"
@ -43,22 +43,9 @@ static const char *POOP =
" \\_ \\___\"\"\"/\"\" / `\"\"/\"\" "
"\n";
typedef enum {
HELP,
REBOOT,
POWEROFF,
HALT,
STACK,
CLEAR,
ECHO,
COLOR,
MERDELLA,
DATE,
ERROR
} CMD_TOK;
void shell_init(void);
void reboot(void);
void halt(void);
void print_stack(void);
void date(void);
void merdella(void);