- Many fixes to the new scriptcontext to make it work

This commit is contained in:
koennecke
2008-06-18 14:08:25 +00:00
parent ed304fb5f1
commit 45ac6c526f
12 changed files with 74 additions and 13 deletions

View File

@@ -31,6 +31,7 @@
#include "statusfile.h"
#include <splitter.h>
#include "sicsobj.h"
#include <macro.h>
#define MAX_HDB_PATH 1024
@@ -691,8 +692,14 @@ static hdbCallbackReturn SICSScriptReadCallback(pHdb node, void *userData,
/*
* evaluate
*/
if(pCon != NULL){
MacroPush(pCon);
}
status = Tcl_Eval(InterpGetTcl(pServ->pSics),command);
if(status != TCL_OK){
if(pCon != NULL){
MacroPop();
}
if(status != TCL_OK){
snprintf(error,1023,"ERROR: Tcl returned error: %s",
Tcl_GetStringResult(InterpGetTcl(pServ->pSics)));
if(pCon != NULL){