# HG changeset patch # User Me # Date 1288741641 25200 # Node ID 83a412f2ef98212582dd463ab382d29ca364b1fd # Parent 3d35477a5121973e892ec926566ab46e934d3b01 Added stdio.h and copy-paste error on FreeDblHist to FreeFloatHist diff -r 3d35477a5121 -r 83a412f2ef98 DblHist.c --- a/DblHist.c Sun Oct 31 20:22:29 2010 -0700 +++ b/DblHist.c Tue Nov 02 16:47:21 2010 -0700 @@ -6,6 +6,7 @@ * */ +#include #include "Histogram.h" diff -r 3d35477a5121 -r 83a412f2ef98 FloatHist.c --- a/FloatHist.c Sun Oct 31 20:22:29 2010 -0700 +++ b/FloatHist.c Tue Nov 02 16:47:21 2010 -0700 @@ -5,7 +5,7 @@ * Author: seanhalle@yahoo.com * */ - +#include #include "Histogram.h" /*This Histogram Abstract Data Type has a number of bins, the starting @@ -98,7 +98,7 @@ void -freeDblHist( FloatHist *hist ) +freeFloatHist( FloatHist *hist ) { VMS__free( hist->bins ); VMS__free( hist ); diff -r 3d35477a5121 -r 83a412f2ef98 Histogram.c --- a/Histogram.c Sun Oct 31 20:22:29 2010 -0700 +++ b/Histogram.c Tue Nov 02 16:47:21 2010 -0700 @@ -5,7 +5,7 @@ * Author: seanhalle@yahoo.com * */ - +#include #include "Histogram.h" @@ -74,7 +74,7 @@ } barValue = maxHeight / 60; //60 spaces across page for tallest bin - printf("histogram: \n"); + printf( "histogram: \n" ); if( barValue == 0 ) printf("error printing histogram\n"); for( binIdx = 0; binIdx < hist->numBins; binIdx++ ) {