From 423ca9b50e4321c078cc6fe7903b10ed4907d269 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 25 Jun 2012 09:49:04 +0200 Subject: [PATCH] fix for printers and destructors. The previous "code_props: factor more" patch sends has_%printer etc. to m4, instead of has_printer. * src/output.c (prepare_symbol_definitions): Fix value of pname. --- src/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/output.c b/src/output.c index 6ff6a9b8..4fe11ccb 100644 --- a/src/output.c +++ b/src/output.c @@ -447,7 +447,8 @@ prepare_symbol_definitions (void) int j; for (j = 0; j < CODE_PROPS_SIZE; ++j) { - char const *pname = code_props_type_string (j); + /* "printer", not "%printer". */ + char const *pname = code_props_type_string (j) + 1; code_props const *p = symbol_code_props_get (sym, j); SET_KEY2("has", pname); MUSCLE_INSERT_INT (key, !!p->code); -- 2.45.2