From 850e8ce9124dbb7ff30475a11540f28dbe4fb604 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 13 Nov 2012 18:53:55 -0500 Subject: [PATCH] Change %(putlit) and %(zputlit) to take TF_EXPR instead of TF_STR. This was originally my fault; TF_STR means a string literal as an argument, but the documentation (and the code) really means for it to take an expression. --- sbr/fmt_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 1d03b21..f4667a8 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -138,8 +138,8 @@ static struct ftable functable[] = { { "putnum", TF_EXPR, FT_NUM, 0, 0 }, { "putnumf", TF_EXPR, FT_NUMF, 0, 0 }, { "putaddr", TF_STR, FT_PUTADDR, 0, 0 }, - { "putlit", TF_STR, FT_STRLIT, 0, 0 }, - { "zputlit", TF_STR, FT_STRLITZ, 0, 0 }, + { "putlit", TF_EXPR, FT_STRLIT, 0, 0 }, + { "zputlit", TF_EXPR, FT_STRLITZ, 0, 0 }, { "void", TF_NOP, 0, 0, 0 }, { "comp", TF_COMP, FT_LS_COMP, 0, TFL_PUTS }, -- 1.7.10.4