Mesa (9.2): mesa/program: remove useless YYID
Ian Romanick
idr at kemper.freedesktop.org
Fri Aug 16 19:16:17 UTC 2013
Module: Mesa
Branch: 9.2
Commit: a98d5f2663dc8488b4232449369df45f2dfaa42f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a98d5f2663dc8488b4232449369df45f2dfaa42f
Author: Laurent Carlier <lordheavym at gmail.com>
Date: Fri Aug 16 10:51:49 2013 -0700
mesa/program: remove useless YYID
This fixes the build with Bison 3.0. Also works with Bison 2.7.1.
CC: "9.2" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit 5ffa28df4e4cc22481b4ed41c78632f35765f41d)
---
src/mesa/program/program_parse.y | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y
index 3aceb21..a76db4e 100644
--- a/src/mesa/program/program_parse.y
+++ b/src/mesa/program/program_parse.y
@@ -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
More information about the mesa-commit
mailing list