]> git.saurik.com Git - bison.git/commitdiff
variant: fix inconsistent quotation
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 8 Apr 2013 18:22:04 +0000 (20:22 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 9 Apr 2013 12:07:51 +0000 (14:07 +0200)
* data/variant.hh (b4_char_sizeof): De-overquote.
(b4_value_type_declare): De-underquote.

data/variant.hh

index 7fa68464cde3933bad39928845232a5c26f67530..ac4f7a78507c49250d12dc789e0acf70ec61ff70 100644 (file)
@@ -63,7 +63,7 @@ m4_define([b4_char_sizeof],
 [b4_symbol_if([$1], [has_type],
 [
 m4_map([      b4_symbol_tag_comment], [$@])dnl
-      char _b4_char_sizeof_dummy@{sizeof([b4_symbol([$1], [type])])@};
+      char _b4_char_sizeof_dummy@{sizeof(b4_symbol([$1], [type]))@};
 ])])
 
 
@@ -248,12 +248,12 @@ m4_define([b4_variant_define],
 # ---------------------
 # Declare semantic_type.
 m4_define([b4_value_type_declare],
-[    /// An auxiliary type to compute the largest semantic type.
+[[    /// An auxiliary type to compute the largest semantic type.
     union union_type
     {]b4_type_foreach([b4_char_sizeof])[};
 
     /// Symbol semantic values.
-    typedef variant<sizeof(union_type)> semantic_type;dnl
+    typedef variant<sizeof(union_type)> semantic_type;][]dnl
 ])