From cd3825e44bdbef055f7cbb7630ac5dd4bfc59805 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Wed, 18 Jan 2012 12:21:41 +0000 Subject: [PATCH] Made the error codes start sufficiently high --- emi.canl.canl-c/src/gen_err_codes.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ( -- 1.8.2.3