Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
diff Histogram.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/Histogram.c Mon Feb 13 12:50:42 2012 -0800 1.2 +++ b/Histogram.c Mon Feb 13 12:57:42 2012 -0800 1.3 @@ -34,8 +34,8 @@ 1.4 int32 i; 1.5 1.6 1.7 - hist = VMS_int__malloc( sizeof(Histogram) ); 1.8 - hist->bins = VMS_int__malloc( numBins * sizeof(int32) ); 1.9 + hist = malloc( sizeof(Histogram) ); 1.10 + hist->bins = malloc( numBins * sizeof(int32) ); 1.11 1.12 hist->numBins = numBins; 1.13 hist->binWidth = (endOfRange - startOfRange) / numBins; 1.14 @@ -71,10 +71,10 @@ 1.15 { 1.16 Histogram *hist; 1.17 1.18 - hist = VMS_int__malloc( sizeof(Histogram) ); 1.19 - hist->bins = VMS_int__malloc( numBins * sizeof(int32) ); 1.20 + hist = malloc( sizeof(Histogram) ); 1.21 + hist->bins = malloc( numBins * sizeof(int32) ); 1.22 1.23 - makeHist_helper( hist, numBins, startOfRange, binWidth,VMS_int__strDup(name)); 1.24 + makeHist_helper( hist, numBins, startOfRange, binWidth,strDup(name)); 1.25 1.26 return hist; 1.27 } 1.28 @@ -345,9 +345,9 @@ 1.29 void 1.30 freeHist( Histogram *hist ) 1.31 { 1.32 - VMS_int__free( hist->bins ); 1.33 - VMS_int__free( hist->name ); 1.34 - VMS_int__free( hist ); 1.35 + free( hist->bins ); 1.36 + free( hist->name ); 1.37 + free( hist ); 1.38 } 1.39 void 1.40 freeHistExt( Histogram *hist )
