6 fpos(const std::string& name, int l = 1, int c = 1) : filename(name), line(l), col(c) {}
9 return filename + ":" + ConvToStr(line) + ":" + ConvToStr(col);
21 std::vector<std::string> reading;
22 std::map<std::string, std::string> vars;
23 ConfigDataHash& output;
24 std::stringstream& errstr;
26 ParseStack(ServerConfig* conf)
27 : output(conf->config_data), errstr(conf->errstr)
31 vars["newline"] = vars["nl"] = "\n";
33 bool ParseFile(const std::string& name, int flags);
34 bool ParseExec(const std::string& name, int flags);
35 void DoInclude(ConfigTag* includeTag, int flags);
38 /** RAII wrapper on FILE* to close files on exceptions */
42 FileWrapper(FILE* file) : f(file) {}
43 operator bool() { return f; }
44 operator FILE*() { return f; }