tmpl updates

This commit is contained in:
Josh Holtrop 2010-05-11 13:02:51 -04:00
parent 90d313721f
commit 1dcde61d10
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ bool I_CLASSNAME::parse(istream & i)
/* compile all token regular expressions */
for (int i = 0; i < sizeof(tokens)/sizeof(tokens[0]); i++)
{
char * errptr;
const char * errptr;
int erroffset;
tokens[i].re = pcre_compile(tokens[i].definition, 0,
&errptr, &erroffset, NULL);

View File

@ -13,10 +13,10 @@ class I_CLASSNAME
public:
I_CLASSNAME();
bool parse(std::istream & in);
char * getError(); { return m_errstr; }
char * getError() { return m_errstr; }
protected:
char * m_errstr;
const char * m_errstr;
};
#ifdef I_NAMESPACE