now bring _windows.v back

pull/2514/head
Alexander Medvednikov 2019-10-23 12:54:35 +03:00
parent 95321f5b33
commit 27e254c738
3 changed files with 4 additions and 3 deletions

View File

@ -37,7 +37,8 @@ fn generate_vh(mod string) {
// Consts // Consts
println(full_mod_path) println(full_mod_path)
mut vfiles := os.walk_ext(full_mod_path, '.v') mut vfiles := os.walk_ext(full_mod_path, '.v')
filtered := vfiles.filter(!it.ends_with('test.v') && !it.ends_with('_windows.v')) // TODO merge once filter allows it filtered := vfiles.filter(!it.ends_with('test.v') &&
!it.ends_with('_windows.v') && !it.ends_with('_win.v')) // TODO merge once filter allows it
println(filtered) println(filtered)
mut v := new_v(['foo.v']) mut v := new_v(['foo.v'])
//v.pref.generating_vh = true //v.pref.generating_vh = true
@ -57,7 +58,7 @@ fn generate_vh(mod string) {
} }
} }
} }
result := consts.str() + fns.str().replace('\n\n', '') result := consts.str() + fns.str().replace('\n\n\n', '\n').replace('\n\n', '\n')
out.writeln(result.replace('[ ] ', '[]').replace('? ', '?')) out.writeln(result.replace('[ ] ', '[]').replace('? ', '?'))
out.close() out.close()
} }