From 1a8bc0bc66f618a1f18804cb0ccf0603267d61a5 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Mon, 22 Feb 2016 23:19:30 +0900 Subject: [PATCH] update readme --- extlib/benz/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extlib/benz/README.md b/extlib/benz/README.md index 71b1e62b..bdeef48d 100644 --- a/extlib/benz/README.md +++ b/extlib/benz/README.md @@ -10,6 +10,7 @@ Originally, Benz used to be the core component of [Picrin Scheme](https://github #include #include "picrin.h" +#include "picrin/extra.h" /* Simple REPL program */ @@ -26,11 +27,11 @@ main(int argc, char *argv[]) expr = pic_read(pic, pic_stdin(pic)); - if (pic_eof_p(expr)) { + if (pic_eof_p(pic, expr)) { break; } - pic_printf(pic, "~s\n", pic_eval(pic, expr, pic->lib)); + pic_printf(pic, "~s\n", pic_eval(pic, expr, "picrin.user")); } pic_close(pic); @@ -45,6 +46,7 @@ Function binding is also easy. `pic_defun` defines a scheme procedure converting ```c #include "picrin.h" +#include "picrin/extra.h" int fact(int i) { return i == 1 ? 1 : i * fact(i - 1);