change the commands_parser prefix to 'command' for consistency

This commit is contained in:
Michael Stapelberg 2012-10-08 13:25:32 +02:00
parent 587b92b7a3
commit c2b699f3dc
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@
* input parser-specs/commands.spec. * input parser-specs/commands.spec.
******************************************************************************/ ******************************************************************************/
#include "GENERATED_commands_enums.h" #include "GENERATED_command_enums.h"
typedef struct token { typedef struct token {
char *name; char *name;
@ -63,7 +63,7 @@ typedef struct tokenptr {
int n; int n;
} cmdp_token_ptr; } cmdp_token_ptr;
#include "GENERATED_commands_tokens.h" #include "GENERATED_command_tokens.h"
/******************************************************************************* /*******************************************************************************
* The (small) stack where identified literals are stored during the parsing * The (small) stack where identified literals are stored during the parsing
@ -182,7 +182,7 @@ static Match current_match;
static struct CommandResult subcommand_output; static struct CommandResult subcommand_output;
static struct CommandResult command_output; static struct CommandResult command_output;
#include "GENERATED_commands_call.h" #include "GENERATED_command_call.h"
static void next_state(const cmdp_token *token) { static void next_state(const cmdp_token *token) {

View File

@ -63,7 +63,7 @@ src/config_parser.o: src/config_parser.c $(i3_HEADERS_DEP) i3-config-parser.stam
i3-command-parser.stamp: generate-command-parser.pl parser-specs/commands.spec i3-command-parser.stamp: generate-command-parser.pl parser-specs/commands.spec
echo "[i3] Generating command parser" echo "[i3] Generating command parser"
(cd include; ../generate-command-parser.pl --input=../parser-specs/commands.spec --prefix=commands) (cd include; ../generate-command-parser.pl --input=../parser-specs/commands.spec --prefix=command)
touch $@ touch $@
i3-config-parser.stamp: generate-command-parser.pl parser-specs/config.spec i3-config-parser.stamp: generate-command-parser.pl parser-specs/config.spec