- 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

24
scan.i
View File

@@ -6,16 +6,9 @@
Mark Koennecke, October 1997
----------------------------------------------------------------------------*/
#include "sdynar.h"
#include "scanvar.h"
#include "stringdict.h"
typedef struct {
char Name[132];
pIDrivable pInter;
pDummy pObject;
float fStart;
float fStep;
float *fData;
int dataList;
}VarEntry, *pVarEntry;
/*--------------------------------------------------------------------------*/
typedef struct {
int i;
@@ -28,6 +21,7 @@
pObjectDescriptor pDes;
pICallBack pCall;
pDynar pScanVar;
char objectName[132];
int iScanVar;
int iNP;
int iMode;
@@ -50,6 +44,7 @@
int (*CollectScanData)
(pScanData self,
int iP);
pStringDict scanFunctions;
long lPos;
int posSoft;
void *pCounterData;
@@ -63,3 +58,14 @@
void *pSpecial;
} ScanData;
/*
internal helper functions for scan implementations
*/
/*
CollectCounterData collects all the data from the configured counter
ans stows it away
*/
CountEntry CollectCounterData(pScanData self);
void InitCountEntry(pCountEntry pCount);