- split status.c into status.c and statusfile.c
- improvements for scriptcontext.c
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <lld.h>
|
||||
#include <stptok.h>
|
||||
#include "protocol.h"
|
||||
#include "statusfile.h"
|
||||
#include <splitter.h>
|
||||
#include "sicsobj.h"
|
||||
|
||||
@@ -2592,23 +2593,13 @@ static int ChainHdbNode(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
/* invoke */
|
||||
self->inUse++;
|
||||
self->eInterrupt = eContinue;
|
||||
self->parameterChange = 0;
|
||||
/*
|
||||
get first word of command
|
||||
*/
|
||||
iRet = InterpExecute(pInter,self,pCommand);
|
||||
if(self->parameterChange == 1)
|
||||
{
|
||||
/*
|
||||
automatically save changed parameters
|
||||
*/
|
||||
pFile = IFindOption(pSICSOptions,"statusfile");
|
||||
if(pFile != NULL)
|
||||
{
|
||||
WriteSicsStatus(pInter,pFile,0);
|
||||
self->parameterChange = 0;
|
||||
}
|
||||
}
|
||||
|
||||
StatusFileTask(NULL); /* save changed parameters */
|
||||
|
||||
self->inUse--;
|
||||
return iRet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user