From: Akim Demaille Date: Fri, 4 May 2012 12:05:35 +0000 (+0200) Subject: glr.cc: properly declare locations are const where appropriate. X-Git-Tag: v2.5.1_rc2~38 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/78ab351c4f19b8e7524a6ee68a13b0954ae6c642 glr.cc: properly declare locations are const where appropriate. * data/glr.cc (yyerror): The location is const. --- diff --git a/data/glr.cc b/data/glr.cc index b7a8b40d..9683844f 100644 --- a/data/glr.cc +++ b/data/glr.cc @@ -96,7 +96,8 @@ m4_append([b4_post_prologue], b4_c_ansi_function_decl([yyerror], [static void], - [[b4_namespace_ref::b4_parser_class_name::location_type *yylocationp], [yylocationp]], + [[const b4_namespace_ref::b4_parser_class_name::location_type *yylocationp], + [yylocationp]], b4_parse_param, [[const char* msg], [msg]])]) @@ -110,7 +111,8 @@ m4_append([b4_epilogue], ]b4_c_ansi_function_def([yyerror], [static void], - [[b4_namespace_ref::b4_parser_class_name::location_type *yylocationp], [yylocationp]], + [[const b4_namespace_ref::b4_parser_class_name::location_type *yylocationp], + [yylocationp]], b4_parse_param, [[const char* msg], [msg]])[ {