diff options
author | Laurent Carlier <[email protected]> | 2013-07-31 15:18:52 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-31 11:57:32 -0700 |
commit | 5ffa28df4e4cc22481b4ed41c78632f35765f41d (patch) | |
tree | 436152b90f383616838eda9ec429120aa9d7b369 /src/mesa/program | |
parent | 6d2a9220b832d9a0c0cf35fcc5b9de1542af267d (diff) |
mesa/program: remove useless YYID
This fixes the build with Bison 3.0. Also works with Bison 2.7.1.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | 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 3aceb21f43c..a76db4e86b7 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 |