diff --git a/Makefile b/Makefile index 9ba3e61..56c739c 100644 --- a/Makefile +++ b/Makefile @@ -75,12 +75,12 @@ clean: rm -rf $(BUILD) rm -f *.gc* rm -f $(DEBUG) + rm -f $(NAME).bin + rm -f $(NAME).elf fclean: clean @ printf "$(red)Delete binary files$(nocolor)\n" rm -f $(EXEC) - rm -f $(NAME).bin - rm -f $(NAME).elf re: fclean all install diff --git a/include/command.h b/include/command.h index 0169373..f11e0d7 100644 --- a/include/command.h +++ b/include/command.h @@ -32,6 +32,6 @@ struct cmd_block void command_entry(struct session_s *session, struct vhex_s *vhex); /* cmd_cache_find() - find command in the cache section. */ -const struct cmd_info *cmd_cache_find(char const *name); +const struct cmd_block *cmd_cache_find(char const *name); #endif /*__COMMANDS_H__*/ diff --git a/src/commands/cache.c b/src/commands/cache.c index 206f760..e07726e 100644 --- a/src/commands/cache.c +++ b/src/commands/cache.c @@ -15,9 +15,9 @@ extern uint32_t ecmd_cache; // We use the section symbols to know where the cache end. // (see bootstrap.ld). // -const struct cmd_info *cmd_cache_find(char const *name) +const struct cmd_block *cmd_cache_find(char const *name) { - const struct cmd_info *cache; + const struct cmd_block *cache; size_t i; i = -1; diff --git a/src/commands/entry.c b/src/commands/entry.c index fdfa440..e4a80fd 100644 --- a/src/commands/entry.c +++ b/src/commands/entry.c @@ -10,7 +10,7 @@ static int command_find(int argc, char **argv, struct session_s *session, struct vhex_s *vhex) { - const struct cmd_info *command; + const struct cmd_block *command; int tmp; command = cmd_cache_find(*argv); diff --git a/src/commands/help.c b/src/commands/help.c index 4621747..533cf3a 100644 --- a/src/commands/help.c +++ b/src/commands/help.c @@ -205,7 +205,7 @@ static void help_engine(char const *text, int nb_line) /* help() - display command manual pages. */ static void help(int argc, char **argv, struct session_s *session, char *info) { - const struct cmd_info *command; + const struct cmd_block *command; int nb_line; (void)session; diff --git a/vhex.g1a b/vhex.g1a new file mode 100644 index 0000000..71a73da Binary files /dev/null and b/vhex.g1a differ