changeset 4:83a412f2ef98 VMS__malloc_brch

Added stdio.h and copy-paste error on FreeDblHist to FreeFloatHist
author Me
date Tue, 02 Nov 2010 16:47:21 -0700
parents 3d35477a5121
children a2388fae93ff
files DblHist.c FloatHist.c Histogram.c
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/DblHist.c	Sun Oct 31 20:22:29 2010 -0700
     1.2 +++ b/DblHist.c	Tue Nov 02 16:47:21 2010 -0700
     1.3 @@ -6,6 +6,7 @@
     1.4   *
     1.5   */
     1.6  
     1.7 +#include <stdio.h>
     1.8  #include "Histogram.h"
     1.9  
    1.10  
     2.1 --- a/FloatHist.c	Sun Oct 31 20:22:29 2010 -0700
     2.2 +++ b/FloatHist.c	Tue Nov 02 16:47:21 2010 -0700
     2.3 @@ -5,7 +5,7 @@
     2.4   * Author: seanhalle@yahoo.com
     2.5   *
     2.6   */
     2.7 -
     2.8 +#include <stdio.h>
     2.9  #include "Histogram.h"
    2.10  
    2.11  /*This Histogram Abstract Data Type has a number of bins, the starting
    2.12 @@ -98,7 +98,7 @@
    2.13  
    2.14  
    2.15  void
    2.16 -freeDblHist( FloatHist *hist )
    2.17 +freeFloatHist( FloatHist *hist )
    2.18   {
    2.19     VMS__free( hist->bins );
    2.20     VMS__free( hist );
     3.1 --- a/Histogram.c	Sun Oct 31 20:22:29 2010 -0700
     3.2 +++ b/Histogram.c	Tue Nov 02 16:47:21 2010 -0700
     3.3 @@ -5,7 +5,7 @@
     3.4   * Author: seanhalle@yahoo.com
     3.5   *
     3.6   */
     3.7 -
     3.8 +#include <stdio.h>
     3.9  #include "Histogram.h"
    3.10  
    3.11  
    3.12 @@ -74,7 +74,7 @@
    3.13      }
    3.14     barValue = maxHeight / 60;  //60 spaces across page for tallest bin
    3.15  
    3.16 -   printf("histogram: \n");
    3.17 +   printf( "histogram: \n" );
    3.18     if( barValue == 0 ) printf("error printing histogram\n");
    3.19     for( binIdx = 0; binIdx < hist->numBins; binIdx++ )
    3.20      {