Skip to content

Commit

Permalink
os,picohttpparser,sokol,strconv: handle C. calls
Browse files Browse the repository at this point in the history
  • Loading branch information
JalonSolov committed Nov 11, 2023
1 parent cd337e2 commit 91799ba
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/tools/vtest-self.v
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const (
'vlib/io/os_file_reader_test.v',
'vlib/os/process_test.v',
'vlib/os/file_test.v',
'vlib/os/notify/notify_test.v',
'vlib/os/notify/notify_test.c.v',
'vlib/os/filepath_test.v',
'vlib/os/environment_test.v',
'vlib/os/glob_test.v',
'vlib/os/os_test.v',
'vlib/os/os_test.c.v',
'vlib/rand/random_numbers_test.v',
'vlib/rand/wyrand/wyrand_test.v',
'vlib/runtime/runtime_test.v',
Expand All @@ -63,7 +63,7 @@ const (
'vlib/sync/waitgroup_test.v',
'vlib/sync/pool/pool_test.v',
'vlib/strings/builder_test.v',
'vlib/strconv/atof_test.v',
'vlib/strconv/atof_test.c.v',
'vlib/strconv/atoi_test.v',
'vlib/strconv/f32_f64_to_string_test.v',
'vlib/strconv/format_test.v',
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub mut:
[inline]
pub fn (mut r Response) write_string(s string) {
unsafe {
C.memcpy(r.buf, s.str, s.len)
vmemcpy(r.buf, s.str, s.len)
r.buf += s.len
}
}
Expand All @@ -36,7 +36,7 @@ pub fn (mut r Response) header(k string, v string) &Response {
pub fn (mut r Response) header_date() &Response {
r.write_string('Date: ')
unsafe {
C.memcpy(r.buf, r.date, 29)
vmemcpy(r.buf, r.date, 29)
r.buf += 29
}
r.write_string('\r\n')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 91799ba

Please sign in to comment.