diff DblHist.c @ 14:1fbaedaac2c7

made defualt brch pure C (no VMS__malloc..)
author Me@portablequad
date Sat, 11 Feb 2012 19:19:06 -0800
parents 060d63cb5d34
children 32489b8b763c
line diff
     1.1 --- a/DblHist.c	Thu Feb 09 15:53:03 2012 +0100
     1.2 +++ b/DblHist.c	Sat Feb 11 19:19:06 2012 -0800
     1.3 @@ -8,7 +8,6 @@
     1.4  
     1.5  #include <stdio.h>
     1.6  #include "Histogram.h"
     1.7 -#include "../vmalloc.h"
     1.8  
     1.9  
    1.10  /*This Histogram Abstract Data Type has a number of bins, the starting
    1.11 @@ -29,8 +28,8 @@
    1.12     DblHist *hist;
    1.13     int i;
    1.14  
    1.15 -   hist = VMS__malloc( sizeof(DblHist) );
    1.16 -   hist->bins = VMS__malloc( numBins * sizeof(int) );
    1.17 +   hist = malloc( sizeof(DblHist) );
    1.18 +   hist->bins = malloc( numBins * sizeof(int) );
    1.19  
    1.20     hist->numBins      = numBins;
    1.21     hist->binWidth     = binWidth;
    1.22 @@ -103,6 +102,6 @@
    1.23  void
    1.24  freeDblHist( DblHist *hist )
    1.25   {
    1.26 -   VMS__free( hist->bins );
    1.27 -   VMS__free( hist );
    1.28 +   free( hist->bins );
    1.29 +   free( hist );
    1.30   }