This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH 1/1] Collect handling of wpixput and wpbuf into a helper class.
- From: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 3 Mar 2020 09:35:35 +0900
- Subject: Re: [PATCH 1/1] Collect handling of wpixput and wpbuf into a helper class.
- Dkim-filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 0230ZXah006768
- References: <877f246b-08c2-6ccd-faac-6c90661212e5@t-online.de>
Hi Hans,
Thanks for the patch.
On Tue, 3 Mar 2020 00:07:25 +0100
Hans-Bernhard Bröker wrote:
> + inline void sendOut(HANDLE &handle, DWORD *wn) { WriteConsoleA
> (handle, buf, ixput, wn, 0); };
The second argument DWORD *wn of sendOut() is not used
outside sendOut(), so it can be covered up like:
inline void sendOut (HANDLE &handle)
{
DWORD wn;
WriteConsoleA (handle, buf, ixput, &wn, 0);
}
--
Takashi Yano <takashi.yano@nifty.ne.jp>