summaryrefslogtreecommitdiff
path: root/translate/grt/grt-lib.adb
diff options
context:
space:
mode:
authorgingold2006-08-12 14:03:22 +0000
committergingold2006-08-12 14:03:22 +0000
commit34c8fdb9e08041c7bd3ee344cbd73a9a46ecc4bd (patch)
treefa29b174d2a31ba011eedb562d4d21e2a411a8ea /translate/grt/grt-lib.adb
parent63925c8de8d3171e6b258796e4d167524691490a (diff)
downloadghdl-34c8fdb9e08041c7bd3ee344cbd73a9a46ecc4bd.tar.gz
ghdl-34c8fdb9e08041c7bd3ee344cbd73a9a46ecc4bd.tar.bz2
ghdl-34c8fdb9e08041c7bd3ee344cbd73a9a46ecc4bd.zip
ghdl 0.25 released
Diffstat (limited to 'translate/grt/grt-lib.adb')
-rw-r--r--translate/grt/grt-lib.adb26
1 files changed, 24 insertions, 2 deletions
diff --git a/translate/grt/grt-lib.adb b/translate/grt/grt-lib.adb
index 65abdac..3b3f1f3 100644
--- a/translate/grt/grt-lib.adb
+++ b/translate/grt/grt-lib.adb
@@ -84,9 +84,31 @@ package body Grt.Lib is
Do_Report ("report", Str, Severity, Loc);
end Ghdl_Report;
- procedure Ghdl_Program_Error is
+ procedure Ghdl_Program_Error (Filename : Ghdl_C_String;
+ Line : Ghdl_I32;
+ Code : Ghdl_Index_Type)
+ is
begin
- Error ("program error");
+ case Code is
+ when 1 =>
+ Error_C ("missing return in function");
+ when 2 =>
+ Error_C ("block already configured");
+ when 3 =>
+ Error_C ("bad configuration");
+ when others =>
+ Error_C ("unknown error code ");
+ Error_C (Integer (Code));
+ end case;
+ Error_C (" at ");
+ if Filename = null then
+ Error_C ("*unknown*");
+ else
+ Error_C (Filename);
+ end if;
+ Error_C (":");
+ Error_C (Integer(Line));
+ Error_E ("");
end Ghdl_Program_Error;
procedure Ghdl_Bound_Check_Failed_L0 (Number : Ghdl_Index_Type) is