Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
diff FloatHist.c @ 20:cd8275f62ee1
added pure C brch
| author | Me@portablequad |
|---|---|
| date | Mon, 13 Feb 2012 12:57:42 -0800 |
| parents | f4d96eaf374a |
| children |
line diff
1.1 --- a/FloatHist.c Mon Feb 13 12:50:42 2012 -0800 1.2 +++ b/FloatHist.c Mon Feb 13 12:57:42 2012 -0800 1.3 @@ -26,8 +26,8 @@ 1.4 FloatHist *hist; 1.5 int i; 1.6 1.7 - hist = VMS_int__malloc( sizeof(FloatHist) ); 1.8 - hist->bins = VMS_int__malloc( numBins * sizeof(int) ); 1.9 + hist = malloc( sizeof(FloatHist) ); 1.10 + hist->bins = malloc( numBins * sizeof(int) ); 1.11 1.12 hist->numBins = numBins; 1.13 hist->binWidth = binWidth; 1.14 @@ -100,6 +100,6 @@ 1.15 void 1.16 freeFloatHist( FloatHist *hist ) 1.17 { 1.18 - VMS_int__free( hist->bins ); 1.19 - VMS_int__free( hist ); 1.20 + free( hist->bins ); 1.21 + free( hist ); 1.22 }
