cgen: autofree: first step

This commit is contained in:
Alexander Medvednikov 2020-03-21 19:52:19 +01:00
parent efbf114a2f
commit e5f6a0949f
7 changed files with 127 additions and 37 deletions

View file

@ -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