[PATCH 1/1] Collect handling of wpixput and wpbuf into a helper class.

Takashi Yano takashi.yano@nifty.ne.jp
Tue Mar 3 00:35:00 GMT 2020

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>

More information about the Cygwin-patches mailing list