diff DblHist.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/DblHist.c	Mon Feb 13 12:50:42 2012 -0800
     1.2 +++ b/DblHist.c	Mon Feb 13 12:57:42 2012 -0800
     1.3 @@ -28,8 +28,8 @@
     1.4     DblHist *hist;
     1.5     int i;
     1.6  
     1.7 -   hist = VMS_int__malloc( sizeof(DblHist) );
     1.8 -   hist->bins = VMS_int__malloc( numBins * sizeof(int) );
     1.9 +   hist = malloc( sizeof(DblHist) );
    1.10 +   hist->bins = 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_int__free( hist->bins );
    1.19 -   VMS_int__free( hist );
    1.20 +   free( hist->bins );
    1.21 +   free( hist );
    1.22   }