From: Michael Stapelberg Date: Fri, 10 Jun 2011 00:25:14 +0000 (+0200) Subject: cmdparse: s/direction/split_direction to be more clear X-Git-Tag: tree-pr4~88 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df0b7bed48cc77d44ad039291bc5638bbaac52d1;p=i3%2Fi3 cmdparse: s/direction/split_direction to be more clear --- diff --git a/src/cmdparse.y b/src/cmdparse.y index 61903398..a540efed 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -171,6 +171,7 @@ char *parse_cmd(const char *new) { %token NUMBER "" %type direction +%type split_direction %type level %type boolean %type border_style @@ -526,7 +527,7 @@ fullscreen: ; split: - TOK_SPLIT direction + TOK_SPLIT split_direction { /* TODO: use matches */ printf("splitting in direction %c\n", $2); @@ -536,7 +537,7 @@ split: } ; -direction: +split_direction: TOK_HORIZONTAL { $$ = 'h'; } | 'h' { $$ = 'h'; } | TOK_VERTICAL { $$ = 'v'; }