From: Akim Demaille Date: Mon, 8 Apr 2013 18:22:04 +0000 (+0200) Subject: variant: fix inconsistent quotation X-Git-Tag: v2.7.90~49 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6155db81aa47b22f3cbc8f2776350b716e7e307d?hp=11872a8372da079f29f72fefb9863fbdc255d14d variant: fix inconsistent quotation * data/variant.hh (b4_char_sizeof): De-overquote. (b4_value_type_declare): De-underquote. --- diff --git a/data/variant.hh b/data/variant.hh index 7fa68464..ac4f7a78 100644 --- a/data/variant.hh +++ b/data/variant.hh @@ -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 semantic_type;dnl + typedef variant semantic_type;][]dnl ])