- split status.c into status.c and statusfile.c
- improvements for scriptcontext.c
This commit is contained in:
22
conman.c
22
conman.c
@ -67,6 +67,7 @@
|
||||
#include "uubuffer.h"
|
||||
#include "commandlog.h"
|
||||
#include "stptok.h"
|
||||
#include "statusfile.h"
|
||||
#include "sicshipadaba.h"
|
||||
#include "protocol.h"
|
||||
/*
|
||||
@ -1594,7 +1595,6 @@ pDynString SCEndBuffering(SConnection *pCon)
|
||||
/* invoke */
|
||||
self->inUse++;
|
||||
self->eInterrupt = eContinue;
|
||||
self->parameterChange = 0;
|
||||
/*
|
||||
get first word of command
|
||||
*/
|
||||
@ -1603,18 +1603,8 @@ pDynString SCEndBuffering(SConnection *pCon)
|
||||
SCAdvanceContext(self,pBueffel);
|
||||
iRet = InterpExecute(pInter,self,pCommand);
|
||||
SCPopContext(self);
|
||||
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;
|
||||
}
|
||||
@ -2221,11 +2211,7 @@ pDynString SCEndBuffering(SConnection *pCon)
|
||||
/*-----------------------------------------------------------------------*/
|
||||
void SCparChange(SConnection *self)
|
||||
{
|
||||
if(!VerifyConnection(self))
|
||||
{
|
||||
return;
|
||||
}
|
||||
self->parameterChange = 1;
|
||||
StatusFileDirty();
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
int SCActive(SConnection *self)
|
||||
|
Reference in New Issue
Block a user