Received: by mail.netbsd.org (Postfix, from userid 605) id D8E1C84D65; Thu, 22 Nov 2018 22:16:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id ED64B84D48 for ; Thu, 22 Nov 2018 22:16:46 +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 OXHBwW6qx18b for ; Thu, 22 Nov 2018 22:16:46 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 2024B84D1F for ; Thu, 22 Nov 2018 22:16:46 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 19331FB1F; Thu, 22 Nov 2018 22:16:46 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 22 Nov 2018 22:16:46 +0000 From: "Valeriy E. Ushakov" Subject: CVS commit: src/lib/libcurses To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20181122221646.19331FB1F@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Valeriy E. Ushakov" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: uwe Date: Thu Nov 22 22:16:45 UTC 2018 Modified Files: src/lib/libcurses: add_wch.c add_wchstr.c addwstr.c cchar.c echo_wchar.c get_wch.c get_wstr.c in_wch.c in_wchstr.c ins_wch.c ins_wstr.c inwstr.c Log Message: Drop HAVE_WCHAR ifdefs from code that is not even compiled with !HAVE_WCHAR. We still try to mainain the ability to build our curses with !HAVE_WCHAR, but it doesn't make sense to provide stubs for new wide API functions that just error out when !HAVE_WCHAR. Any code that only uses old API (and can work with !HAVE_WCHAR curses) doesn't use those new functions. The code that uses new API obviosly cannot work when all the new API is stubbed out. So the plan is to drop the stubs. This commit does that for files that are not even compiled with !HAVE_WCHAR (not only those stubs are useless, they were not even there to begin with). Same object code is generated for the normal HAVE_WCHAR case. Nothing is even recompiled for !HAVE_WCHAR. Ok by blymn@ jdc@ roy@ To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/lib/libcurses/add_wch.c \ src/lib/libcurses/add_wchstr.c cvs rdiff -u -r1.3 -r1.4 src/lib/libcurses/addwstr.c cvs rdiff -u -r1.10 -r1.11 src/lib/libcurses/cchar.c cvs rdiff -u -r1.2 -r1.3 src/lib/libcurses/echo_wchar.c cvs rdiff -u -r1.19 -r1.20 src/lib/libcurses/get_wch.c cvs rdiff -u -r1.4 -r1.5 src/lib/libcurses/get_wstr.c \ src/lib/libcurses/in_wch.c src/lib/libcurses/in_wchstr.c \ src/lib/libcurses/inwstr.c cvs rdiff -u -r1.11 -r1.12 src/lib/libcurses/ins_wch.c \ src/lib/libcurses/ins_wstr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.