From: Ken Hornstein Date: Tue, 13 Nov 2012 23:53:55 +0000 (-0500) Subject: Change %(putlit) and %(zputlit) to take TF_EXPR instead of TF_STR. This X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=850e8ce9124dbb7ff30475a11540f28dbe4fb604;p=mmh 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. --- 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 },