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

@ -55,6 +55,7 @@ void TOKEN::setstr( const char s[] )
#endif #endif
_isName = bool(_str[0]=='_' || isalpha(_str[0])); _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[]) void TOKEN::combineWithNext(const char str1[], const char str2[])