From 30042ab54b019d69e1f58ddb49a31f42cadd65fe Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 25 Nov 2019 12:54:07 +0200 Subject: [PATCH] cfns: fix some declarations --- vlib/builtin/cfns.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/builtin/cfns.v b/vlib/builtin/cfns.v index c82a3bc819..a803c611b7 100644 --- a/vlib/builtin/cfns.v +++ b/vlib/builtin/cfns.v @@ -30,9 +30,9 @@ fn C.realpath(byteptr, byteptr) &char -fn C.chmod(byteptr, int) -fn C.printf(byteptr, ...byteptr) -fn C.fputs(byteptr) +fn C.chmod(byteptr, int) int +fn C.printf(byteptr, ...byteptr) int +fn C.fputs(byteptr) int fn C.fflush(byteptr) int // TODO define args in these functions fn C.fseek() int @@ -93,7 +93,7 @@ fn C.syscall() int // Windows -fn C._setmode(int, int) +fn C._setmode(int, int) int fn C._fileno(int) int fn C._get_osfhandle(fd int) C.intptr_t fn C.GetModuleFileNameW(hModule voidptr, lpFilename &u16, nSize u32) u32