- Fixes to hkl code
- Fixes to make RITA work - tasub extended to calculate UB from cell alone, support for elastic mode - New MultiCounter as abstraction for counting on HM's - regression test driver for counters
This commit is contained in:
15
nxscript.c
15
nxscript.c
@@ -1073,6 +1073,7 @@ int NXScriptAction(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
pNXScript self = (pNXScript)pData;
|
||||
char *pFile = NULL;
|
||||
int status;
|
||||
char buffer[132];
|
||||
|
||||
/*
|
||||
preliminary checks
|
||||
@@ -1136,6 +1137,20 @@ int NXScriptAction(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(strcmp(argv[1],"isalias") == 0) {
|
||||
if(argc < 3) {
|
||||
SCWrite(pCon,"ERROR: need alias to test",eError);
|
||||
return 1;
|
||||
}
|
||||
if(NXDget(self->dictHandle,argv[2],buffer,131) == NX_OK){
|
||||
snprintf(buffer,131,"%s = 1", argv[2]);
|
||||
} else {
|
||||
snprintf(buffer,131,"%s = 0", argv[2]);
|
||||
}
|
||||
SCWrite(pCon,buffer,eValue);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(strcmp(argv[1],"makelink") == 0){
|
||||
makeLink(pCon,pSics,self,argc,argv);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user