From 558024696caf8a52270c0c1262f7ad972e8e573c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 24 Nov 2019 15:16:05 +0300 Subject: [PATCH] lots of C Windows function definitions --- vlib/builtin/cfns.v | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/vlib/builtin/cfns.v b/vlib/builtin/cfns.v index a2c542b0cf..e349bc5b46 100644 --- a/vlib/builtin/cfns.v +++ b/vlib/builtin/cfns.v @@ -91,6 +91,7 @@ fn C.syscall() int + // Windows fn C._setmode(int, int) fn C._fileno(int) int @@ -107,5 +108,39 @@ fn C.RegOpenKeyExW(hKey voidptr, lpSubKey &u16, ulOptions u32, samDesired u32, p fn C.RemoveDirectory() int fn C.GetStdHandle() int fn C.SetConsoleMode() -fn C._putsws() +fn C.GetConsoleMode() int +fn C._putws() fn C.wprintf() +fn C.setbuf() +fn C.SymCleanup() +fn C.MultiByteToWideChar() int +fn C.wcslen() int +fn C.WideCharToMultiByte() byteptr +fn C._wstat() +fn C._wrename() +fn C._wfopen() voidptr +fn C._wpopen() voidptr +fn C._pclose() int +fn C._wsystem() int +fn C._wgetenv() voidptr +fn C._putenv() int +fn C._waccess() int +fn C._wremove() +fn C.ReadConsole() +fn C.fgetws() int +fn C.GetModuleFileName() int +fn C._wchdir() +fn C._wgetcwd() int +fn C._fullpath() int +fn C.GetCommandLine() voidptr +fn C.CommandLineToArgvW() *voidptr +fn C.LocalFree() +fn C.FindFirstFileW() voidptr +fn C.FindFirstFile() voidptr +fn C.FindNextFile() voidptr +fn C.FindClose() +fn C.MAKELANGID() int +fn C.FormatMessage() voidptr +fn C.CloseHandle() +fn C.WaitForSingleObject() +fn C.GetExitCodeProcess() \ No newline at end of file