Skip to content

Commit 469282b

Browse files
committed
builtin: cleanup [trusted] tags for C function declarations
1 parent 4715fb6 commit 469282b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

vlib/builtin/cfns.c.v

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,22 +174,17 @@ fn C.toupper(c int) int
174174
[trusted]
175175
fn C.isspace(c int) int
176176

177-
[trusted]
178177
fn C.strchr(s &char, c int) &char
179178

180179
[trusted]
181180
fn C.getchar() int
182181

183-
[trusted]
184182
fn C.strdup(s &char) &char
185183

186-
[trusted]
187184
fn C.strncasecmp(s &char, s2 &char, n int) int
188185

189-
[trusted]
190186
fn C.strcasecmp(s &char, s2 &char) int
191187

192-
[trusted]
193188
fn C.strncmp(s &char, s2 &char, n int) int
194189

195190
[trusted]
@@ -359,6 +354,7 @@ fn C.Sleep(dwMilliseconds u32)
359354

360355
fn C.WSAStartup(u16, &voidptr) int
361356

357+
[trusted]
362358
fn C.WSAGetLastError() int
363359

364360
fn C.closesocket(int) int
@@ -371,6 +367,7 @@ fn C.vschannel_cleanup(&C.TlsContext)
371367

372368
fn C.URLDownloadToFile(int, &u16, &u16, int, int)
373369

370+
[trusted]
374371
fn C.GetLastError() u32
375372

376373
fn C.CreateDirectory(&byte, int) bool
@@ -455,12 +452,14 @@ fn C.sem_timedwait(voidptr, voidptr) int
455452
fn C.sem_destroy(voidptr) int
456453

457454
// MacOS semaphore functions
455+
[trusted]
458456
fn C.dispatch_semaphore_create(i64) voidptr
459457

460458
fn C.dispatch_semaphore_signal(voidptr) i64
461459

462460
fn C.dispatch_semaphore_wait(voidptr, u64) i64
463461

462+
[trusted]
464463
fn C.dispatch_time(u64, i64) u64
465464

466465
fn C.dispatch_release(voidptr)

0 commit comments

Comments
 (0)