[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parsers: fix minor stylistic issues
From: |
Akim Demaille |
Subject: |
parsers: fix minor stylistic issues |
Date: |
Fri, 28 Dec 2018 18:46:37 +0100 |
commit 0dc44adbf6cc372d14f4649d165eb77110c01b3f
Author: Akim Demaille <address@hidden>
Date: Thu Dec 27 06:39:41 2018 +0100
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.
diff --git a/data/skeletons/c++.m4 b/data/skeletons/c++.m4
index 3dca87c2..bd2acfd8 100644
--- a/data/skeletons/c++.m4
+++ b/data/skeletons/c++.m4
@@ -275,8 +275,8 @@ m4_define([b4_symbol_type_define],
/// Constructor for symbols with semantic value.
basic_symbol (typename Base::kind_type t,
YY_RVREF (semantic_type) v]b4_locations_if([,
- YY_RVREF (location_type) l])[);]])[
-
+ YY_RVREF (location_type) l])[);
+]])[
/// Destroy the symbol.
~basic_symbol ();
@@ -540,7 +540,7 @@ m4_define([b4_yytranslate_define],
const token_number_type
translate_table[] =
{
-]b4_translate[
+ ]b4_translate[
};
const unsigned user_token_number_max_ = ]b4_user_token_number_max[;
const token_number_type undef_token_ = ]b4_undef_token_number[;
diff --git a/data/skeletons/variant.hh b/data/skeletons/variant.hh
index 6c681e6e..2d283254 100644
--- a/data/skeletons/variant.hh
+++ b/data/skeletons/variant.hh
@@ -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)
# ----------------------------------------------
# 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.
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])])
diff --git a/src/output.c b/src/output.c
index dd443608..e87f9812 100644
--- a/src/output.c
+++ b/src/output.c
@@ -60,11 +60,8 @@ static char *relocate_buffer = NULL;
#define GENERATE_MUSCLE_INSERT_TABLE(Name, Type) \
\
static void \
-Name (char const *name, \
- Type *table_data, \
- Type first, \
- int begin, \
- int end) \
+Name (char const *name, Type *table_data, Type first, \
+ int begin, int end) \
{ \
Type min = first; \
Type max = first; \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- parsers: fix minor stylistic issues,
Akim Demaille <=