From a3a0e67365e32ca5dd23c45a6ebd32bacbd5dc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20B=C3=B6ger?= Date: Sun, 30 Aug 2020 11:21:40 +0100 Subject: [PATCH 1/3] Add `(chibi optional)` to listed library docs --- Makefile | 5 +++-- doc/chibi.scrbl | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 04dda536..b210ae3f 100644 --- a/Makefile +++ b/Makefile @@ -50,8 +50,9 @@ MODULE_DOCS := app ast base64 bytevector config crypto/md5 crypto/rsa \ crypto/sha2 diff disasm doc edit-distance equiv filesystem generic \ heap-stats io iset/base iset/constructors iset/iterators json loop \ match math/prime memoize mime modules net net/http-server net/servlet \ - parse pathname process repl scribble string stty sxml system temp-file \ - test time trace type-inference uri weak monad/environment crypto/sha2 + optional parse pathname process repl scribble string stty sxml system \ + temp-file test time trace type-inference uri weak monad/environment \ + crypto/sha2 IMAGE_FILES = lib/chibi.img lib/red.img lib/snow.img diff --git a/doc/chibi.scrbl b/doc/chibi.scrbl index ec581cb1..2593ead5 100755 --- a/doc/chibi.scrbl +++ b/doc/chibi.scrbl @@ -1343,6 +1343,8 @@ namespace. \item{\hyperlink["lib/chibi/net/servlet.html"]{(chibi net servlet) - HTTP servlets for http-server or CGI}} +\item{\hyperlink["lib/chibi/optional.html"]{(chibi optional) - Syntax to support optional and named keyword arguments}} + \item{\hyperlink["lib/chibi/parse.html"]{(chibi parse) - Parser combinators with convenient syntax}} \item{\hyperlink["lib/chibi/pathname.html"]{(chibi pathname) - Utilities to decompose and manipulate pathnames}} From 2dcf2f0584e93b2771eed62e3bb2b4ee8269891f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20B=C3=B6ger?= Date: Sun, 30 Aug 2020 11:22:46 +0100 Subject: [PATCH 2/3] Fix broken link to SRFI 188 --- doc/chibi.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/chibi.scrbl b/doc/chibi.scrbl index 2593ead5..2273d3c5 100755 --- a/doc/chibi.scrbl +++ b/doc/chibi.scrbl @@ -1272,7 +1272,7 @@ snow-fort): \item{\hyperlink["http://srfi.schemers.org/srfi-160/srfi-160.html"]{(srfi 160) - homogeneous numeric vector libraries}} \item{\hyperlink["http://srfi.schemers.org/srfi-165/srfi-165.html"]{(srfi 165) - the environment Monad}} \item{\hyperlink["http://srfi.schemers.org/srfi-166/srfi-166.html"]{(srfi 166) - monadic formatting}} -\item{\hyperlink["http://srfi.schemers.org/srfi-166/srfi-188.html"]{(srfi 188) - splicing binding constructs for syntactic keywords}} +\item{\hyperlink["http://srfi.schemers.org/srfi-188/srfi-188.html"]{(srfi 188) - splicing binding constructs for syntactic keywords}} ] From 922b73b024a55a1bdc1c12a78848f9300d18d843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20B=C3=B6ger?= Date: Sun, 30 Aug 2020 11:23:17 +0100 Subject: [PATCH 3/3] Sync documented `\var` and actual parameter name The procedure parameter name could equally well be changed from `id` to `proc`. Not sure which approach is more suitable - here, I chose to stick to the original procedure signature. --- lib/chibi/trace.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chibi/trace.scm b/lib/chibi/trace.scm index d07e7a1b..4d4beb0a 100644 --- a/lib/chibi/trace.scm +++ b/lib/chibi/trace.scm @@ -34,7 +34,7 @@ (show-trace-result cell args res) res)))) -;;> Write a trace of all calls to the procedure \var{proc} to +;;> Write a trace of all calls to the procedure \var{id} to ;;> \scheme{(current-error-port)}. (define-syntax trace @@ -42,7 +42,7 @@ ((trace id) (trace-cell (env-cell (interaction-environment) 'id))))) -;;> Remove any active traces on the procedure \var{proc}. +;;> Remove any active traces on the procedure \var{id}. (define-syntax untrace (syntax-rules ()