]> git.saurik.com Git - bison.git/commit
simplify the handling of <> and <*>'s code_props.
authorAkim Demaille <akim@lrde.epita.fr>
Sun, 22 Jul 2012 15:51:25 +0000 (17:51 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 22 Jul 2012 18:19:51 +0000 (20:19 +0200)
commit9534d2be80292c1a2f52997964cb4436039781c0
treeb06d5474a23004b63eeb44dbb8664828b5e50da1
parent70946cff5eaf230a65ad8581773a535e293f0c85
simplify the handling of <> and <*>'s code_props.

Currently they are treated in separated variables, contrary to other
<TYPE> code_props.  This duplicates code (and messages for translators)
uselessly, as demonstrated by the fact that thanks to this patch, now
useless <*> and <> code_props are reported like the others.

* src/parse-gram.y (generic_symlist_item): Treat "<*>" and "<>" as regular
type tags.
* src/symlist.h, src/symlist.c (symbol_list_default_tagged_new)
(symbol_list_default_tagless_new,SYMLIST_DEFAULT_TAGGED)
(SYMLIST_DEFAULT_TAGLESS): Remove.
* src/symtab.h, src/symtab.c (default_tagged_code_props)
(default_tagless_code_props, default_tagged_code_props_set)
(default_tagless_code_props_set): Remove.
(symbol_code_props_get): Default to <*> or <>'s code_props.

* tests/actions.at: Complete expected errors: there are new warnings.
* tests/input.at: Likewise.
(Useless printers or destructors): Extend.
src/parse-gram.y
src/symlist.c
src/symlist.h
src/symtab.c
src/symtab.h
tests/actions.at
tests/input.at