This is the first version of the newly refactored status code handling.
Status codes are now determined by a special task which inspects SICS for what is going on. Before this was a global variable which caused conflicts when multiple instances in the code tried to set it.
This commit is contained in:
11
exeman.c
11
exeman.c
@ -224,7 +224,16 @@ pDynString findBatchFile(SicsInterp * pSics, char *name)
|
||||
}
|
||||
return locateBatchBuffer(self, name);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------*/
|
||||
int isBatchRunning()
|
||||
{
|
||||
pExeMan self = (pExeMan) FindCommandData(pServ->pSics, "exe", "ExeManager");
|
||||
if(self != NULL && self->exeStackPtr > 0){
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*--------------------------------------------------------------------*/
|
||||
static int runBatchBuffer(pExeMan self, SConnection * pCon,
|
||||
SicsInterp * pSics, char *name)
|
||||
|
Reference in New Issue
Block a user