diff 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
line wrap: on
line diff
--- a/gen/configfile.h	Mon Jun 08 13:52:45 2009 +0200
+++ b/gen/configfile.h	Mon Jun 08 19:48:20 2009 +0200
@@ -27,6 +27,8 @@
     const std::string& path()     { return pathstr; }
 
 private:
+    bool locate(llvm::sys::Path& path, const char* argv0, void* mainAddr, const char* filename);
+
     libconfig::Config* cfg;
     std::string pathstr;