From 0a0699aba70c04e3e6c5847b47cee75025e96255 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 15 Nov 2008 05:23:15 +0000 Subject: Use stdbool.h, bool, true, false instead of manually defining git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@60 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- huffman.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'huffman.c') diff --git a/huffman.c b/huffman.c index 4ef7259..e9b1e0d 100644 --- a/huffman.c +++ b/huffman.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -71,7 +72,7 @@ DoHuffman(void) char* plaintext = NULL; clock_t total_time = 0; int iterations = 0; - static int is_adjusted = FALSE; + static bool is_adjusted = false; static int loops = 100; /* @@ -132,8 +133,8 @@ DoHuffman(void) /* ** See if we need to perform self adjustment loop. */ - if (is_adjusted == FALSE) { - is_adjusted = TRUE; + if (is_adjusted == false) { + is_adjusted = true; /* ** Do self-adjustment. This involves initializing the ** # of loops and increasing the loop count until we -- cgit v1.2.3