X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/29248b4c13285646a8fc8e0cd37cb39b17dc5d24..971ef18e306927e3b34229b95171d361eb2da695:/data/variant.hh diff --git a/data/variant.hh b/data/variant.hh index d96c512b..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]))@}; ])]) @@ -244,16 +244,16 @@ m4_define([b4_variant_define], ## -------------------------- ## -# b4_semantic_type_declare -# ------------------------ +# b4_value_type_declare +# --------------------- # Declare semantic_type. -m4_define([b4_semantic_type_declare], -[ /// An auxiliary type to compute the largest semantic type. +m4_define([b4_value_type_declare], +[[ /// 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 ]) @@ -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], [[