X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=config.cpp;h=224e34fb027ab782b3293777cf7619b499f46e0d;hb=9b5a1e6241a5281ddefea4d43ae82ef7cf9a6d32;hp=e7c9c844d1ab4ffd5f24cd9f7fcf493b2f8ecf8e;hpb=f2530dbb8415f9e7cc0f2d4b45741120c95e8a05;p=cubemap diff --git a/config.cpp b/config.cpp index e7c9c84..224e34f 100644 --- a/config.cpp +++ b/config.cpp @@ -26,6 +26,8 @@ struct ConfigLine { map parameters; }; +namespace { + bool read_config(const string &filename, vector *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 lines;