mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
skeletons: factor comments about symbols
* data/variant.hh (b4_char_sizeof_): Rename as... * data/bison.m4 (b4_symbol_tag_comment): this. Provide more documentation about b4_symbol_*.
This commit is contained in:
@@ -51,13 +51,6 @@ m4_define([_b4_char_sizeof_dummy],
|
||||
dummy[]_b4_char_sizeof_counter])
|
||||
|
||||
|
||||
# b4_char_sizeof_(SYMBOL-NUM)
|
||||
# ---------------------------
|
||||
# A comment describing this symbol.
|
||||
m4_define([b4_char_sizeof_],
|
||||
[ // b4_symbol([$1], [tag])
|
||||
])
|
||||
|
||||
# b4_char_sizeof(SYMBOL-NUMS)
|
||||
# ---------------------------
|
||||
# To be mapped on the list of type names to produce:
|
||||
@@ -69,7 +62,7 @@ m4_define([b4_char_sizeof_],
|
||||
m4_define([b4_char_sizeof],
|
||||
[b4_symbol_if([$1], [has_type],
|
||||
[
|
||||
m4_map([b4_char_sizeof_], [$@])dnl
|
||||
m4_map([ b4_symbol_tag_comment], [$@])dnl
|
||||
char _b4_char_sizeof_dummy@{sizeof([b4_symbol([$1], [type])])@};
|
||||
])])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user