mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
cgen: autofree: first step
This commit is contained in:
parent
efbf114a2f
commit
e5f6a0949f
7 changed files with 127 additions and 37 deletions
|
@ -20,7 +20,11 @@ fn C.symlink(charptr, charptr) int
|
|||
|
||||
fn init_os_args(argc int, argv &byteptr) []string {
|
||||
mut args := []string
|
||||
//mut args := []string(make(0, argc, sizeof(string)))
|
||||
//mut args := []string{len:argc}
|
||||
for i in 0 .. argc {
|
||||
|
||||
//args [i] = string(argv[i])
|
||||
args << string(argv[i])
|
||||
}
|
||||
return args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue