From fcdc6c17ff2e55786fe304733c5d6d9de5f756a5 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Thu, 30 Jun 2011 09:12:14 +0900 Subject: [PATCH] fixing sexp_load example --- doc/chibi.scrbl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/chibi.scrbl b/doc/chibi.scrbl index a1fa8821..a766b948 100755 --- a/doc/chibi.scrbl +++ b/doc/chibi.scrbl @@ -307,7 +307,8 @@ void dostuff(sexp ctx) { sexp_gc_preserve2(ctx, obj1, obj2); /* load a file containing Scheme code */ - sexp_load(ctx, "/path/to/source/file.scm", NULL); + obj1 = sexp_c_string(ctx, "/path/to/source/file.scm", -1); + sexp_load(ctx, obj1, NULL); /* eval a C string as Scheme code */ sexp_eval_string(ctx, "(some scheme expression)", NULL, NULL);