builtin: vfmt every .v file, except vlib/builtin/int_test.v (#9448)

This commit is contained in:
zakuro 2021-03-25 03:39:59 +09:00 committed by GitHub
parent 5d8b9b0151
commit 6bc9ef7373
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 259 additions and 272 deletions

View file

@ -3,7 +3,7 @@
// that can be found in the LICENSE file.
module builtin
//pub fn vsyscall(id int
// pub fn vsyscall(id int
//
/*
@ -16,7 +16,6 @@ const (
stdout_value = 1
stderr_value = 2
)
*/
fn builtin_init() {
@ -87,7 +86,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
return false
} $else {
$if tinyc {
C.tcc_backtrace("Backtrace")
C.tcc_backtrace('Backtrace')
return false
}
buffer := [100]voidptr{}
@ -101,7 +100,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
//////csymbols := backtrace_symbols(*voidptr(&buffer[skipframes]), nr_actual_frames)
csymbols := C.backtrace_symbols(voidptr(&buffer[skipframes]), nr_actual_frames)
for i in 0 .. nr_actual_frames {
sframes << unsafe {tos2( byteptr(csymbols[i]) )}
sframes << unsafe { tos2(byteptr(csymbols[i])) }
}
for sframe in sframes {
executable := sframe.all_before('(')