mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
move v.v to cmd/v
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
strings
|
||||
os
|
||||
filepath
|
||||
v.pref
|
||||
)
|
||||
/*
|
||||
.vh generation logic.
|
||||
@@ -52,7 +53,11 @@ fn generate_vh(mod string) {
|
||||
filtered := vfiles.filter(it.ends_with('.v') && !it.ends_with('test.v') && !it.ends_with('_windows.v') && !it.ends_with('_win.v') && !it.ends_with('_lin.v') && !it.contains('${os.path_separator}examples') && !it.contains('_js.v') && !it.contains('_bare.v') && !it.contains('${os.path_separator}js')) // TODO merge once filter allows it
|
||||
// println('f:')
|
||||
// println(filtered)
|
||||
mut v := new_v(['foo.v'])
|
||||
mut pref := &pref.Preferences {
|
||||
path: 'foo.v'
|
||||
}
|
||||
pref.fill_with_defaults()
|
||||
mut v := new_v(pref)
|
||||
// v.pref.generating_vh = true
|
||||
mut g := VhGen{
|
||||
consts: strings.new_builder(1000)
|
||||
@@ -166,4 +171,3 @@ fn (g mut VhGen) generate_type() {
|
||||
// g.i = old
|
||||
// g.i--
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user