From 67ac7a217bdfd6e4a813cc6caa68a75fb754e28b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 5 Mar 2014 00:16:37 -0800 Subject: * stream.c (put_line): Default string argument to empty string. (stream_init): Change how put_line is registered to take advantage of new optional parameter. * txr.1: Updated. --- txr.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index deff8d86..dcbbd92c 100644 --- a/txr.1 +++ b/txr.1 @@ -11628,7 +11628,7 @@ indeterminate. .TP Syntax: - (put-line []) + (put-line [ []]) (put-string []) (put-char []) (put-byte []) @@ -11645,7 +11645,8 @@ stream is based on bytes, then the character is encoded into UTF-8 and multiple bytes are written. Streams which support put-char also support put-line, and put-string. The put-string function writes the characters of a string out to the stream as if by multiple calls to put-char. The put-line function is like -put-string, but also writes an additional newline character. +put-string, but also writes an additional newline character. The string +is optional in put-line, and defaults to the empty string. The put-byte function writes a raw byte given by the argument to , if supports a byte write operation. The byte -- cgit v1.2.3