First commit towards replacing pCon-> with someFunc(pCon)
This is accompanied with the removal of dead code in conman.c and else
This commit is contained in:
4
exebuf.c
4
exebuf.c
@@ -304,7 +304,7 @@ int exeBufProcess(pExeBuf self, SicsInterp * pSics,
|
||||
Log(INFO,"com","%s:batch:%s", ConID(pCon), cmd);
|
||||
status = Tcl_Eval(pTcl, cmd);
|
||||
if (status != TCL_OK) {
|
||||
if (pCon->sicsError == 0) {
|
||||
if (SCGetSicsError(pCon) == 0) {
|
||||
/*
|
||||
Tcl Error
|
||||
*/
|
||||
@@ -314,7 +314,7 @@ int exeBufProcess(pExeBuf self, SicsInterp * pSics,
|
||||
}
|
||||
} else {
|
||||
SCWrite(pCon, pTcl->result, eError);
|
||||
pCon->sicsError = 0;
|
||||
SCSetSicsError(pCon,0);
|
||||
}
|
||||
SCWrite(pCon, "ERROR: above error was in block:", eError);
|
||||
SCWrite(pCon, cmd, eError);
|
||||
|
||||
Reference in New Issue
Block a user