string formatter follow srfi-28's spec
This commit is contained in:
parent
a9d3d847af
commit
306a5f53a5
|
@ -304,7 +304,7 @@ analyze_node(analyze_state *state, pic_value obj, bool tailpos)
|
|||
pic_value proc;
|
||||
|
||||
if (! pic_list_p(pic, obj)) {
|
||||
pic_errorf(pic, "invalid expression given: ~S", obj);
|
||||
pic_errorf(pic, "invalid expression given: ~s", obj);
|
||||
}
|
||||
|
||||
proc = pic_list_ref(pic, obj, 0);
|
||||
|
|
|
@ -188,7 +188,7 @@ pic_vfformat(pic_state *pic, xFILE *file, const char *fmt, va_list ap)
|
|||
case '%':
|
||||
xfputc('\n', file);
|
||||
break;
|
||||
case 'S':
|
||||
case 's':
|
||||
irrs = pic_cons(pic, pic_fdebug(pic, va_arg(ap, pic_value), file), irrs);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue