Change the names of parser result structs

Change the name of structs CommandResult and ConfigResult to
CommandResultIR and ConfigResultIR to show they are an intermediate
representation used during parsing.
This commit is contained in:
Tony Crisci
2014-05-18 00:44:19 -04:00
committed by Michael Stapelberg
parent dda9a7f6e0
commit 45fa4b7d23
11 changed files with 24 additions and 27 deletions

View File

@ -179,8 +179,8 @@ static cmdp_state state;
#ifndef TEST_PARSER
static Match current_match;
#endif
static struct CommandResult subcommand_output;
static struct CommandResult command_output;
static struct CommandResultIR subcommand_output;
static struct CommandResultIR command_output;
#include "GENERATED_command_call.h"
@ -205,7 +205,7 @@ static void next_state(const cmdp_token *token) {
}
}
struct CommandResult *parse_command(const char *input) {
struct CommandResultIR *parse_command(const char *input) {
DLOG("COMMAND: *%s*\n", input);
state = INITIAL;