]> Kevux Git Server - fll/commitdiff
Update: add eol return codes
authorKevin Day <kevin@kevux.org>
Tue, 20 Mar 2012 03:23:37 +0000 (22:23 -0500)
committerKevin Day <kevin@kevux.org>
Tue, 20 Mar 2012 03:23:37 +0000 (22:23 -0500)
level_0/f_errors/c/errors.h
level_1/fl_errors/c/errors.c

index c1d42ab3a8c34421dc26290827b48c9c1afc3893..d12676029d8163618aa0403e3dc5f45e0bc6de96 100644 (file)
@@ -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_
 
index 37d9fec6e3267f8da10251caaa47d0e0a4ec453a..d13d7ad3b85efdba9fe1d8da7f82ca9564b02571 100644 (file)
@@ -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: