mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
parsers: fix minor stylistic issues
* data/skeletons/variant.hh (b4_token_constructor_declare): Remove, unused since the previous commit. Fix indentation issues. * data/skeletons/c++.m4: Fix indentation issues.
This commit is contained in:
@@ -275,8 +275,8 @@ m4_define([b4_symbol_type_define],
|
|||||||
/// Constructor for symbols with semantic value.
|
/// Constructor for symbols with semantic value.
|
||||||
basic_symbol (typename Base::kind_type t,
|
basic_symbol (typename Base::kind_type t,
|
||||||
YY_RVREF (semantic_type) v]b4_locations_if([,
|
YY_RVREF (semantic_type) v]b4_locations_if([,
|
||||||
YY_RVREF (location_type) l])[);]])[
|
YY_RVREF (location_type) l])[);
|
||||||
|
]])[
|
||||||
/// Destroy the symbol.
|
/// Destroy the symbol.
|
||||||
~basic_symbol ();
|
~basic_symbol ();
|
||||||
|
|
||||||
@@ -540,7 +540,7 @@ m4_define([b4_yytranslate_define],
|
|||||||
const token_number_type
|
const token_number_type
|
||||||
translate_table[] =
|
translate_table[] =
|
||||||
{
|
{
|
||||||
]b4_translate[
|
]b4_translate[
|
||||||
};
|
};
|
||||||
const unsigned user_token_number_max_ = ]b4_user_token_number_max[;
|
const unsigned user_token_number_max_ = ]b4_user_token_number_max[;
|
||||||
const token_number_type undef_token_ = ]b4_undef_token_number[;
|
const token_number_type undef_token_ = ]b4_undef_token_number[;
|
||||||
|
|||||||
@@ -419,15 +419,6 @@ m4_define([_b4_token_constructor_define],
|
|||||||
]])])
|
]])])
|
||||||
|
|
||||||
|
|
||||||
# b4_token_constructor_declare
|
|
||||||
# ----------------------------
|
|
||||||
# Declare token constructors. Use at class-level.
|
|
||||||
m4_define([b4_token_constructor_declare],
|
|
||||||
[ // Symbol constructors declarations.
|
|
||||||
b4_symbol_foreach([_b4_token_maker_declare])])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# b4_basic_symbol_constructor_define(SYMBOL-NUM)
|
# b4_basic_symbol_constructor_define(SYMBOL-NUM)
|
||||||
# ----------------------------------------------
|
# ----------------------------------------------
|
||||||
# Generate a constructor for basic_symbol from given type.
|
# Generate a constructor for basic_symbol from given type.
|
||||||
@@ -458,5 +449,5 @@ m4_define([b4_basic_symbol_constructor_define],
|
|||||||
# ---------------------------
|
# ---------------------------
|
||||||
# Define the overloaded versions of make_symbol for all the value types.
|
# Define the overloaded versions of make_symbol for all the value types.
|
||||||
m4_define([b4_token_constructor_define],
|
m4_define([b4_token_constructor_define],
|
||||||
[ // Implementation of make_symbol for each symbol type.
|
[ // Implementation of make_symbol for each symbol type.
|
||||||
b4_symbol_foreach([_b4_token_maker_define])])
|
b4_symbol_foreach([_b4_token_maker_define])])
|
||||||
|
|||||||
@@ -60,11 +60,8 @@ static char *relocate_buffer = NULL;
|
|||||||
#define GENERATE_MUSCLE_INSERT_TABLE(Name, Type) \
|
#define GENERATE_MUSCLE_INSERT_TABLE(Name, Type) \
|
||||||
\
|
\
|
||||||
static void \
|
static void \
|
||||||
Name (char const *name, \
|
Name (char const *name, Type *table_data, Type first, \
|
||||||
Type *table_data, \
|
int begin, int end) \
|
||||||
Type first, \
|
|
||||||
int begin, \
|
|
||||||
int end) \
|
|
||||||
{ \
|
{ \
|
||||||
Type min = first; \
|
Type min = first; \
|
||||||
Type max = first; \
|
Type max = first; \
|
||||||
|
|||||||
Reference in New Issue
Block a user