- Fixed some subtle issues with the GumTree XML generation
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
* Introduced notification on tree changes, Mark Koennecke, November 2006
|
* Introduced notification on tree changes, Mark Koennecke, November 2006
|
||||||
*
|
*
|
||||||
* Added Property functions, Mark Koennecke, January 2007
|
* Added property functions, Mark Koennecke, January 2007
|
||||||
*
|
*
|
||||||
* TODO: separate this into two modules: sicshipadaba proper and sicshipadabaint for the
|
* TODO: separate this into two modules: sicshipadaba proper and sicshipadabaint for the
|
||||||
* interpreter interface.
|
* interpreter interface.
|
||||||
@ -1971,7 +1971,9 @@ static int ListHdbNode(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(pathArg == 2) {
|
||||||
strtolower(argv[1]);
|
strtolower(argv[1]);
|
||||||
|
}
|
||||||
if(strcmp(argv[1],"-val") == 0){
|
if(strcmp(argv[1],"-val") == 0){
|
||||||
listData = formatListWithVal(node);
|
listData = formatListWithVal(node);
|
||||||
} else if(strcmp(argv[1],"-cli") == 0){
|
} else if(strcmp(argv[1],"-cli") == 0){
|
||||||
@ -2288,12 +2290,12 @@ static int GetSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|||||||
}
|
}
|
||||||
targetNode = locateSICSNode(pSics,pCon,argv[1]);
|
targetNode = locateSICSNode(pSics,pCon,argv[1]);
|
||||||
if(targetNode == NULL){
|
if(targetNode == NULL){
|
||||||
SCWrite(pCon,"ERROR: node not found",eError);
|
SCWrite(pCon,"ERROR: node not found",eValue);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
status = GetHdbProperty(targetNode,argv[2],buffer,511);
|
status = GetHdbProperty(targetNode,argv[2],buffer,511);
|
||||||
if(status != 1){
|
if(status != 1){
|
||||||
SCWrite(pCon,"ERROR: attribute not found",eError);
|
SCWrite(pCon,"ERROR: attribute not found",eValue);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SCPrintf(pCon,eValue,"%s.%s = %s", argv[1], argv[2], buffer);
|
SCPrintf(pCon,eValue,"%s.%s = %s", argv[1], argv[2], buffer);
|
||||||
|
Reference in New Issue
Block a user