cmdparse: s/direction/split_direction to be more clear

This commit is contained in:
Michael Stapelberg 2011-06-10 02:25:14 +02:00
parent f1385ba3d5
commit df0b7bed48
1 changed files with 3 additions and 2 deletions

View File

@ -171,6 +171,7 @@ char *parse_cmd(const char *new) {
%token <number> NUMBER "<number>" %token <number> NUMBER "<number>"
%type <number> direction %type <number> direction
%type <number> split_direction
%type <number> level %type <number> level
%type <number> boolean %type <number> boolean
%type <number> border_style %type <number> border_style
@ -526,7 +527,7 @@ fullscreen:
; ;
split: split:
TOK_SPLIT direction TOK_SPLIT split_direction
{ {
/* TODO: use matches */ /* TODO: use matches */
printf("splitting in direction %c\n", $2); printf("splitting in direction %c\n", $2);
@ -536,7 +537,7 @@ split:
} }
; ;
direction: split_direction:
TOK_HORIZONTAL { $$ = 'h'; } TOK_HORIZONTAL { $$ = 'h'; }
| 'h' { $$ = 'h'; } | 'h' { $$ = 'h'; }
| TOK_VERTICAL { $$ = 'v'; } | TOK_VERTICAL { $$ = 'v'; }