- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
47
evdriver.c
47
evdriver.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user