aboutsummaryrefslogtreecommitdiffstats
path: root/translate/grt/grt-errors.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2014-05-07 05:20:35 +0200
committerTristan Gingold <tgingold@free.fr>2014-05-07 05:20:35 +0200
commit6540ece0232e69fd016b358e03cca46ee7b62097 (patch)
treeb87fc240d3bcc79ba9f2a96551db2a7d90851d8c /translate/grt/grt-errors.ads
parentbf357576fd0a8d7be0620cd0ef1d668b2ffbbdc9 (diff)
downloadghdl-6540ece0232e69fd016b358e03cca46ee7b62097.tar.gz
ghdl-6540ece0232e69fd016b358e03cca46ee7b62097.tar.bz2
ghdl-6540ece0232e69fd016b358e03cca46ee7b62097.zip
grt: remove ghdl_exit_cb*, replaced by an error hook.
Diffstat (limited to 'translate/grt/grt-errors.ads')
-rw-r--r--translate/grt/grt-errors.ads10
1 files changed, 3 insertions, 7 deletions
diff --git a/translate/grt/grt-errors.ads b/translate/grt/grt-errors.ads
index dab84cf03..ee92cb987 100644
--- a/translate/grt/grt-errors.ads
+++ b/translate/grt/grt-errors.ads
@@ -23,6 +23,7 @@
-- however invalidate any other reasons why the executable file might be
-- covered by the GNU Public License.
with Grt.Types; use Grt.Types;
+with Grt.Hooks;
package Grt.Errors is
pragma Preelaborate (Grt.Errors);
@@ -61,18 +62,13 @@ package Grt.Errors is
-- Display an error message for an overflow.
procedure Grt_Overflow_Error;
- type Exit_Cb_Type is access procedure (Code : Integer);
- pragma Convention (C, Exit_Cb_Type);
-
- Ghdl_Exit_Cb : Exit_Cb_Type := null;
- Ghdl_Exit_Cb1 : Exit_Cb_Type := null;
+ -- Hook called in case of error.
+ Error_Hook : Grt.Hooks.Proc_Hook_Type := null;
-- If true, an error is expected and the exit status is inverted.
Expect_Failure : Boolean := False;
private
- pragma Export (C, Ghdl_Exit_Cb, "__ghdl_exit_cb");
-
pragma Export (C, Grt_Overflow_Error, "grt_overflow_error");
pragma No_Return (Error);