- Adapted indenation to new agreed upon system

- Added support for second generation scriptcontext based counter
This commit is contained in:
koennecke
2009-02-13 09:00:03 +00:00
parent a3dcad2bfa
commit 91d4af0541
405 changed files with 88101 additions and 88173 deletions

View File

@@ -45,28 +45,27 @@
#include "evdriver.h"
/*------------------------------------------------------------------------*/
pEVDriver CreateEVDriver(int argc, char *argv[])
{
pEVDriver pNew = NULL;
pNew = (pEVDriver)malloc(sizeof(EVDriver));
if(!pNew)
{
return NULL;
}
memset(pNew,0,sizeof(EVDriver));
pNew->GetValues = NULL; /* method will be replaced by default when NULL */
pNew->SavePars = NULL; /* no save by default */
return pNew;
}
pEVDriver CreateEVDriver(int argc, char *argv[])
{
pEVDriver pNew = NULL;
pNew = (pEVDriver) malloc(sizeof(EVDriver));
if (!pNew) {
return NULL;
}
memset(pNew, 0, sizeof(EVDriver));
pNew->GetValues = NULL; /* method will be replaced by default when NULL */
pNew->SavePars = NULL; /* no save by default */
return pNew;
}
/*-------------------------------------------------------------------------*/
void DeleteEVDriver(pEVDriver self)
{
assert(self);
if(self->KillPrivate)
{
self->KillPrivate(self->pPrivate);
}
free(self);
}
void DeleteEVDriver(pEVDriver self)
{
assert(self);
if (self->KillPrivate) {
self->KillPrivate(self->pPrivate);
}
free(self);
}