(svn r26845) -Fix [Squirrel]: more uninitialized variables in constructors

This commit is contained in:
rubidium 2014-09-17 18:35:45 +00:00
parent 6defde275c
commit dba98e85cb
3 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,7 @@ private:
{ {
_stacksize=0; _stacksize=0;
_bgenerator=false; _bgenerator=false;
_varparams = false;
_ninstructions = ninstructions; _ninstructions = ninstructions;
_literals = (SQObjectPtr*)&_instructions[ninstructions]; _literals = (SQObjectPtr*)&_instructions[ninstructions];
_nliterals = nliterals; _nliterals = nliterals;

View File

@ -85,6 +85,12 @@ SQLexer::SQLexer(SQSharedState *ss, SQLEXREADFUNC rg, SQUserPointer up,CompilerE
_lasttokenline = _currentline = 1; _lasttokenline = _currentline = 1;
_currentcolumn = 0; _currentcolumn = 0;
_prevtoken = -1; _prevtoken = -1;
_curtoken = -1;
_svalue = NULL;
_nvalue = 0;
_fvalue = 0;
Next(); Next();
} }

View File

@ -539,6 +539,7 @@ SQString::SQString(const SQChar *news, SQInteger len)
_len = len; _len = len;
_hash = ::_hashstr(news,(size_t)len); _hash = ::_hashstr(news,(size_t)len);
_next = NULL; _next = NULL;
_sharedstate = NULL;
} }
void SQStringTable::Resize(SQInteger size) void SQStringTable::Resize(SQInteger size)