~ chicken-core (chicken-5) 81d9fd151b4b1c693d40dcc7309f476960f56979
commit 81d9fd151b4b1c693d40dcc7309f476960f56979 Author: Peter Bex <peter@more-magic.net> AuthorDate: Sun Jan 22 18:00:26 2017 +0100 Commit: Peter Bex <peter@more-magic.net> CommitDate: Sun Jan 22 18:00:26 2017 +0100 Merge manual changes from wiki diff --git a/manual/Getting started b/manual/Getting started index 890b16d8..0be8fccb 100644 --- a/manual/Getting started +++ b/manual/Getting started @@ -287,11 +287,11 @@ To invoke the CHICKEN interpreter, you use the {{csi}} command. $ csi CHICKEN - (c) 2008-2017, The CHICKEN Team + (c) 2008-2016, The CHICKEN Team (c) 2000-2007, Felix L. Winkelmann - Version 4.9.0.1 (stability/4.9.0) (rev 8b3189b) + Version 4.11.0 (rev ce980c4) linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] - bootstrapped 2014-06-07 + compiled 2016-05-28 on yves.more-magic.net (Linux) #;1> diff --git a/manual/The R5RS standard b/manual/The R5RS standard index d88294ab..28db52dc 100644 --- a/manual/The R5RS standard +++ b/manual/The R5RS standard @@ -900,9 +900,8 @@ at the beginning of a <body>. A definition should have one of the following forms: -* (define <variable> <expression>) - -* (define (<variable> <formals>) <body>) +<macro>(define <variable> <expression>)</macro><br> +<macro>(define (<variable> <formals>) <body>)</macro><br> <Formals> should be either a sequence of zero or more variables, or a sequence of one or more variables followed by a space-delimited period @@ -912,7 +911,7 @@ equivalent to (define <variable> (lambda (<formals>) <body>)). -* (define (<variable> . <formal>) <body>) +<macro>(define (<variable> . <formal>) <body>)</macro><br> <Formal> should be a single variable. This form is equivalent to @@ -2535,7 +2534,7 @@ numerical predicates. String must be a string, and start and end must be exact integers satisfying - 0 < start < end < (string-length string) + 0 <= start <= end <= (string-length string) Substring returns a newly allocated string formed from the characters of string beginning with index start (inclusive) and ending with index diff --git a/manual/Unit lolevel b/manual/Unit lolevel index c7911220..c35102ea 100644 --- a/manual/Unit lolevel +++ b/manual/Unit lolevel @@ -319,6 +319,12 @@ Returns {{#t}} if {{X}} is a pointer-vector or {{#f}} otherwise. Returns a pointer-vector from the given pointer arguments. +==== pointer-vector-length + +<procedure>(pointer-vector-length POINTERVECTOR)</procedure> + +Returns the length of the given pointer-vector. + ==== pointer-vector-ref <procedure>(pointer-vector-ref POINTERVECTOR INDEX)</procedure> diff --git a/manual/Unit posix b/manual/Unit posix index b3a8f59f..fdbe0687 100644 --- a/manual/Unit posix +++ b/manual/Unit posix @@ -539,8 +539,8 @@ not followed: block-device Note that not all types are supported on every platform. -If {{ERROR}} is given and true, {{file-type}} signals an -error if the file does not exist. +If {{ERROR}} is given and false, then {{file-type}} returns {{#f}} if the file does not exist; +otherwise, it signals an error. ==== character-device?Trap