- unified the 2 script context commands
- minor changes in hipadaba and ascon/devser
This commit is contained in:
@@ -2932,6 +2932,7 @@ static int SetSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[]){
|
||||
pHdb targetNode = NULL;
|
||||
char buffer[512];
|
||||
char *val;
|
||||
|
||||
if(argc < 4) {
|
||||
SCWrite(pCon,"ERROR: need path key value as parameters",eError);
|
||||
@@ -2942,8 +2943,11 @@ static int SetSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
SCWrite(pCon,"ERROR: node not found",eError);
|
||||
return 0;
|
||||
}
|
||||
Arg2Tcl(argc-3, &argv[3], buffer,512);
|
||||
SetHdbProperty(targetNode,argv[2], buffer);
|
||||
val = Arg2Tcl(argc-3, &argv[3], buffer, sizeof buffer);
|
||||
if (val) {
|
||||
SetHdbProperty(targetNode,argv[2], val);
|
||||
if (val != buffer) free(val);
|
||||
}
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user