summaryrefslogtreecommitdiff
path: root/tools/d2c/grammar.y
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-04-27 22:25:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-04-27 22:25:05 (GMT)
commit8a09e4163c79541f0af78719d0cd85b85650c4b4 (patch)
treec0aababa995c68377de24661671e3d07d8b2db66 /tools/d2c/grammar.y
parent9b915ec951f8f6350d3933886e1abeafe27d9802 (diff)
Forgot the old yylval global variable usage completely.
Diffstat (limited to 'tools/d2c/grammar.y')
-rw-r--r--tools/d2c/grammar.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/d2c/grammar.y b/tools/d2c/grammar.y
index f0c1779..ec7da60 100644
--- a/tools/d2c/grammar.y
+++ b/tools/d2c/grammar.y
@@ -12,7 +12,7 @@
/* Affiche un message d'erreur suite à l'analyse en échec. */
-static int d2c_error(rented_coder *, char *, char *);
+static int yyerror(rented_coder *, char *, char *);
/* Affiche des indications sur l'utilisation du programme. */
static void show_usage(const char *);
@@ -233,9 +233,9 @@ rules : RULES RAW_BLOCK { handle_coder_rules(coder, $2); }
* *
******************************************************************************/
-static int d2c_error(rented_coder *coder, char *temp, char *msg)
+static int yyerror(rented_coder *coder, char *temp, char *msg)
{
- printf("yyerror line %d: %s\n", d2c_get_lineno(), msg);
+ printf("yyerror line %d: %s\n", yyget_lineno(), msg);
return 0;