X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.cpp;h=f4e8fc2ee734f11e3306b38a03a60e7309d8a027;hb=4d0d003b022943d8a0e39ba19078bab8d32d8857;hp=07cd6ea5aee874df889e4c34c49c77ae12ae5356;hpb=0ac8d6708b8c758fb89d97a0049d4a329990b83b;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index 07cd6ea..f4e8fc2 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -81,7 +81,7 @@ void Component::create_targets() const for(PathList::const_iterator i=files.begin(); i!=files.end(); ++i) { string basename=(*i)[-1]; - string ext=Path::splitext(basename).ext; + string ext=splitext(basename).ext; if((ext==".cpp" || ext==".c") && build_exe) { SourceFile *src=new SourceFile(builder, this, i->str()); @@ -146,8 +146,7 @@ PathList Component::collect_source_files() const PathList files; for(PathList::const_iterator i=sources.begin(); i!=sources.end(); ++i) { - struct stat st; - stat(*i, st); + struct stat st=stat(*i); if(S_ISDIR(st.st_mode)) { list sfiles=list_files(*i);