X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconfig.cpp;h=fbb36ac3d5cc32b1e3bec7fb63b917cc3879ab03;hb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;hp=753a4ef65b0577dca6bf0301290898461cd188de;hpb=0f5283a54fd188072eca23fbd980a43c6c869913;p=builder.git diff --git a/source/config.cpp b/source/config.cpp index 753a4ef..fbb36ac 100644 --- a/source/config.cpp +++ b/source/config.cpp @@ -5,11 +5,13 @@ Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ +#include #include +#include +#include #include #include #include -#include #include #include "builder.h" #include "config.h" @@ -150,7 +152,7 @@ void Config::finish() } else { - for(end=dollar+1; (isalnum(opt.value[end]) && opt.value[end]!='_'); ++end); + for(end=dollar+1; (isalnum(opt.value[end]) && opt.value[end]!='_'); ++end) ; var=opt.value.substr(dollar+1, end-dollar-1); } @@ -176,7 +178,7 @@ void Config::finish() void Config::save() const { - Path fn=package.get_source()/".options.cache"; + FS::Path fn=package.get_source()/".options.cache"; OptionMap::const_iterator i=options.find("profile"); if(i!=options.end()) @@ -205,7 +207,7 @@ bool Config::set_option(const string &opt, const string &val) void Config::load() { - Path fn=package.get_source()/".options.cache"; + FS::Path fn=package.get_source()/".options.cache"; OptionMap::iterator i=options.find("profile"); if(i!=options.end()) @@ -216,7 +218,7 @@ void Config::load() IO::File inf(fn.str()); IO::Buffered in(inf); - mtime=Time::TimeStamp::from_unixtime(stat(fn).st_mtime); + mtime=Time::TimeStamp::from_unixtime(FS::stat(fn).st_mtime); DataFile::Parser parser(in, fn.str()); Loader loader(*this);