From 33d5434aafd847629fc6c70db15d716c77402708 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 4 Aug 2015 19:47:48 -0700 Subject: Remove useless return values and checks. * stream.c (vformat_align_pre, vformat_align_post): Change to void return. Do not check return value of put_char. (vformat_num, vformat_str): Change to void return. Do not check return value of vformat_align_pre, vformat_aign_post or put_char. (vformat): Do not check return value of vformat_str or vformat_num. nilout exit point no longer needed. (put_string): Do not intercept return value of ops->put_string. Return t. (put_char): Do not intercept return value of ops->put_char. Do not check return value of put_indent. Return t. * txr.1: Document t return of put-char, put-byte and put-string. --- txr.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index 1975177c..327e4947 100644 --- a/txr.1 +++ b/txr.1 @@ -27671,6 +27671,11 @@ if supports a byte write operation. The byte value is specified as an integer value in the range 0 to 255. +All these runctions return +.codn t . +On failure, they do not return, but throw exceptions of type +.codn file-error . + .coNP Functions @ put-strings and @ put-lines .synb .mets (put-strings < sequence <> [ stream ]]) -- cgit v1.2.3