summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program_parse.y
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-11-04 17:26:48 -0700
committerBrian Paul <[email protected]>2009-11-04 17:27:49 -0700
commitfe86f8d73268785b31bc8d5a278a233bff42034d (patch)
tree7d61d3642a28ab6f2906ce6dc32ae2e8283c99fc /src/mesa/shader/program_parse.y
parent4c5a758d064d1a8fca245d4ffeb2f80ba8c781e3 (diff)
ARB prog parser: include variable name in error text
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r--src/mesa/shader/program_parse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 32b058400c9..5767c517599 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -2136,9 +2136,10 @@ ALIAS_statement: ALIAS IDENTIFIER '=' USED_IDENTIFIER
struct asm_symbol *target = (struct asm_symbol *)
_mesa_symbol_table_find_symbol(state->st, 0, $4);
-
if (exist != NULL) {
- yyerror(& @2, state, "redeclared identifier");
+ char m[1000];
+ _mesa_snprintf(m, sizeof(m), "redeclared identifier: %s", $2);
+ yyerror(& @2, state, m);
YYERROR;
} else if (target == NULL) {
yyerror(& @4, state,