From 78ab351c4f19b8e7524a6ee68a13b0954ae6c642 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 4 May 2012 14:05:35 +0200 Subject: [PATCH] glr.cc: properly declare locations are const where appropriate. * data/glr.cc (yyerror): The location is const. --- data/glr.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]])[ { -- 2.47.2