diff options
Diffstat (limited to 'mh/mh_alias_gram.y')
-rw-r--r-- | mh/mh_alias_gram.y | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mh/mh_alias_gram.y b/mh/mh_alias_gram.y index ccf785f04..47bee19c8 100644 --- a/mh/mh_alias_gram.y +++ b/mh/mh_alias_gram.y @@ -1,6 +1,6 @@ %{ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 2003-2019 Free Software Foundation, Inc. + Copyright (C) 2003-2024 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -119,6 +119,12 @@ int yylex (void); %type <string> address %type <alias> alias +%define api.prefix {ali_yy} +%code requires { +#define ALI_YYLTYPE struct mu_locus_range +#define yylloc ali_yylloc +#define yylval ali_yylval +} %locations %% @@ -207,6 +213,13 @@ string_list : STRING %% +int +yyerror (char *s) +{ + mu_error ("%s", s); + return 0; +} + static mu_list_t ali_list_dup (mu_list_t src) { |