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.