make sure the functions works if the compiler aborted in the wrong place
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@114 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b4ceb68680
commit
30b8181429
1 changed files with 3 additions and 1 deletions
|
@ -1375,6 +1375,7 @@ called before compiling a batch of files, clears the pr struct
|
||||||
*/
|
*/
|
||||||
void QCC_PR_BeginCompilation (void *memory, int memsize)
|
void QCC_PR_BeginCompilation (void *memory, int memsize)
|
||||||
{
|
{
|
||||||
|
extern int recursivefunctiontype;
|
||||||
extern struct freeoffset_s *freeofs;
|
extern struct freeoffset_s *freeofs;
|
||||||
int i;
|
int i;
|
||||||
char name[16];
|
char name[16];
|
||||||
|
@ -1436,6 +1437,7 @@ void QCC_PR_BeginCompilation (void *memory, int memsize)
|
||||||
pr.types = NULL;
|
pr.types = NULL;
|
||||||
// type_function->next = NULL;
|
// type_function->next = NULL;
|
||||||
pr_error_count = 0;
|
pr_error_count = 0;
|
||||||
|
recursivefunctiontype = 0;
|
||||||
|
|
||||||
freeofs = NULL;
|
freeofs = NULL;
|
||||||
}
|
}
|
||||||
|
@ -1478,7 +1480,7 @@ int QCC_PR_FinishCompilation (void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QCC_PR_Warning(WARN_NOTDEFINED, strings + d->s_file, d->s_line, "function %s was not defined\n",d->name);
|
QCC_PR_Warning(WARN_NOTDEFINED, strings + d->s_file, d->s_line, "function %s was not defined",d->name);
|
||||||
bodylessfuncs = true;
|
bodylessfuncs = true;
|
||||||
}
|
}
|
||||||
// errors = true;
|
// errors = true;
|
||||||
|
|
Loading…
Reference in a new issue