1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen/os: minor fixes

This commit is contained in:
Alexander Medvednikov 2020-04-02 14:00:28 +02:00
parent 6e380b8897
commit 5b53b3d7e3
2 changed files with 1 additions and 2 deletions

View File

@ -204,7 +204,7 @@ pub fn get_module_filename(handle HANDLE) ?string {
for { for {
status := int(C.GetModuleFileNameW(handle, voidptr(&buf), sz)) status := int(C.GetModuleFileNameW(handle, voidptr(&buf), sz))
match status { match status {
os.success { success {
_filename := string_from_wide2(buf, sz) _filename := string_from_wide2(buf, sz)
return _filename return _filename
} }

View File

@ -106,7 +106,6 @@ pub fn (g &Gen) hashes() string {
mut res := c_commit_hash_default.replace('@@@', util.vhash() ) mut res := c_commit_hash_default.replace('@@@', util.vhash() )
res += c_current_commit_hash_default.replace('@@@', util.githash( g.pref.building_v ) ) res += c_current_commit_hash_default.replace('@@@', util.githash( g.pref.building_v ) )
return res return res
return c_commit_hash_default + g.typedefs.str() + g.definitions.str() + g.out.str()
} }
pub fn (g mut Gen) init() { pub fn (g mut Gen) init() {