- Fixed a couple of small things with the TAS code
- Fixed new AMOR settings module - Initial implementation of the new SICS hierarchical parameter database SKIPPED: psi/amorset.c psi/libpsi.a psi/sps.c
This commit is contained in:
37
sicvar.c
37
sicvar.c
@@ -136,14 +136,7 @@
|
||||
"float",
|
||||
NULL
|
||||
};
|
||||
static char *cAccess[] = {
|
||||
"internal",
|
||||
"mugger",
|
||||
"user",
|
||||
"spy",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
int VarFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[])
|
||||
{
|
||||
@@ -196,30 +189,8 @@
|
||||
}
|
||||
|
||||
/* argv[3] must be the access code, check that now */
|
||||
i = 0;
|
||||
while(cAccess[i] != NULL)
|
||||
{
|
||||
if(strcmp(argv[3],cAccess[i]) == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
switch(i)
|
||||
{
|
||||
case 0:
|
||||
iCode = usInternal;
|
||||
break;
|
||||
case 1:
|
||||
iCode = usMugger;
|
||||
break;
|
||||
case 2:
|
||||
iCode = usUser;
|
||||
break;
|
||||
case 3:
|
||||
iCode = usSpy;
|
||||
break;
|
||||
default:
|
||||
i = decodeSICSPriv(argv[3]);
|
||||
if(i < 0){
|
||||
sprintf(pBueffel," %s access code %s not recognized",
|
||||
argv[1], argv[3]);
|
||||
SCWrite(pCon,pBueffel,eError);
|
||||
@@ -227,7 +198,7 @@
|
||||
}
|
||||
|
||||
/* now we can actually install the variable */
|
||||
pRes = VarCreate(iCode,eType,argv[1]);
|
||||
pRes = VarCreate(i,eType,argv[1]);
|
||||
if(!pRes)
|
||||
{
|
||||
sprintf(pBueffel,"Memory Error creating variable %s", argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user