OK isn't an error
authorDaniel Kouřil <kouril@ics.muni.cz>
Mon, 12 Dec 2011 14:47:17 +0000 (14:47 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Mon, 12 Dec 2011 14:47:17 +0000 (14:47 +0000)
emi.canl.canl-c/src/canl_err.c
emi.canl.canl-c/src/canl_error_codes
emi.canl.canl-c/src/gen_err_codes.pl

index ce3c31c..2d13158 100644 (file)
@@ -86,7 +86,7 @@ void reset_error (glb_ctx *cc, unsigned long err_code)
     if (cc->err_msg)
         free(cc->err_msg);
     cc->err_msg = NULL;
-    cc->err_code = EMI_Err_OK;
+    cc->err_code = 0;
     cc->err_orig = unknown_error;
 }
 
index 3d6ac8d..179301e 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Additional codes MUST be added to the end only!
 #
-OK
 unknown
 unknownMsg
 inputError
index 5f31679..7fafde2 100755 (executable)
@@ -2,16 +2,15 @@
 
 $err_name = "";
 
-print STDOUT qq (
-/* Automatically generated file. Don't edit. */
+print STDOUT qq (/*
+ * Automatically generated file. Don't edit.
+ */
 
 typedef enum _CANL_ERROR {);
 
 while (<STDIN>) {
     chomp;
-
     next if /^\s*#/;
-
     printf ("\n    EMI_Err_%s,", $_);
 }