From 5f0f1ef61019287139bf8c16ba144adeaa9b90bb Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 11 Nov 2019 22:30:12 -0600 Subject: [PATCH] Bugfix: "true" is now a reserved type, so replace variable names of "true" with "is_true" --- level_3/fss_status_code/c/fss_status_code.c | 18 +++++++++--------- level_3/status_code/c/status_code.c | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) 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 { -- 1.8.3.1