]> git.sur5r.net Git - i3/i3/commitdiff
cmdparse: s/direction/split_direction to be more clear
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 10 Jun 2011 00:25:14 +0000 (02:25 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 10 Jun 2011 00:25:14 +0000 (02:25 +0200)
src/cmdparse.y

index 6190339801b28d4b846e8aaa96e66049bd2fd49e..a540efed04099ebac6455a808af8b4cea7c77725 100644 (file)
@@ -171,6 +171,7 @@ char *parse_cmd(const char *new) {
 %token  <number>    NUMBER              "<number>"
 
 %type   <number>    direction
+%type   <number>    split_direction
 %type   <number>    level
 %type   <number>    boolean
 %type   <number>    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'; }