diff options
author | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
commit | 26b5e033ffde3d161382fc9addbfa99738379641 (patch) | |
tree | a344f369ca32945f787a02dee35c3dbe342bed7e /src/shared/Config/dotconfpp/dotconfpp.h | |
parent | f21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff) |
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Config/dotconfpp/dotconfpp.h')
-rw-r--r-- | src/shared/Config/dotconfpp/dotconfpp.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/shared/Config/dotconfpp/dotconfpp.h b/src/shared/Config/dotconfpp/dotconfpp.h index 51455854ee7..687753eb807 100644 --- a/src/shared/Config/dotconfpp/dotconfpp.h +++ b/src/shared/Config/dotconfpp/dotconfpp.h @@ -1,24 +1,17 @@ - #ifndef DOTCONFPP_H #define DOTCONFPP_H - #include <list> - #include <stdarg.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <errno.h> - #include <sys/types.h> #include <sys/stat.h> - #include "mempool.h" - class DOTCONFDocument; - class DOTCONFDocumentNode { friend class DOTCONFDocument; @@ -34,16 +27,12 @@ private: int lineNum; char * fileName; bool closed; - void pushValue(char * _value); - public: DOTCONFDocumentNode(); ~DOTCONFDocumentNode(); - const char * getConfigurationFileName()const { return fileName; } int getConfigurationLineNumber() const { return lineNum; } - const DOTCONFDocumentNode * getNextNode() const { return nextNode; } const DOTCONFDocumentNode * getPreviuosNode() const { return previousNode; } const DOTCONFDocumentNode * getParentNode() const { return parentNode; } @@ -52,7 +41,6 @@ public: const char * getName() const { return name; } const DOTCONFDocument * getDocument() const { return document; } }; - class DOTCONFDocument { public: @@ -71,7 +59,6 @@ private: char * fileName; std::list<char*> words; int (*cmp_func)(const char *, const char *); - int checkRequiredOptions(); int parseLine(); int parseFile(DOTCONFDocumentNode * _parent = NULL); @@ -79,20 +66,15 @@ private: int cleanupLine(char * line); char * getSubstitution(char * macro, int lineNum); int macroSubstitute(DOTCONFDocumentNode * tagNode, int valueIndex); - protected: virtual void error(int lineNum, const char * fileName, const char * fmt, ...) ATTR_PRINTF(4,5); - public: DOTCONFDocument(CaseSensitive caseSensitivity = CASESENSETIVE); virtual ~DOTCONFDocument(); - int setContent(const char * _fileName); - void setRequiredOptionNames(const char ** requiredOptionNames); const DOTCONFDocumentNode * getFirstNode() const; const DOTCONFDocumentNode * findNode(const char * nodeName, const DOTCONFDocumentNode * parentNode = NULL, const DOTCONFDocumentNode * startNode = NULL) const; }; - #endif |