]> git.sesse.net Git - cubemap/commitdiff
Move some config stuff into an anonymous namespace.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Dec 2013 00:21:21 +0000 (01:21 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Dec 2013 00:21:21 +0000 (01:21 +0100)
config.cpp

index e7c9c844d1ab4ffd5f24cd9f7fcf493b2f8ecf8e..224e34fb027ab782b3293777cf7619b499f46e0d 100644 (file)
@@ -26,6 +26,8 @@ struct ConfigLine {
        map<string, string> parameters;
 };
 
+namespace {
+
 bool read_config(const string &filename, vector<ConfigLine> *lines)
 {
        FILE *fp = fopen(filename.c_str(), "r");
@@ -444,6 +446,8 @@ bool parse_error_log(const ConfigLine &line, Config *config)
        return true;
 }
 
+}  // namespace
+
 bool parse_config(const string &filename, Config *config)
 {
        vector<ConfigLine> lines;