From: Kevin Day Date: Mon, 7 Dec 2020 04:37:32 +0000 (-0600) Subject: Cleanup: replace 'file' with replacement character '%s'. X-Git-Tag: 0.5.2~35 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=13f3bedf5018befabc205b69374c77d91d0ce9d6;p=fll Cleanup: replace 'file' with replacement character '%s'. --- diff --git a/level_2/fll_error/c/error.c b/level_2/fll_error/c/error.c index 6aeadf4..6dcf4c9 100644 --- a/level_2/fll_error/c/error.c +++ b/level_2/fll_error/c/error.c @@ -111,7 +111,7 @@ extern "C" { } if (status == F_file_open) { - fprintf(error.to.stream, "%s%sUnable to open the file '", error.context.before->string, error.prefix ? error.prefix : ""); + fprintf(error.to.stream, "%s%sUnable to open the %s '", error.context.before->string, error.prefix ? error.prefix : "", type_name); fprintf(error.to.stream, "%s%s%s%s", error.context.after->string, error.notable.before->string, name, error.notable.after->string); fprintf(error.to.stream, "%s'.%s%c", error.context.before->string, error.context.after->string, f_string_eol[0]); @@ -119,7 +119,7 @@ extern "C" { } if (status == F_file_descriptor) { - fprintf(error.to.stream, "%s%sFile descriptor error while trying to open the file '", error.context.before->string, error.prefix ? error.prefix : ""); + fprintf(error.to.stream, "%s%sFile descriptor error while trying to open the %s '", error.context.before->string, error.prefix ? error.prefix : "", type_name); fprintf(error.to.stream, "%s%s%s%s", error.context.after->string, error.notable.before->string, name, error.notable.after->string); fprintf(error.to.stream, "%c", f_string_eol[0]); @@ -127,7 +127,7 @@ extern "C" { } if (status == F_number_underflow) { - fprintf(error.to.stream, "%s%sInteger underflow while trying to buffer the file '", error.context.before->string, error.prefix ? error.prefix : ""); + fprintf(error.to.stream, "%s%sInteger underflow while trying to buffer the %s '", error.context.before->string, error.prefix ? error.prefix : "", type_name); fprintf(error.to.stream, "%s%s%s%s", error.context.after->string, error.notable.before->string, name, error.notable.after->string); fprintf(error.to.stream, "%s'.%s%c", error.context.before->string, error.context.after->string, f_string_eol[0]); @@ -137,7 +137,7 @@ extern "C" { if (status == F_file_read) { if (error.verbosity != f_console_verbosity_quiet) { fprintf(error.to.stream, "%c", f_string_eol[0]); - fprintf(error.to.stream, "%s%sA read error occurred while accessing the file '", error.context.before->string, error.prefix ? error.prefix : ""); + fprintf(error.to.stream, "%s%sA read error occurred while accessing the %s '", error.context.before->string, error.prefix ? error.prefix : "", type_name); fprintf(error.to.stream, "%s%s%s%s", error.context.after->string, error.notable.before->string, name, error.notable.after->string); fprintf(error.to.stream, "%s'.%s%c", error.context.before->string, error.context.after->string, f_string_eol[0]); } @@ -148,7 +148,7 @@ extern "C" { if (status == F_file_seek) { if (error.verbosity != f_console_verbosity_quiet) { fprintf(error.to.stream, "%c", f_string_eol[0]); - fprintf(error.to.stream, "%s%sA seek error occurred while accessing the file '", error.context.before->string, error.prefix ? error.prefix : ""); + fprintf(error.to.stream, "%s%sA seek error occurred while accessing the %s '", error.context.before->string, error.prefix ? error.prefix : "", type_name); fprintf(error.to.stream, "%s%s%s%s", error.context.after->string, error.notable.before->string, name, error.notable.after->string); fprintf(error.to.stream, "%s'.%s%c", error.context.before->string, error.context.after->string, f_string_eol[0]); }