format fixes
parent
b2814ffe2f
commit
492789f0a4
6
main.cc
6
main.cc
|
@ -47,8 +47,7 @@ static bool ob_check_file(ConstCharRange fname) {
|
||||||
return ostd::FileStream(fname, ostd::StreamMode::read).is_open();
|
return ostd::FileStream(fname, ostd::StreamMode::read).is_open();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ob_check_exec(ConstCharRange tname,
|
static bool ob_check_exec(ConstCharRange tname, const Vector<String> &deps) {
|
||||||
const Vector<String> &deps) {
|
|
||||||
if (!ob_check_file(tname))
|
if (!ob_check_file(tname))
|
||||||
return true;
|
return true;
|
||||||
for (auto &dep: deps.iter())
|
for (auto &dep: deps.iter())
|
||||||
|
@ -366,8 +365,9 @@ int main(int argc, char **argv) {
|
||||||
if (!lslash.empty()) {
|
if (!lslash.empty()) {
|
||||||
lslash.pop_front();
|
lslash.pop_front();
|
||||||
os.progname = lslash;
|
os.progname = lslash;
|
||||||
} else
|
} else {
|
||||||
os.progname = pn;
|
os.progname = pn;
|
||||||
|
}
|
||||||
|
|
||||||
cscript::init_lib_base(os.cs);
|
cscript::init_lib_base(os.cs);
|
||||||
cscript::init_lib_io(os.cs);
|
cscript::init_lib_io(os.cs);
|
||||||
|
|
Loading…
Reference in New Issue