From: Kevin Day Date: Tue, 20 Mar 2012 03:23:37 +0000 (-0500) Subject: Update: add eol return codes X-Git-Tag: 0.3.0~60 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9a55a78ee55686e6e1f5b092468d7149e35d0cb3;p=fll Update: add eol return codes --- diff --git a/level_0/f_errors/c/errors.h b/level_0/f_errors/c/errors.h index c1d42ab..d126760 100644 --- a/level_0/f_errors/c/errors.h +++ b/level_0/f_errors/c/errors.h @@ -124,12 +124,15 @@ enum { #ifndef _di_f_errors_buffers_ f_no_data_on_eof, // warning + f_no_data_on_eol, // warning f_no_data_on_eos, // warning f_no_data_on_stop, // warning f_none_on_eof, // warning + f_none_on_eol, // warning f_none_on_eos, // warning f_none_on_stop, // "stop" location was reached f_error_on_eof, + f_error_on_eol, f_error_on_eos, f_error_on_stop, f_buffer_too_small, @@ -137,12 +140,14 @@ enum { f_string_too_small, f_string_too_large, f_unterminated_nest, - f_unterminated_nest_on_eos, f_unterminated_nest_on_eof, + f_unterminated_nest_on_eol, + f_unterminated_nest_on_eos, f_unterminated_nest_on_stop, f_unterminated_group, - f_unterminated_group_on_eos, f_unterminated_group_on_eof, + f_unterminated_group_on_eol, + f_unterminated_group_on_eos, f_unterminated_group_on_stop, #endif // _di_f_errors_buffers_ diff --git a/level_1/fl_errors/c/errors.c b/level_1/fl_errors/c/errors.c index 37d9fec..d13d7ad 100644 --- a/level_1/fl_errors/c/errors.c +++ b/level_1/fl_errors/c/errors.c @@ -96,6 +96,9 @@ extern "C"{ case f_no_data_on_eof: *string = "f_no_data_on_eof"; break; + case f_no_data_on_eol: + *string = "f_no_data_on_eol"; + break; case f_no_data_on_eos: *string = "f_no_data_on_eos"; break; @@ -105,6 +108,9 @@ extern "C"{ case f_none_on_eof: *string = "f_none_on_eof"; break; + case f_none_on_eol: + *string = "f_none_on_eol"; + break; case f_none_on_eos: *string = "f_none_on_eos"; break; @@ -114,6 +120,9 @@ extern "C"{ case f_error_on_eof: *string = "f_error_on_eof"; break; + case f_error_on_eol: + *string = "f_error_on_eol"; + break; case f_error_on_eos: *string = "f_error_on_eos"; break; @@ -135,24 +144,30 @@ extern "C"{ case f_unterminated_nest: *string = "f_unterminated_nest"; break; - case f_unterminated_nest_on_eos: - *string = "f_unterminated_nest_on_eos"; - break; case f_unterminated_nest_on_eof: *string = "f_unterminated_nest_on_eof"; break; + case f_unterminated_nest_on_eol: + *string = "f_unterminated_nest_on_eol"; + break; + case f_unterminated_nest_on_eos: + *string = "f_unterminated_nest_on_eos"; + break; case f_unterminated_nest_on_stop: *string = "f_unterminated_nest_on_stop"; break; case f_unterminated_group: *string = "f_unterminated_group"; break; - case f_unterminated_group_on_eos: - *string = "f_unterminated_group_on_eos"; - break; case f_unterminated_group_on_eof: *string = "f_unterminated_group_on_eof"; break; + case f_unterminated_group_on_eol: + *string = "f_unterminated_group_on_eol"; + break; + case f_unterminated_group_on_eos: + *string = "f_unterminated_group_on_eos"; + break; case f_unterminated_group_on_stop: *string = "f_unterminated_group_on_stop"; break; @@ -317,12 +332,16 @@ extern "C"{ #ifndef _di_f_errors_buffers_ case f_no_data_on_eof: return f_true; + case f_no_data_on_eol: + return f_true; case f_no_data_on_eos: return f_true; case f_no_data_on_stop: return f_true; case f_none_on_eof: return f_true; + case f_none_on_eol: + return f_true; case f_none_on_eos: return f_true; case f_none_on_stop: