From 2c9ccb0bfdffcafe41f500961a5183d5040aff0d Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 16 Mar 2012 17:05:17 -0500 Subject: [PATCH] Cleanup: put space between do{ Fix the syntax style to have a space between do and {. --- level_1/fl_file/c/file.c | 2 +- level_1/fl_fss/c/fss_basic.c | 6 +++--- level_1/fl_fss/c/fss_basic_list.c | 10 +++++----- level_1/fl_fss/c/fss_extended.c | 12 ++++++------ 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/level_1/fl_file/c/file.c b/level_1/fl_file/c/file.c index 6516198..c821654 100644 --- a/level_1/fl_file/c/file.c +++ b/level_1/fl_file/c/file.c @@ -35,7 +35,7 @@ extern "C"{ } // populate the buffer - do{ + do { if (buffer->size <= size) { f_resize_dynamic_string(status, (*buffer), size); diff --git a/level_1/fl_fss/c/fss_basic.c b/level_1/fl_fss/c/fss_basic.c index bb51c7d..d89e5c3 100644 --- a/level_1/fl_fss/c/fss_basic.c +++ b/level_1/fl_fss/c/fss_basic.c @@ -66,7 +66,7 @@ extern "C"{ quoted = buffer->string[input->start]; input->start++; } else if (buffer->string[input->start] == f_fss_delimit_slash) { - do{ + do { ++input->start; fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) @@ -117,7 +117,7 @@ extern "C"{ // a dynamically populated location of all delimits to apply f_string_lengths delimits = f_string_lengths_initialize; - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) @@ -284,7 +284,7 @@ extern "C"{ found->array[found->used].start = input->start; // search for valid content - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) diff --git a/level_1/fl_fss/c/fss_basic_list.c b/level_1/fl_fss/c/fss_basic_list.c index 58bc03c..dfb550e 100644 --- a/level_1/fl_fss/c/fss_basic_list.c +++ b/level_1/fl_fss/c/fss_basic_list.c @@ -104,7 +104,7 @@ extern "C"{ // identify where the object ends if (quoted == f_eos) { - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), f_error_on_eos, f_error_on_stop) @@ -190,7 +190,7 @@ extern "C"{ f_string_length quote_location = f_string_length_initialize; // the quote must end before the opener begins, in this case the colon ':', so a quoted object would look like: "quoted object":\n - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), f_error_on_eos, f_error_on_stop) @@ -270,7 +270,7 @@ extern "C"{ f_string_length quote_delimit = f_string_length_initialize; // search until stop point, end of string, or until a valid basic list object is found - do{ + do { if (has_quote_delimit) { has_quote_delimit = f_false; } @@ -353,7 +353,7 @@ extern "C"{ // identify where the potential object ends if (quoted == f_eos) { - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) @@ -491,7 +491,7 @@ extern "C"{ } while (f_true); } else { // the quote must end before the opener begins, in this case the colon ':', so a quoted object would look like: "quoted object":\n - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_unterminated_group_on_eos, f_unterminated_group_on_stop) diff --git a/level_1/fl_fss/c/fss_extended.c b/level_1/fl_fss/c/fss_extended.c index 81dcc49..a3b7420 100644 --- a/level_1/fl_fss/c/fss_extended.c +++ b/level_1/fl_fss/c/fss_extended.c @@ -66,7 +66,7 @@ extern "C"{ quoted = buffer->string[input->start]; input->start++; } else if (buffer->string[input->start] == f_fss_delimit_slash) { - do{ + do { ++input->start; fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) @@ -117,7 +117,7 @@ extern "C"{ // a dynamically populated location of all delimits to apply f_string_lengths delimits = f_string_lengths_initialize; - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) @@ -290,13 +290,13 @@ extern "C"{ found->array[found->used].start = input->start; // this inner loop should read until whitespace is found then mark the end of a specific content field - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) // handle delimited quotes, single quotes, and double quotes if (buffer->string[input->start] == f_fss_delimit_slash) { - do{ + do { f_string_length first_slash = input->start; ++input->start; @@ -348,7 +348,7 @@ extern "C"{ // when quoted is null, then spaces will end the content, otherwise the quote defined in quoted will end the content (or a newline) if (quoted == f_eos) { - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) @@ -365,7 +365,7 @@ extern "C"{ ++input->start; } while (f_true); } else { - do{ + do { fl_macro_fss_skip_past_delimit_placeholders((*buffer), (*input)) fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), f_none_on_eos, f_none_on_stop) -- 1.8.3.1