From: Kevin Day Date: Tue, 12 Nov 2019 04:30:12 +0000 (-0600) Subject: Bugfix: "true" is now a reserved type, so replace variable names of "true" with ... X-Git-Tag: 0.5.0~396 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=5f0f1ef61019287139bf8c16ba144adeaa9b90bb;p=fll Bugfix: "true" is now a reserved type, so replace variable names of "true" with "is_true" --- diff --git a/level_3/fss_status_code/c/fss_status_code.c b/level_3/fss_status_code/c/fss_status_code.c index 5019924..a010581 100644 --- a/level_3/fss_status_code/c/fss_status_code.c +++ b/level_3/fss_status_code/c/fss_status_code.c @@ -58,7 +58,7 @@ extern "C" { f_array_length counter = 0; f_status code = f_none; - unsigned int true = 0; + unsigned int is_true = 0; for (; counter < data->remaining.used; counter++) { // only numbers are valid status codes. @@ -74,13 +74,13 @@ extern "C" { } code = (f_status) number; - true = f_status_is_error(code) && !f_status_is_warning(code); + is_true = f_status_is_error(code) && !f_status_is_warning(code); if (status == f_none) { status = f_true; } - if (true) { + if (is_true) { printf("%s\n", fl_status_string_true); } else { @@ -97,7 +97,7 @@ extern "C" { f_array_length counter = 0; f_status code = f_none; - unsigned int true = 0; + unsigned int is_true = 0; for (; counter < data->remaining.used; counter++) { // only numbers are valid status codes. @@ -113,13 +113,13 @@ extern "C" { } code = (f_status) number; - true = f_status_is_warning(code) && !f_status_is_error(code); + is_true = f_status_is_warning(code) && !f_status_is_error(code); if (status == f_none) { status = f_true; } - if (true) { + if (is_true) { printf("%s\n", fl_status_string_true); } else { @@ -136,7 +136,7 @@ extern "C" { f_array_length counter = 0; f_status code = f_none; - unsigned int true = 0; + unsigned int is_true = 0; for (; counter < data->remaining.used; counter++) { // only numbers are valid status codes. @@ -152,13 +152,13 @@ extern "C" { } code = (f_status) number; - true = f_status_is_fine(code); + is_true = f_status_is_fine(code); if (status == f_none) { status = f_true; } - if (true) { + if (is_true) { printf("%s\n", fl_status_string_true); } else { diff --git a/level_3/status_code/c/status_code.c b/level_3/status_code/c/status_code.c index 410e589..081a22a 100644 --- a/level_3/status_code/c/status_code.c +++ b/level_3/status_code/c/status_code.c @@ -58,7 +58,7 @@ extern "C" { f_array_length counter = 0; f_status code = f_none; - unsigned short true = 0; + unsigned short is_true = 0; for (; counter < data->remaining.used; counter++) { // only numbers are valid status codes. @@ -74,13 +74,13 @@ extern "C" { } code = (f_status) number; - true = f_status_is_error(code) && !f_status_is_warning(code); + is_true = f_status_is_error(code) && !f_status_is_warning(code); if (status == f_none) { status = f_true; } - if (true) { + if (is_true) { printf("%s\n", fl_status_string_true); } else { @@ -97,7 +97,7 @@ extern "C" { f_array_length counter = 0; f_status code = f_none; - unsigned short true = 0; + unsigned short is_true = 0; for (; counter < data->remaining.used; counter++) { // only numbers are valid status codes. @@ -113,13 +113,13 @@ extern "C" { } code = (f_status) number; - true = f_status_is_warning(code) && !f_status_is_error(code); + is_true = f_status_is_warning(code) && !f_status_is_error(code); if (status == f_none) { status = f_true; } - if (true) { + if (is_true) { printf("%s\n", fl_status_string_true); } else { @@ -136,7 +136,7 @@ extern "C" { f_array_length counter = 0; f_status code = f_none; - unsigned short true = 0; + unsigned short is_true = 0; for (; counter < data->remaining.used; counter++) { // only numbers are valid status codes. @@ -152,13 +152,13 @@ extern "C" { } code = (f_status) number; - true = f_status_is_fine(code); + is_true = f_status_is_fine(code); if (status == f_none) { status = f_true; } - if (true) { + if (is_true) { printf("%s\n", fl_status_string_true); } else {