changeset 16:f4d96eaf374a

updated for VMS name chgs from VMS__malloc to VMS_int__malloc
author Me@portablequad
date Sun, 12 Feb 2012 01:45:40 -0800
parents 32489b8b763c
children 530cf0046063
files DblHist.c FloatHist.c Histogram.c
diffstat 3 files changed, 16 insertions(+), 17 deletions(-) [+]
line diff
     1.1 --- a/DblHist.c	Sat Feb 11 19:20:37 2012 -0800
     1.2 +++ b/DblHist.c	Sun Feb 12 01:45:40 2012 -0800
     1.3 @@ -28,8 +28,8 @@
     1.4     DblHist *hist;
     1.5     int i;
     1.6  
     1.7 -   hist = VMS__malloc( sizeof(DblHist) );
     1.8 -   hist->bins = VMS__malloc( numBins * sizeof(int) );
     1.9 +   hist = VMS_int__malloc( sizeof(DblHist) );
    1.10 +   hist->bins = VMS_int__malloc( numBins * sizeof(int) );
    1.11  
    1.12     hist->numBins      = numBins;
    1.13     hist->binWidth     = binWidth;
    1.14 @@ -102,6 +102,6 @@
    1.15  void
    1.16  freeDblHist( DblHist *hist )
    1.17   {
    1.18 -   VMS__free( hist->bins );
    1.19 -   VMS__free( hist );
    1.20 +   VMS_int__free( hist->bins );
    1.21 +   VMS_int__free( hist );
    1.22   }
     2.1 --- a/FloatHist.c	Sat Feb 11 19:20:37 2012 -0800
     2.2 +++ b/FloatHist.c	Sun Feb 12 01:45:40 2012 -0800
     2.3 @@ -26,8 +26,8 @@
     2.4     FloatHist *hist;
     2.5     int i;
     2.6  
     2.7 -   hist = VMS__malloc( sizeof(FloatHist) );
     2.8 -   hist->bins = VMS__malloc( numBins * sizeof(int) );
     2.9 +   hist = VMS_int__malloc( sizeof(FloatHist) );
    2.10 +   hist->bins = VMS_int__malloc( numBins * sizeof(int) );
    2.11  
    2.12     hist->numBins      = numBins;
    2.13     hist->binWidth     = binWidth;
    2.14 @@ -100,6 +100,6 @@
    2.15  void
    2.16  freeFloatHist( FloatHist *hist )
    2.17   {
    2.18 -   VMS__free( hist->bins );
    2.19 -   VMS__free( hist );
    2.20 +   VMS_int__free( hist->bins );
    2.21 +   VMS_int__free( hist );
    2.22   }
     3.1 --- a/Histogram.c	Sat Feb 11 19:20:37 2012 -0800
     3.2 +++ b/Histogram.c	Sun Feb 12 01:45:40 2012 -0800
     3.3 @@ -29,14 +29,13 @@
     3.4  
     3.5  Histogram *
     3.6  makeHistogram( int32 numBins, int32 startOfRange, int32 endOfRange )
     3.7 -
     3.8   {
     3.9     Histogram *hist;
    3.10     int32 i;
    3.11  
    3.12  
    3.13 -   hist = VMS__malloc( sizeof(Histogram) );
    3.14 -   hist->bins = VMS__malloc( numBins * sizeof(int32) );
    3.15 +   hist = VMS_int__malloc( sizeof(Histogram) );
    3.16 +   hist->bins = VMS_int__malloc( numBins * sizeof(int32) );
    3.17  
    3.18     hist->numBins      = numBins;
    3.19     hist->binWidth     = (endOfRange - startOfRange) / numBins;
    3.20 @@ -72,10 +71,10 @@
    3.21   {
    3.22     Histogram *hist;
    3.23  
    3.24 -   hist = VMS__malloc( sizeof(Histogram) );
    3.25 -   hist->bins = VMS__malloc( numBins * sizeof(int32) );
    3.26 +   hist = VMS_int__malloc( sizeof(Histogram) );
    3.27 +   hist->bins = VMS_int__malloc( numBins * sizeof(int32) );
    3.28  
    3.29 -   makeHist_helper( hist, numBins, startOfRange, binWidth,VMS__strDup(name));
    3.30 +   makeHist_helper( hist, numBins, startOfRange, binWidth,VMS_int__strDup(name));
    3.31  
    3.32     return hist;
    3.33   }
    3.34 @@ -346,9 +345,9 @@
    3.35  void
    3.36  freeHist( Histogram *hist )
    3.37   {
    3.38 -   VMS__free( hist->bins );
    3.39 -   VMS__free( hist->name );
    3.40 -   VMS__free( hist );
    3.41 +   VMS_int__free( hist->bins );
    3.42 +   VMS_int__free( hist->name );
    3.43 +   VMS_int__free( hist );
    3.44   }
    3.45  void
    3.46  freeHistExt( Histogram *hist )