From f4103a90318455c69baa93a4bd2bbfed1d4d6a85 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 16 Mar 2012 17:06:56 -0500 Subject: [PATCH] Cleanup: add space between while( Fix syntax style to have a space after while and before (. --- level_0/f_conversion/c/conversion.c | 4 ++-- level_1/fl_fss/c/fss_basic_list.c | 2 +- level_1/fl_fss/c/fss_extended.c | 2 +- level_1/fl_fss/c/fss_macro.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/level_0/f_conversion/c/conversion.c b/level_0/f_conversion/c/conversion.c index e7bec4c..869e257 100644 --- a/level_0/f_conversion/c/conversion.c +++ b/level_0/f_conversion/c/conversion.c @@ -141,7 +141,7 @@ extern "C"{ f_u_long scale = 0; f_u_long temp_digit = 0; - while(current_location < location.stop) { + while (current_location < location.stop) { if (f_character_to_digit(string[current_location], &temp_digit) == f_none) { // when the scale exists, then we need to make the number larger, for this function the scale is base 10 @@ -176,7 +176,7 @@ extern "C"{ f_u_long scale = 0; f_u_long temp_digit = 0; - while(current_location < location.stop) { + while (current_location < location.stop) { if (f_character_to_hexdigit(string[current_location], &temp_digit) == f_none) { // when the scale exists, then we need to make the number larger, for this function the scale is base 16 diff --git a/level_1/fl_fss/c/fss_basic_list.c b/level_1/fl_fss/c/fss_basic_list.c index dfb550e..097ab41 100644 --- a/level_1/fl_fss/c/fss_basic_list.c +++ b/level_1/fl_fss/c/fss_basic_list.c @@ -358,7 +358,7 @@ extern "C"{ fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) if (!isgraph(buffer->string[input->start])) { - while(buffer->string[input->start] != f_eol) { + while (buffer->string[input->start] != f_eol) { ++input->start; if (input->start >= buffer->used) { diff --git a/level_1/fl_fss/c/fss_extended.c b/level_1/fl_fss/c/fss_extended.c index a3b7420..1a87b57 100644 --- a/level_1/fl_fss/c/fss_extended.c +++ b/level_1/fl_fss/c/fss_extended.c @@ -249,7 +249,7 @@ extern "C"{ } // seek to the end of the line - while(input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) { + while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) { ++input->start; } diff --git a/level_1/fl_fss/c/fss_macro.h b/level_1/fl_fss/c/fss_macro.h index 4334976..570d53c 100644 --- a/level_1/fl_fss/c/fss_macro.h +++ b/level_1/fl_fss/c/fss_macro.h @@ -93,7 +93,7 @@ extern "C"{ #ifndef _di_fl_macro_fss_object_seek_till_newline_ #define fl_macro_fss_object_seek_till_newline(buffer, input, eos_status, stop_status) \ - while(buffer.string[input.start] != f_eol) { \ + while (buffer.string[input.start] != f_eol) { \ ++input.start; \ if (input.start >= buffer.used) { \ return eos_status; \ @@ -106,7 +106,7 @@ extern "C"{ #ifndef _di_fl_macro_fss_content_seek_till_newline_ #define fl_macro_fss_content_seek_till_newline(buffer, input, found, eos_status, stop_status) \ - while(buffer.string[input.start] != f_eol) { \ + while (buffer.string[input.start] != f_eol) { \ ++input.start; \ if (input.start >= buffer.used) { \ found.array[found.used].stop = input.stop; \ -- 1.8.3.1