]> git.saurik.com Git - bison.git/commitdiff
c++: rename b4_semantic_type_declare as b4_value_type_declare
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 8 Feb 2013 16:09:33 +0000 (17:09 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 23 Feb 2013 15:16:15 +0000 (16:16 +0100)
This is to match the names used in C and api.value.type, even if the
parser actually defines semantic_type.

* data/c++.m4 (b4_semantic_type_declare): Rename as...
(b4_value_type_declare): this.
* data/variant.hh: Likewise.

data/c++.m4
data/variant.hh
data/yacc.c

index 3fc675093e04cc91e41fc4f495cfefc1a17360ce..e0fc535faba152d4f01087891f91f95db95e1f59 100644 (file)
@@ -112,10 +112,12 @@ m4_define([b4_token_enums],
 ## Semantic Values.  ##
 ## ----------------- ##
 
-# b4_semantic_type_declare
-# ------------------------
+
+
+# b4_value_type_declare
+# ---------------------
 # Declare semantic_type.
-m4_define([b4_semantic_type_declare],
+m4_define([b4_value_type_declare],
 [    /// Symbol semantic values.
 m4_ifdef([b4_union_members],
 [    union semantic_type
@@ -133,7 +135,7 @@ b4_user_union_members
 # Depending on %define token_lex, may be output in the header or source file.
 m4_define([b4_public_types_declare],
 [[#ifndef ]b4_api_PREFIX[STYPE
-]b4_semantic_type_declare[
+]b4_value_type_declare[
 #else
     typedef ]b4_api_PREFIX[STYPE semantic_type;
 #endif]b4_locations_if([
index d96c512b2af26e36555500fbcd0d3f43753df901..7fa68464cde3933bad39928845232a5c26f67530 100644 (file)
@@ -244,10 +244,10 @@ m4_define([b4_variant_define],
 ## -------------------------- ##
 
 
-# b4_semantic_type_declare
-# ------------------------
+# b4_value_type_declare
+# ---------------------
 # Declare semantic_type.
-m4_define([b4_semantic_type_declare],
+m4_define([b4_value_type_declare],
 [    /// An auxiliary type to compute the largest semantic type.
     union union_type
     {]b4_type_foreach([b4_char_sizeof])[};
@@ -328,7 +328,7 @@ b4_join(b4_symbol_if([$1], [has_type],
 
 
 # b4_basic_symbol_constructor_declare
-# ----------------------------------
+# -----------------------------------
 # Generate a constructor declaration for basic_symbol from given type.
 m4_define([b4_basic_symbol_constructor_declare],
 [[
index c341a70dbde4c5e3df059c347ccacfe86a32c02d..c47114ab4b7ea9c621b3017d46c4a4d28caf9e44 100644 (file)
@@ -143,7 +143,6 @@ m4_define([b4_rhs_value],
           [b4_symbol_value([yyvsp@{b4_subtract([$2], [$1])@}], [$3])])
 
 
-
 ## ----------- ##
 ## Locations.  ##
 ## ----------- ##