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);
22 std::vector<std::string> reading;
23 std::map<std::string, std::string> vars;
24 ConfigDataHash& output;
25 std::stringstream& errstr;
27 ParseStack(ServerConfig* conf)
28 : output(conf->config_data), errstr(conf->errstr)
32 vars["newline"] = vars["nl"] = "\n";
34 bool ParseFile(const std::string& name, int flags);
35 bool ParseExec(const std::string& name, int flags);
36 void DoInclude(ConfigTag* includeTag, int flags);
39 /** RAII wrapper on FILE* to close files on exceptions */
43 FileWrapper(FILE* file) : f(file) {}
44 operator bool() { return f; }
45 operator FILE*() { return f; }