diff Histogram.c @ 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 cd8275f62ee1 4d9af65ad3df
line diff
     1.1 --- a/Histogram.c	Sat Feb 11 19:20:37 2012 -0800
     1.2 +++ b/Histogram.c	Sun Feb 12 01:45:40 2012 -0800
     1.3 @@ -29,14 +29,13 @@
     1.4  
     1.5  Histogram *
     1.6  makeHistogram( int32 numBins, int32 startOfRange, int32 endOfRange )
     1.7 -
     1.8   {
     1.9     Histogram *hist;
    1.10     int32 i;
    1.11  
    1.12  
    1.13 -   hist = VMS__malloc( sizeof(Histogram) );
    1.14 -   hist->bins = VMS__malloc( numBins * sizeof(int32) );
    1.15 +   hist = VMS_int__malloc( sizeof(Histogram) );
    1.16 +   hist->bins = VMS_int__malloc( numBins * sizeof(int32) );
    1.17  
    1.18     hist->numBins      = numBins;
    1.19     hist->binWidth     = (endOfRange - startOfRange) / numBins;
    1.20 @@ -72,10 +71,10 @@
    1.21   {
    1.22     Histogram *hist;
    1.23  
    1.24 -   hist = VMS__malloc( sizeof(Histogram) );
    1.25 -   hist->bins = VMS__malloc( numBins * sizeof(int32) );
    1.26 +   hist = VMS_int__malloc( sizeof(Histogram) );
    1.27 +   hist->bins = VMS_int__malloc( numBins * sizeof(int32) );
    1.28  
    1.29 -   makeHist_helper( hist, numBins, startOfRange, binWidth,VMS__strDup(name));
    1.30 +   makeHist_helper( hist, numBins, startOfRange, binWidth,VMS_int__strDup(name));
    1.31  
    1.32     return hist;
    1.33   }
    1.34 @@ -346,9 +345,9 @@
    1.35  void
    1.36  freeHist( Histogram *hist )
    1.37   {
    1.38 -   VMS__free( hist->bins );
    1.39 -   VMS__free( hist->name );
    1.40 -   VMS__free( hist );
    1.41 +   VMS_int__free( hist->bins );
    1.42 +   VMS_int__free( hist->name );
    1.43 +   VMS_int__free( hist );
    1.44   }
    1.45  void
    1.46  freeHistExt( Histogram *hist )