PSI sics-cvs-psi-complete-tree-post-site-support

This commit is contained in:
2004-03-09 15:18:11 +00:00
committed by Douglas Clowes
parent 6373f6b0fb
commit ae77364de2
196 changed files with 8344 additions and 3485 deletions

View File

@@ -255,6 +255,11 @@ static int SimSetPar(void *self, SConnection *pCon, char *name, float newValue)
}
return 0;
}
/*---------------------------------------------------------------------------*/
void KillSIM(void *pData)
{
return;
}
/*--------------------------------------------------------------------------*/
MotorDriver *CreateSIM(SConnection *pCon, int argc, char *argv[])
{
@@ -356,6 +361,7 @@ static int SimSetPar(void *self, SConnection *pCon, char *name, float newValue)
pDriv->Halt = SimHalt;
pDriv->fSpeed = .01;
pDriv->iTime = 0;
pDriv->KillPrivate = KillSIM;
/* check for optional speed paramter */
pCurrent = pCurrent->pNext;
@@ -369,17 +375,6 @@ static int SimSetPar(void *self, SConnection *pCon, char *name, float newValue)
DeleteTokenList(pList);
return (MotorDriver *)pDriv;
}
/*---------------------------------------------------------------------------*/
void KillSIM(void *pData)
{
SIMDriv *pDriv;
assert(pData);
pDriv = (SIMDriv *)pData;
if(pDriv->name)
free(pDriv->name);
free(pDriv);
}