mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: move C struct declarations in their own _default.c.v files (#12268)
This commit is contained in:
@@ -22,7 +22,7 @@ pub mut:
|
||||
reloads int // how many times a reloading was tried
|
||||
reloads_ok int // how many times the reloads succeeded
|
||||
reload_time_ms int // how much time the last reload took (compilation + loading)
|
||||
last_mod_ts int // a timestamp for when the original was last changed
|
||||
last_mod_ts i64 // a timestamp for when the original was last changed
|
||||
recheck_period_ms int = 100 // how often do you want to check for changes
|
||||
cb_recheck FNLiveReloadCB = voidptr(0) // executed periodically
|
||||
cb_compile_failed FNLiveReloadCB = voidptr(0) // executed when a reload compilation failed
|
||||
|
||||
@@ -186,7 +186,7 @@ pub fn should_recompile_tool(vexe string, tool_source string, tool_name string,
|
||||
if os.is_dir(tool_source) {
|
||||
source_files := os.walk_ext(tool_source, '.v')
|
||||
mut newest_sfile := ''
|
||||
mut newest_sfile_mtime := 0
|
||||
mut newest_sfile_mtime := i64(0)
|
||||
for sfile in source_files {
|
||||
mtime := os.file_last_mod_unix(sfile)
|
||||
if mtime > newest_sfile_mtime {
|
||||
|
||||
Reference in New Issue
Block a user