summaryrefslogtreecommitdiff
path: root/tools/d2c/grammar.y
diff options
context:
space:
mode:
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;