Received: by mail.netbsd.org (Postfix, from userid 605) id 90F1F84D44; Fri, 12 Mar 2021 19:11:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id C4C5E84D3A for ; Fri, 12 Mar 2021 19:11:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id IEOTirtmm4v7 for ; Fri, 12 Mar 2021 19:11:29 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 63E6A84D2D for ; Fri, 12 Mar 2021 19:11:29 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5CAB7FA95; Fri, 12 Mar 2021 19:11:29 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 12 Mar 2021 19:11:29 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/indent To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210312191129.5CAB7FA95@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Fri Mar 12 19:11:29 UTC 2021 Modified Files: src/usr.bin/indent: Makefile io.c Log Message: indent: add helper functions for doing the actual output This allows to add debug logging to these few functions instead of all other places that might output something. Reducing the possible output formats to a few primitives makes dump_line simpler, especially the fprintf calls. It also removes the non-constant printf string. The call to output_int may be meant for debugging, as the character 0x80 is unlikely to appear in any real-world code. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/usr.bin/indent/Makefile cvs rdiff -u -r1.27 -r1.28 src/usr.bin/indent/io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.