comparison FloatHist.c @ 27:75df4e468930

rearrange to work with autoconf
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Tue, 25 Sep 2012 16:04:31 +0200
parents 32489b8b763c
children cd8275f62ee1 5d1597d9b24a
comparison
equal deleted inserted replaced
5:e7462a8a2fc6 6:d4e8197ce4f9
24 makeFloatHistogram( int32 numBins, float32 startOfRange, float32 binWidth ) 24 makeFloatHistogram( int32 numBins, float32 startOfRange, float32 binWidth )
25 { 25 {
26 FloatHist *hist; 26 FloatHist *hist;
27 int i; 27 int i;
28 28
29 hist = VMS__malloc( sizeof(FloatHist) ); 29 hist = VMS_int__malloc( sizeof(FloatHist) );
30 hist->bins = VMS__malloc( numBins * sizeof(int) ); 30 hist->bins = VMS_int__malloc( numBins * sizeof(int) );
31 31
32 hist->numBins = numBins; 32 hist->numBins = numBins;
33 hist->binWidth = binWidth; 33 hist->binWidth = binWidth;
34 hist->endOfRange = startOfRange + hist->binWidth * numBins; 34 hist->endOfRange = startOfRange + hist->binWidth * numBins;
35 hist->startOfRange = startOfRange; 35 hist->startOfRange = startOfRange;
98 98
99 99
100 void 100 void
101 freeFloatHist( FloatHist *hist ) 101 freeFloatHist( FloatHist *hist )
102 { 102 {
103 VMS__free( hist->bins ); 103 VMS_int__free( hist->bins );
104 VMS__free( hist ); 104 VMS_int__free( hist );
105 } 105 }