mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: fix formatting of C.f(/*mut*/buff &char) i64 (#19069)
This commit is contained in:
parent
23a7c40c44
commit
7c2f3e4530
7
vlib/v/fmt/tests/c_fn_headers_with_comments_expected.vv
Normal file
7
vlib/v/fmt/tests/c_fn_headers_with_comments_expected.vv
Normal file
@ -0,0 +1,7 @@
|
||||
module main
|
||||
|
||||
fn main() {
|
||||
println('Hello World!')
|
||||
}
|
||||
|
||||
fn C.f( /* mut */ buff &char) i64
|
7
vlib/v/fmt/tests/c_fn_headers_with_comments_input.vv
Normal file
7
vlib/v/fmt/tests/c_fn_headers_with_comments_input.vv
Normal file
@ -0,0 +1,7 @@
|
||||
module main
|
||||
|
||||
fn main() {
|
||||
println('Hello World!')
|
||||
}
|
||||
|
||||
fn C.f(/*mut*/buff &char) i64
|
@ -948,6 +948,7 @@ fn (mut p Parser) fn_params() ([]ast.Param, bool, bool) {
|
||||
is_mut: is_mut
|
||||
typ: param_type
|
||||
type_pos: type_pos
|
||||
comments: comments
|
||||
}
|
||||
param_no++
|
||||
if param_no > 1024 {
|
||||
|
Loading…
Reference in New Issue
Block a user