mesa/program: remove useless YYID
authorLaurent Carlier <lordheavym@gmail.com>
Wed, 31 Jul 2013 13:18:52 +0000 (15:18 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 31 Jul 2013 18:57:32 +0000 (11:57 -0700)
This fixes the build with Bison 3.0. Also works with Bison 2.7.1.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/program_parse.y

index 3aceb21f43c3e27ccb7737e13ff21742a93d75ab..a76db4e86b7d61011d4e221632f0103dfb0b66fe 100644 (file)
@@ -98,7 +98,7 @@ static struct asm_instruction *asm_instruction_copy_ctor(
 
 #define YYLLOC_DEFAULT(Current, Rhs, N)                                        \
    do {                                                                        \
-      if (YYID(N)) {                                                   \
+      if (N) {                                                 \
         (Current).first_line = YYRHSLOC(Rhs, 1).first_line;            \
         (Current).first_column = YYRHSLOC(Rhs, 1).first_column;        \
         (Current).position = YYRHSLOC(Rhs, 1).position;                \
@@ -112,7 +112,7 @@ static struct asm_instruction *asm_instruction_copy_ctor(
         (Current).position = YYRHSLOC(Rhs, 0).position                 \
            + (Current).first_column;                                   \
       }                                                                        \
-   } while(YYID(0))
+   } while(0)
 %}
 
 %pure-parser