token : if setstr is used clear the variable id

This commit is contained in:
Daniel Marjamäki 2008-12-18 07:21:06 +00:00
parent 8d6f77deed
commit 744c4928c4
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ void TOKEN::setstr( const char s[] )
_cstr = _strdup(s);
#endif
_isName = bool(_str[0]=='_' || isalpha(_str[0]));
_isNumber = bool(isdigit(_str[0]) != 0);
_isNumber = bool(isdigit(_str[0]) != 0);
_varId = 0;
}
void TOKEN::combineWithNext(const char str1[], const char str2[])