mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Factor b4_assert_if, b4_lex_symbol_if, and b4_variant_if.
* data/bison.m4 (b4_percent_define_if_define): New. * data/c++.m4 (b4_variant_if): Move to... * data/bison.m4: Here, using b4_percent_define_if_define. * data/lalr1.cc (b4_assert_if, b4_lex_symbol_if): Move to... * data/bison.m4: Here, using b4_percent_define_if_define.
This commit is contained in:
10
data/c++.m4
10
data/c++.m4
@@ -2,8 +2,8 @@
|
||||
|
||||
# C++ skeleton for Bison
|
||||
|
||||
# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software
|
||||
# Foundation, Inc.
|
||||
# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
||||
# Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -284,12 +284,6 @@ m4_define([b4_public_types_define],
|
||||
]])])
|
||||
|
||||
|
||||
# b4_variant_if([IF-VARIANT-ARE-USED], [IF-NOT])
|
||||
# ----------------------------------------------
|
||||
m4_define([b4_variant_if],
|
||||
[b4_percent_define_ifdef([[variant]], [$1], [$2])])
|
||||
|
||||
|
||||
# b4_lhs_value([TYPE])
|
||||
# --------------------
|
||||
# Expansion of $<TYPE>$.
|
||||
|
||||
Reference in New Issue
Block a user