comparison gen/configfile.h @ 1489:a048f31bf9f6

Move locating the configuration file into a separate function. Also look in PREFIX/etc/ldc. Fixes #322.
author Christian Kamm <kamm incasoftware de>
date Mon, 08 Jun 2009 19:48:20 +0200
parents 7d3b47852a7a
children
comparison
equal deleted inserted replaced
1488:ca31a8e9c42b 1489:a048f31bf9f6
25 s_iterator switches_end() { return switches.end(); } 25 s_iterator switches_end() { return switches.end(); }
26 26
27 const std::string& path() { return pathstr; } 27 const std::string& path() { return pathstr; }
28 28
29 private: 29 private:
30 bool locate(llvm::sys::Path& path, const char* argv0, void* mainAddr, const char* filename);
31
30 libconfig::Config* cfg; 32 libconfig::Config* cfg;
31 std::string pathstr; 33 std::string pathstr;
32 34
33 s_vector switches; 35 s_vector switches;
34 }; 36 };