From 80f3220feae64963aec057bc4bc54ee200e81070 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 8 Dec 2019 16:06:38 +0100 Subject: [PATCH] api.token.raw: fix it in C++ Another breakage revealed by vcsn. * data/skeletons/c++.m4 (yytranslate_): Do not hard code "yy" and "parser", both can be changed by the user. Actually, since we are in the parser itself, there's really no need to qualify the type. --- data/skeletons/c++.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/skeletons/c++.m4 b/data/skeletons/c++.m4 index e49d8d24..3e2e4df4 100644 --- a/data/skeletons/c++.m4 +++ b/data/skeletons/c++.m4 @@ -514,7 +514,7 @@ m4_define([b4_yytranslate_define], ]b4_parser_class[::yytranslate_ (int t) { ]b4_api_token_raw_if( -[[ return static_cast (t);]], +[[ return static_cast (t);]], [[ // YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to // TOKEN-NUM as returned by yylex. static