From 5996244233fdad7b1d577823cc3fa21dc9078e4a Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 16 Mar 2012 17:02:26 -0500 Subject: [PATCH] Cleanup: put a space between switch( Fix syntax style mistake where switch( did not have a space after switch and before (. --- level_0/f_conversion/c/conversion.c | 8 ++++---- level_1/fl_errors/c/errors.c | 6 +++--- level_2/fll_fss/c/fss_errors.c | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/level_0/f_conversion/c/conversion.c b/level_0/f_conversion/c/conversion.c index 9ac93b5..e7bec4c 100644 --- a/level_0/f_conversion/c/conversion.c +++ b/level_0/f_conversion/c/conversion.c @@ -14,7 +14,7 @@ extern "C"{ f_return_status f_is_digit(const f_autochar character) { // at this point, it seems that it would incur more overhead to use the libc isdigit here, so just use one less call and test it here - switch(character) { + switch (character) { case '0': case '1': case '2': @@ -36,7 +36,7 @@ extern "C"{ #ifndef _di_f_is_hexdigit_ f_return_status f_is_hexdigit(const f_autochar character) { - switch(character) { + switch (character) { case '0': case '1': case '2': @@ -72,7 +72,7 @@ extern "C"{ if (digit == f_null) return f_invalid_parameter; #endif // _di_level_0_parameter_checking_ - switch(character) { + switch (character) { case '0': *digit = 0; break; case '1': *digit = 1; break; case '2': *digit = 2; break; @@ -97,7 +97,7 @@ extern "C"{ if (digit == f_null) return f_invalid_parameter; #endif // _di_level_0_parameter_checking_ - switch(character) { + switch (character) { case '0': *digit = 0; break; case '1': *digit = 1; break; case '2': *digit = 2; break; diff --git a/level_1/fl_errors/c/errors.c b/level_1/fl_errors/c/errors.c index f61d410..37d9fec 100644 --- a/level_1/fl_errors/c/errors.c +++ b/level_1/fl_errors/c/errors.c @@ -19,7 +19,7 @@ extern "C"{ if (string == f_null) return f_invalid_parameter; #endif // _di_level_1_parameter_checking_ - switch(error) { + switch (error) { #ifndef _di_fl_errors_booleans_ case f_false: *string = "f_false"; @@ -308,7 +308,7 @@ extern "C"{ #ifndef _di_fl_errors_is_warning_ f_return_status fl_errors_is_warning(const f_status error) { - switch(error) { + switch (error) { #ifndef _di_fl_errors_basic_ case f_no_data: return f_true; @@ -341,7 +341,7 @@ extern "C"{ // Returns true or false depending on whether the standard context of the error code represents an normal return status and not an error. // Keep in mind that many of the error codes are context-specific and may be reported as an "okay" here when it is in fact not okay. f_return_status fl_errors_is_okay(const f_status error) { - switch(error) { + switch (error) { #ifndef _di_fl_errors_booleans_ case f_false: return f_true; diff --git a/level_2/fll_fss/c/fss_errors.c b/level_2/fll_fss/c/fss_errors.c index 696d79d..1c66e7f 100644 --- a/level_2/fll_fss/c/fss_errors.c +++ b/level_2/fll_fss/c/fss_errors.c @@ -16,7 +16,7 @@ extern "C"{ if (string == f_null) return f_invalid_parameter; #endif // _di_level_2_parameter_checking_ - switch(error) { + switch (error) { #ifndef _di_fll_fss_errors_error_ case fl_fss_invalid_format: *string = "fl_fss_invalid_format"; @@ -80,7 +80,7 @@ extern "C"{ #ifndef _di_fll_fss_errors_is_warning_ f_return_status fll_fss_errors_is_warning(const f_status error) { - switch(error) { + switch (error) { #ifndef _di_fll_fss_errors_basic_ case f_no_data: return f_true; @@ -111,7 +111,7 @@ extern "C"{ #ifndef _di_fll_fss_errors_is_okay_ f_return_status fll_fss_errors_is_okay(const f_status error) { - switch(error) { + switch (error) { #ifndef _di_fll_fss_errors_booleans_ case f_false: return f_true; -- 1.8.3.1