diff options
author | deva <deva> | 2008-05-20 14:03:10 +0000 |
---|---|---|
committer | deva <deva> | 2008-05-20 14:03:10 +0000 |
commit | 556f00e4af55e78836c45f47b0662ab44bbb8b48 (patch) | |
tree | a5c315b35d400a397a35a86b86fe656d3a829af9 /server/src/templateparser.h | |
parent | 91d56787bec83a3a7c2ad6afd84d2b82c5d869b9 (diff) |
Made fixes pointed out by GCC 4.2 and -D_FORTIFY_SOURCES=2
Diffstat (limited to 'server/src/templateparser.h')
-rw-r--r-- | server/src/templateparser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/templateparser.h b/server/src/templateparser.h index 6e5fb1a..425030f 100644 --- a/server/src/templateparser.h +++ b/server/src/templateparser.h @@ -50,6 +50,7 @@ public: void characterData(std::string &data); void startTag(std::string name, std::map< std::string, std::string> attributes); void endTag(std::string name); + void parseError(char *buf, size_t len, std::string error, int lineno); Template *getTemplate(); @@ -59,6 +60,8 @@ protected: private: int fd; + std::string file; + // Parser state data ParserState state; Template *t; @@ -67,7 +70,7 @@ private: std::vector< Widget* > widgetstack; // Error callback function. - void error(char* fmt, ...); + void error(const char* fmt, ...); }; #endif/*__PRACRO_TEMPLATEPARSER_H__*/ |