summaryrefslogtreecommitdiff
path: root/data/c++.m4
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2008-12-31 15:07:48 +0100
committerAkim Demaille <demaille@gostai.com>2009-03-02 16:20:26 +0100
commitb47b6ff7fd5b6d3928d44bfbb7b8836ee3348704 (patch)
treedc0b2c81b996a0ca93897ff147c332bc37c1e2bc /data/c++.m4
parent1d6b689b26f1939a31d082e94ce31d0a5e14853c (diff)
downloadbison-b47b6ff7fd5b6d3928d44bfbb7b8836ee3348704.tar.gz
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.
Diffstat (limited to 'data/c++.m4')
-rw-r--r--data/c++.m410
1 files changed, 2 insertions, 8 deletions
diff --git a/data/c++.m4 b/data/c++.m4
index 7048875e..7465d761 100644
--- a/data/c++.m4
+++ b/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>$.