1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: use stricter declarations for C.getc/1, C.fseeko/3 and C._fseeki64/3

This commit is contained in:
Delyan Angelov 2021-05-22 07:45:00 +03:00
parent c04fc7bfc2
commit b7bf4b034e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -13,11 +13,11 @@ struct FileInfo {
size int
}
fn C.fseeko(voidptr, u64, int) int
fn C.fseeko(&C.FILE, u64, int) int
fn C._fseeki64(voidptr, u64, int) int
fn C._fseeki64(&C.FILE, u64, int) int
fn C.getc(voidptr) int
fn C.getc(&C.FILE) int
// open_file can be used to open or create a file with custom flags and permissions and returns a `File` object.
pub fn open_file(path string, mode string, options ...int) ?File {