- 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:
24
scan.i
24
scan.i
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user