mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
builtin: vfmt every .v file, except vlib/builtin/int_test.v (#9448)
This commit is contained in:
parent
5d8b9b0151
commit
6bc9ef7373
19 changed files with 259 additions and 272 deletions
|
@ -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('(')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue