mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869)
This commit is contained in:
@ -125,7 +125,8 @@ fn C.mktime() int
|
||||
fn C.gettimeofday() int
|
||||
|
||||
|
||||
fn C.sleep() int
|
||||
[trusted_fn]
|
||||
fn C.sleep(int) int
|
||||
|
||||
|
||||
fn C.usleep() int
|
||||
@ -152,9 +153,11 @@ fn C.tolower() int
|
||||
fn C.toupper() int
|
||||
|
||||
|
||||
[trusted_fn]
|
||||
fn C.getchar() int
|
||||
|
||||
|
||||
[trusted_fn]
|
||||
fn C.strerror(int) charptr
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user