|
@@ -271,7 +271,9 @@ static bool cFunction() {
|
|
|
cError("unexpected end of file: function not closed on line %d", oldLine);
|
|
|
return false;
|
|
|
}
|
|
|
- cLine();
|
|
|
+ if(!cLine()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
varIndex = 0;
|
|
@@ -320,6 +322,7 @@ static void cForEachLine() {
|
|
|
}
|
|
|
|
|
|
static void cAllocAndCompile() {
|
|
|
+ varIndex = 0;
|
|
|
simInit(vars);
|
|
|
simInit(vars + 1);
|
|
|
simInit(&functions);
|