diff Histogram.c @ 29:5d1597d9b24a

Renamed VMS to PR, in new branch
author Sean Halle <seanhalle@yahoo.com>
date Mon, 03 Sep 2012 15:04:33 -0700
parents 6cee2e00eacb
children 84601ecae690
line diff
     1.1 --- a/Histogram.c	Tue Mar 13 18:31:05 2012 -0700
     1.2 +++ b/Histogram.c	Mon Sep 03 15:04:33 2012 -0700
     1.3 @@ -29,8 +29,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 = PR_int__malloc( sizeof(Histogram) );
    1.10 +   hist->bins = PR_int__malloc( numBins * sizeof(int32) );
    1.11  
    1.12     hist->numBins      = numBins;
    1.13     hist->binWidth     = (endOfRange - startOfRange) / numBins;
    1.14 @@ -66,10 +66,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 = PR_int__malloc( sizeof(Histogram) );
    1.21 +   hist->bins = PR_int__malloc( numBins * sizeof(int32) );
    1.22  
    1.23 -   char *nameCopy = (char *)VMS_int__strDup(name);
    1.24 +   char *nameCopy = (char *)PR_int__strDup(name);
    1.25     makeHist_helper( hist, numBins, startOfRange, binWidth, nameCopy);
    1.26  
    1.27     return hist;
    1.28 @@ -298,9 +298,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 +   PR_int__free( hist->bins );
    1.36 +   PR_int__free( hist->name );
    1.37 +   PR_int__free( hist );
    1.38   }
    1.39  void
    1.40  freeHistExt( Histogram *hist )