Move cmd local classes into anonymous namespace
This commit is contained in:
parent
9a451a9168
commit
3cab20a501
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue