diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-05 00:16:37 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-05 00:16:37 -0800 |
commit | 67ac7a217bdfd6e4a813cc6caa68a75fb754e28b (patch) | |
tree | 2a4f50e9ae3bc421b0ad7a91de130a4ed0ac7a38 /txr.1 | |
parent | 22ed7f473a5c1e1db722286f98b2457a74cc1ca7 (diff) | |
download | txr-67ac7a217bdfd6e4a813cc6caa68a75fb754e28b.tar.gz txr-67ac7a217bdfd6e4a813cc6caa68a75fb754e28b.tar.bz2 txr-67ac7a217bdfd6e4a813cc6caa68a75fb754e28b.zip |
* 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.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -11628,7 +11628,7 @@ indeterminate. .TP Syntax: - (put-line <string> [<stream>]) + (put-line [<string> [<stream>]]) (put-string <string> [<stream>]) (put-char <char> [<stream>]) (put-byte <byte> [<stream>]) @@ -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 <byte> argument to <stream>, if <stream> supports a byte write operation. The byte |