Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
diff FloatHist.c @ 34:8166ea441cb5
changed headers and PR_int__malloc to PR__malloc
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Tue, 23 Jul 2013 07:32:47 -0700 |
| parents | 84601ecae690 |
| children | eb23eeae4198 |
line diff
1.1 --- a/FloatHist.c Mon Jul 22 06:21:53 2013 -0700 1.2 +++ b/FloatHist.c Tue Jul 23 07:32:47 2013 -0700 1.3 @@ -26,8 +26,8 @@ 1.4 FloatHist *hist; 1.5 int i; 1.6 1.7 - hist = PR_int__malloc( sizeof(FloatHist) ); 1.8 - hist->bins = PR_int__malloc( numBins * sizeof(int) ); 1.9 + hist = PR__malloc( sizeof(FloatHist) ); 1.10 + hist->bins = PR__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 - PR_int__free( hist->bins ); 1.19 - PR_int__free( hist ); 1.20 + PR__free( hist->bins ); 1.21 + PR__free( hist ); 1.22 }
