projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac99d23
)
Change %(putlit) and %(zputlit) to take TF_EXPR instead of TF_STR. This
author
Ken Hornstein
<kenh@pobox.com>
Tue, 13 Nov 2012 23:53:55 +0000
(18:53 -0500)
committer
Ken Hornstein
<kenh@pobox.com>
Tue, 13 Nov 2012 23:53:55 +0000
(18:53 -0500)
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
patch
|
blob
|
history
diff --git
a/sbr/fmt_compile.c
b/sbr/fmt_compile.c
index
1d03b21
..
f4667a8
100644
(file)
--- 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 },