‘api.prefix’ and ‘parse.error’ have both been supported since Bison 3.0.
/data/samba/source3/rpc_server/mdssvc/es_parser.y:98.1-21: warning: deprecated directive: ‘%name-prefix "mdsyyl"’, use ‘%define api.prefix {mdsyyl}’ [-Wdeprecated]
98 | %name-prefix "mdsyyl"
| ^~~~~~~~~~~~~~~~~~~~~
| %define api.prefix {mdsyyl}
/data/samba/source3/rpc_server/mdssvc/es_parser.y:100.1-14: warning: deprecated directive: ‘%error-verbose’, use ‘%define parse.error verbose’ [-Wdeprecated]
100 | %error-verbose
| ^~~~~~~~~~~~~~
| %define parse.error verbose
/data/samba/source3/rpc_server/mdssvc/es_parser.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother]
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Martin Schwenke <martin@meltin.net>
struct es_attr_map *attr_map;
}
-%name-prefix "mdsyyl"
+%define api.prefix {mdsyyl}
%expect 1
-%error-verbose
+%define parse.error verbose
%type <sval> match expr line function value isodate
%type <attr_map> attribute
time_t tval;
}
-%name-prefix "mdsyy"
+%define api.prefix {mdsyy}
%expect 5
-%error-verbose
+%define parse.error verbose
%type <sval> match expr line function
%type <tval> date