- A couple of small fixes for memory and initialization problems.

This is to make valgrind happy


SKIPPED:
	psi/amorscan.c
	psi/el734hp.c
	psi/psi.c
	psi/tasscan.c
This commit is contained in:
koennecke
2005-01-12 08:42:39 +00:00
parent 5e05be17e0
commit ef1de4589c
35 changed files with 2659 additions and 1203 deletions

View File

@ -1,5 +1,5 @@
#line 359 "interface.w"
#line 365 "interface.w"
/*---------------------------------------------------------------------------
I N T E R F A C E S
@ -42,16 +42,18 @@
} IDrivable, *pIDrivable;
pIDrivable GetDrivableInterface(void *pObject);
int GetDrivablePosition(void *pObject, SConnection *pCon,
float *fPos);
#line 384 "interface.w"
#line 390 "interface.w"
pIDrivable CreateDrivableInterface(void);
/* ------------------------ The countable interface ---------------------*/
#line 177 "interface.w"
#line 183 "interface.w"
typedef struct {
int ID;
@ -68,23 +70,23 @@
pICountable GetCountableInterface(void *pObject);
#line 389 "interface.w"
#line 395 "interface.w"
pICountable CreateCountableInterface(void);
/* ------------------------- The CallBack Interface --------------------*/
#line 230 "interface.w"
#line 236 "interface.w"
typedef void (*KillFuncIT)(void *pData);
typedef int (*SICSCallBack)(int iEvent, void *pEventData,
void *pUserData);
#line 394 "interface.w"
#line 400 "interface.w"
#line 252 "interface.w"
#line 258 "interface.w"
typedef struct __ICallBack *pICallBack;
@ -104,11 +106,11 @@
pICallBack GetCallbackInterface(void *pData);
#line 395 "interface.w"
#line 401 "interface.w"
/*---------------------- The Environment Interface --------------------*/
#line 323 "interface.w"
#line 329 "interface.w"
typedef enum { EVIdle, EVDrive, EVMonitor, EVError } EVMode;
typedef struct {
@ -118,13 +120,13 @@
int (*HandleError)(void *self);
} EVInterface, *pEVInterface;
#line 397 "interface.w"
#line 403 "interface.w"
#line 349 "interface.w"
#line 355 "interface.w"
pEVInterface CreateEVInterface(void);
#line 398 "interface.w"
#line 404 "interface.w"
#endif