tmpl updates
This commit is contained in:
parent
90d313721f
commit
1dcde61d10
@ -66,7 +66,7 @@ bool I_CLASSNAME::parse(istream & i)
|
|||||||
/* compile all token regular expressions */
|
/* compile all token regular expressions */
|
||||||
for (int i = 0; i < sizeof(tokens)/sizeof(tokens[0]); i++)
|
for (int i = 0; i < sizeof(tokens)/sizeof(tokens[0]); i++)
|
||||||
{
|
{
|
||||||
char * errptr;
|
const char * errptr;
|
||||||
int erroffset;
|
int erroffset;
|
||||||
tokens[i].re = pcre_compile(tokens[i].definition, 0,
|
tokens[i].re = pcre_compile(tokens[i].definition, 0,
|
||||||
&errptr, &erroffset, NULL);
|
&errptr, &erroffset, NULL);
|
||||||
|
@ -13,10 +13,10 @@ class I_CLASSNAME
|
|||||||
public:
|
public:
|
||||||
I_CLASSNAME();
|
I_CLASSNAME();
|
||||||
bool parse(std::istream & in);
|
bool parse(std::istream & in);
|
||||||
char * getError(); { return m_errstr; }
|
char * getError() { return m_errstr; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
char * m_errstr;
|
const char * m_errstr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef I_NAMESPACE
|
#ifdef I_NAMESPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user