mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
Use b4_subtract where possible.
* data/lalr1.cc (b4_subtract): Move to... * data/bison.m4: here. * data/glr.c (b4_rhs_data): Use it. * data/yacc.c (b4_rhs_value, b4_rhs_location): Use it.
This commit is contained in:
@@ -18,16 +18,6 @@
|
||||
|
||||
m4_include(b4_pkgdatadir/[c++.m4])
|
||||
|
||||
# b4_subtract(LHS, RHS)
|
||||
# ---------------------
|
||||
# Evaluate LHS - RHS if they are integer literals, otherwise expand
|
||||
# to (LHS) - (RHS).
|
||||
m4_define([b4_subtract],
|
||||
[m4_bmatch([$1$2], [^[0123456789]*$],
|
||||
[m4_eval([$1 - $2])],
|
||||
[($1) - ($2)])])
|
||||
|
||||
|
||||
# b4_args(ARG1, ...)
|
||||
# _b4_args(ARG1, ...)
|
||||
# -------------------
|
||||
|
||||
Reference in New Issue
Block a user