code_props: factor more.

* src/symtab.h, src/symtab.c (code_props_type_string): No longer static.
* src/output.c (CODE_PROPS): Remove, we can now iterate on both the
destructor and the printer.
(SET_KEY2): New.
This commit is contained in:
Akim Demaille
2012-06-22 14:47:31 +02:00
parent 71da68b366
commit 6a0655d9cd
3 changed files with 37 additions and 30 deletions

View File

@@ -100,11 +100,7 @@ symbol_new (uniqstr tag, location loc)
return res;
}
/*-------------------------------------------------------.
| Name of the code_props type: %destructor or %printer. |
`-------------------------------------------------------*/
static char const *
char const *
code_props_type_string (code_props_type kind)
{
switch (kind)