diff options
Diffstat (limited to 'src/kvirc/kvs/kvi_kvs_parser.h')
-rw-r--r-- | src/kvirc/kvs/kvi_kvs_parser.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_parser.h b/src/kvirc/kvs/kvi_kvs_parser.h index be98e960..70e353a0 100644 --- a/src/kvirc/kvs/kvi_kvs_parser.h +++ b/src/kvirc/kvs/kvi_kvs_parser.h @@ -61,14 +61,14 @@ public: KviKvsParser(KviKvsScript * pScript,KviWindow * pOutputWindow); ~KviKvsParser(); private: - const QChar * m_pBuffer; // the local pointer to the beginning of the buffer - const QChar * m_ptr; // the parsing pointer + const TQChar * m_pBuffer; // the local pointer to the beginning of the buffer + const TQChar * m_ptr; // the parsing pointer // parsing state - KviPointerHashTable<QString,QString> * m_pGlobals; // the dict of the vars declared with global in this script + KviPointerHashTable<TQString,TQString> * m_pGlobals; // the dict of the vars declared with global in this script int m_iFlags; // the current parsing flags bool m_bError; // error(..) was called ? // this stuff is used only for reporting errors and warnings - KviKvsScript * m_pScript; // parent script + KviKvsScript * m_pScript; // tqparent script KviWindow * m_pWindow; // output window public: // public interface enum Flags { AssumeLocals = 1, Pedantic = 2 }; @@ -77,9 +77,9 @@ public: // public interface // parses the buffer pointed by pBuffer and returns // a syntax tree or 0 in case of failure // if the parsing fails, the error code can be retrieved by calling error() - KviKvsTreeNodeInstruction * parse(const QChar * pBuffer,int iFlags = 0); - KviKvsTreeNodeInstruction * parseAsExpression(const QChar * pBuffer,int iFlags = 0); - KviKvsTreeNodeInstruction * parseAsParameter(const QChar * pBuffer,int iFlags = 0); + KviKvsTreeNodeInstruction * parse(const TQChar * pBuffer,int iFlags = 0); + KviKvsTreeNodeInstruction * parseAsExpression(const TQChar * pBuffer,int iFlags = 0); + KviKvsTreeNodeInstruction * parseAsParameter(const TQChar * pBuffer,int iFlags = 0); private: // parsing helpers // generic void skipSpaces(); // skips only spaces and tabs (eventually with \) @@ -90,9 +90,9 @@ private: // parsing helpers // dedicated to parseSpecialCommandFor() : in kvi_kvs_parser_specialcommands.cpp bool skipToEndOfForControlBlock(); // error handlers - void error(const QChar * pLocation,const QString &szMsgFmt,...); - void warning(const QChar * pLocation,const QString &szMsgFmt,...); - void errorBadChar(const QChar * pLocation,char cExpected,const char * szCommandName); + void error(const TQChar * pLocation,const TQString &szMsgFmt,...); + void warning(const TQChar * pLocation,const TQString &szMsgFmt,...); + void errorBadChar(const TQChar * pLocation,char cExpected,const char * szCommandName); protected: // this is called by KviKvsKernel to register the parsing routines @@ -121,7 +121,7 @@ private: // if started in the middle of the list returns only the remaining // parameters. KviKvsTreeNodeDataList * parseCommaSeparatedParameterList(); - KviPointerList<QString> * parseCommaSeparatedParameterListNoTree(); + KviPointerList<TQString> * parseCommaSeparatedParameterListNoTree(); // returns 0 in case of error or if it starts on a terminating character (null parameter) // check error() to see if there was an error condition (unless you already know that // there was a valid first character) @@ -294,7 +294,7 @@ private: KviKvsTreeNodeExpression * parseExpressionOperandCore(char terminator); bool parseExpressionMightPointToOperator(); - void report(bool bError,const QChar * pLocation,const QString &szMsgFmt,kvi_va_list va); + void report(bool bError,const TQChar * pLocation,const TQString &szMsgFmt,kvi_va_list va); }; #endif //!_KVI_KVS_PARSER_H_ |