mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -240,22 +240,22 @@ mut:
|
|||
|
||||
pub fn new(system_allocator Allocator) Dlmalloc {
|
||||
return Dlmalloc{
|
||||
smallmap: 0
|
||||
treemap: 0
|
||||
smallbins: unsafe { [(dlmalloc.n_small_bins + 1) * 2]&Chunk{} }
|
||||
treebins: unsafe { [dlmalloc.n_tree_bins]&TreeChunk{} }
|
||||
dvsize: 0
|
||||
topsize: 0
|
||||
dv: unsafe { nil }
|
||||
top: unsafe { nil }
|
||||
footprint: 0
|
||||
max_footprint: 0
|
||||
seg: Segment{unsafe { nil }, 0, unsafe { nil }, 0}
|
||||
trim_check: 0
|
||||
least_addr: unsafe { nil }
|
||||
release_checks: 0
|
||||
smallmap: 0
|
||||
treemap: 0
|
||||
smallbins: unsafe { [(dlmalloc.n_small_bins + 1) * 2]&Chunk{} }
|
||||
treebins: unsafe { [dlmalloc.n_tree_bins]&TreeChunk{} }
|
||||
dvsize: 0
|
||||
topsize: 0
|
||||
dv: unsafe { nil }
|
||||
top: unsafe { nil }
|
||||
footprint: 0
|
||||
max_footprint: 0
|
||||
seg: Segment{unsafe { nil }, 0, unsafe { nil }, 0}
|
||||
trim_check: 0
|
||||
least_addr: unsafe { nil }
|
||||
release_checks: 0
|
||||
system_allocator: system_allocator
|
||||
max_request: 4294901657
|
||||
max_request: 4294901657
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -114,13 +114,13 @@ fn system_page_size(_ voidptr) usize {
|
|||
|
||||
pub fn get_system_allocator() Allocator {
|
||||
return Allocator{
|
||||
alloc: system_alloc
|
||||
remap: system_remap
|
||||
free_part: system_free_part
|
||||
free_: system_free
|
||||
alloc: system_alloc
|
||||
remap: system_remap
|
||||
free_part: system_free_part
|
||||
free_: system_free
|
||||
can_release_part: system_can_release_part
|
||||
allocates_zeros: system_allocates_zeros
|
||||
page_size: system_page_size
|
||||
data: unsafe { nil }
|
||||
allocates_zeros: system_allocates_zeros
|
||||
page_size: system_page_size
|
||||
data: unsafe { nil }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,13 +30,13 @@ fn system_page_size(_ voidptr) usize {
|
|||
|
||||
pub fn get_system_allocator() Allocator {
|
||||
return Allocator{
|
||||
alloc: system_alloc
|
||||
remap: system_remap
|
||||
free_part: system_free_part
|
||||
free_: system_free
|
||||
alloc: system_alloc
|
||||
remap: system_remap
|
||||
free_part: system_free_part
|
||||
free_: system_free
|
||||
can_release_part: system_can_release_part
|
||||
allocates_zeros: system_allocates_zeros
|
||||
page_size: system_page_size
|
||||
data: unsafe { nil }
|
||||
allocates_zeros: system_allocates_zeros
|
||||
page_size: system_page_size
|
||||
data: unsafe { nil }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue