Skip to content

Commit

Permalink
Fix duplicated fun ReadConsoleW
Browse files Browse the repository at this point in the history
In crystal pull request crystal-lang/crystal#13758 there was a new fun, ReadConsoleW, added to Lib C. We are commenting out the fun line for ReadConsoleW inline with how other funs that exist in Lib C are commented out.
  • Loading branch information
mjblack committed Jan 9, 2024
1 parent a940809 commit 5a60523
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/win32cr/system/console.cr
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ lib LibWin32
fun ReadConsoleA(hconsoleinput : LibC::HANDLE, lpbuffer : Void*, nnumberofcharstoread : UInt32, lpnumberofcharsread : UInt32*, pinputcontrol : CONSOLE_READCONSOLE_CONTROL*) : LibC::BOOL

# Params # hconsoleinput : LibC::HANDLE [In],lpbuffer : Void* [In],nnumberofcharstoread : UInt32 [In],lpnumberofcharsread : UInt32* [In],pinputcontrol : CONSOLE_READCONSOLE_CONTROL* [In]
fun ReadConsoleW(hconsoleinput : LibC::HANDLE, lpbuffer : Void*, nnumberofcharstoread : UInt32, lpnumberofcharsread : UInt32*, pinputcontrol : CONSOLE_READCONSOLE_CONTROL*) : LibC::BOOL
# Commented out because function is part of Lib C
#fun ReadConsoleW(hconsoleinput : LibC::HANDLE, lpbuffer : Void*, nnumberofcharstoread : UInt32, lpnumberofcharsread : UInt32*, pinputcontrol : CONSOLE_READCONSOLE_CONTROL*) : LibC::BOOL

# Params # hconsoleoutput : LibC::HANDLE [In],lpbuffer : Void* [In],nnumberofcharstowrite : UInt32 [In],lpnumberofcharswritten : UInt32* [In],lpreserved : Void* [In]
fun WriteConsoleA(hconsoleoutput : LibC::HANDLE, lpbuffer : Void*, nnumberofcharstowrite : UInt32, lpnumberofcharswritten : UInt32*, lpreserved : Void*) : LibC::BOOL
Expand Down

0 comments on commit 5a60523

Please sign in to comment.