Rt.stop: its comment says the line feed it writes after msg The mend met in libro, whose first message ended in a line feed of its own and so printed a blank line after it. lib/Rt.raz, raz-lib.md and sbcl's Rt now say what stop writes: msg, and a line feed.
| @@ -680,17 +680,3 @@ | ||
| 680 | 680 | `read` stays as it is. Library growth that breaks no program. |
| 681 | 681 | |
| 682 | 682 | Met in libro. |
| 683 | - | |
| 684 | -## `Rt.stop`'s line feed, said | |
| 685 | - | |
| 686 | -`Rt.stop(msg)` writes `msg` and then a line feed, but its interface's | |
| 687 | -comment, and the library volume's, say "msg on standard error, then | |
| 688 | -exit with status 2": a program that ends its message with `\n`, as a | |
| 689 | -message to standard error usually is, prints a blank line after it. | |
| 690 | -libro's first did. | |
| 691 | - | |
| 692 | -The mend: the comment says "msg, and a line feed, on standard error, | |
| 693 | -then exit with status 2", in `lib/Rt.raz` and `doc/raz-lib.md`. No | |
| 694 | -program changes. | |
| 695 | - | |
| 696 | -Met in libro. |
| @@ -46,7 +46,7 @@ | ||
| 46 | 46 | const Full*: ERROR = "too many procedures to run at exit"; |
| 47 | 47 | proc atExit*(p: proc): ERROR; (* p run when the program ends by exit *) |
| 48 | 48 | proc exit*(status: INT); (* the atExit procedures, the last first, then the end *) |
| 49 | -proc stop*(msg: []U8); (* msg on standard error, then exit with status 2 *) | |
| 49 | +proc stop*(msg: []U8); (* msg, and a line feed, on standard error, then exit with status 2 *) | |
| 50 | 50 | proc trace*; (* the calls under way, and their variables, on standard error *) |
| 51 | 51 | ``` |
| 52 | 52 |
| @@ -131,8 +131,8 @@ | ||
| 131 | 131 | Sys.exit(status); |
| 132 | 132 | end; |
| 133 | 133 | |
| 134 | -(* Stops the program: says msg on standard error, then ends it by exit | |
| 135 | - with status 2, as a failed check does. *) | |
| 134 | +(* Stops the program: says msg, and then a line feed, on standard | |
| 135 | + error, then ends it by exit with status 2, as a failed check does. *) | |
| 136 | 136 | proc stop*(msg: []U8); |
| 137 | 137 | begin |
| 138 | 138 | _ := Sys.write(Sys.stderr, msg); |
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | (trace-calls); |
| 46 | 46 | end; |
| 47 | 47 | |
| 48 | -(* msg on standard error, then exit with status 2 *) | |
| 48 | +(* msg, and a line feed, on standard error, then exit with status 2 *) | |
| 49 | 49 | proc stop*(msg: []U8); |
| 50 | 50 | begin |
| 51 | 51 | _ := Sys.write(Sys.stderr, msg); |