Move cmd local classes into anonymous namespace

This commit is contained in:
Kp 2015-06-07 16:20:47 +00:00
parent 9a451a9168
commit 3cab20a501

View file

@ -30,6 +30,8 @@
#include "compiler-make_unique.h"
#include "compiler-range_for.h"
namespace {
struct cmd_t
{
const char *name;
@ -47,6 +49,8 @@ struct cmd_alias_t
RAIIdmem<char[]> value;
};
}
#define CMD_MAX_ALIASES 1024
/* The list of aliases */
@ -85,12 +89,15 @@ void cmd_addcommand(const char *cmd_name, cmd_handler_t cmd_func, const char *cm
con_printf(CON_DEBUG, "cmd_addcommand: added %s", cmd->name);
}
namespace {
struct cmd_queue_t
{
char *command_line;
};
}
/* The list of commands to be executed */
static std::forward_list<cmd_queue_t> cmd_queue;