From: Daniel KouĊ™il Date: Wed, 18 Jan 2012 12:21:41 +0000 (+0000) Subject: Made the error codes start sufficiently high X-Git-Tag: emi-canl-c_R_1_0_0_0~36 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=cd3825e44bdbef055f7cbb7630ac5dd4bfc59805;p=jra1mw.git Made the error codes start sufficiently high --- diff --git a/emi.canl.canl-c/src/gen_err_codes.pl b/emi.canl.canl-c/src/gen_err_codes.pl index 04ef224..6e3b5df 100755 --- a/emi.canl.canl-c/src/gen_err_codes.pl +++ b/emi.canl.canl-c/src/gen_err_codes.pl @@ -2,6 +2,8 @@ $err_name = ""; +$num = 0; + print STDOUT qq (/* * Automatically generated file. Don't edit. */ @@ -11,7 +13,9 @@ typedef enum _CANL_ERROR {); while () { chomp; next if /^\s*#/; - printf ("\n CANL_ERR_%s,", $_); + printf ("\n CANL_ERR_%s%s,", + $_, + (!$num++) ? " = 1024" : ""); } print STDOUT qq (