glr2.cc: introduse b4_glr2_cc_if

* data/skeletons/bison.m4 (b4_glr2_cc_if): Intro.
* data/skeletons/c++.m4: use.
This commit is contained in:
Akim Demaille
2021-09-12 20:02:36 +02:00
parent b820718adf
commit 157e91dcc6
2 changed files with 13 additions and 9 deletions

View File

@@ -409,8 +409,12 @@ b4_define_flag_if([yacc]) # Whether POSIX Yacc is emulated.
# b4_glr_cc_if([IF-TRUE], [IF-FALSE])
# -----------------------------------
m4_define([b4_glr_cc_if],
[m4_if(m4_bregexp(b4_skeleton, [^"glr.cc"$]), [0], $@)])
[m4_if(b4_skeleton, ["glr.cc"], $@)])
# b4_glr2_cc_if([IF-TRUE], [IF-FALSE])
# ------------------------------------
m4_define([b4_glr2_cc_if],
[m4_if(b4_skeleton, ["glr2.cc"], $@)])
## --------- ##
## Symbols. ##