aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/grt-severity.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-14 19:07:28 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-14 19:07:28 +0200
commitb297bebce64eb9a84b7a90046b514085305c286c (patch)
treeef4d768a5053d6241c08d5db7ae48ce097d5763d /src/grt/grt-severity.ads
parent553455c571c85ba80bf3c5da24496b6954b3ba8d (diff)
downloadghdl-b297bebce64eb9a84b7a90046b514085305c286c.tar.gz
ghdl-b297bebce64eb9a84b7a90046b514085305c286c.tar.bz2
ghdl-b297bebce64eb9a84b7a90046b514085305c286c.zip
grt: move severity levels from errors to grt.severity.
Diffstat (limited to 'src/grt/grt-severity.ads')
-rw-r--r--src/grt/grt-severity.ads33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/grt/grt-severity.ads b/src/grt/grt-severity.ads
new file mode 100644
index 000000000..75d8d90d9
--- /dev/null
+++ b/src/grt/grt-severity.ads
@@ -0,0 +1,33 @@
+-- GHDL Run Time (GRT) - Constants definition
+-- Copyright (C) 2020 Tristan Gingold
+--
+-- GHDL is free software; you can redistribute it and/or modify it under
+-- the terms of the GNU General Public License as published by the Free
+-- Software Foundation; either version 2, or (at your option) any later
+-- version.
+--
+-- GHDL is distributed in the hope that it will be useful, but WITHOUT ANY
+-- WARRANTY; without even the implied warranty of MERCHANTABILITY or
+-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+-- for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with GCC; see the file COPYING. If not, write to the Free
+-- Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+-- 02111-1307, USA.
+--
+-- As a special exception, if other files instantiate generics from this
+-- unit, or you link this unit with other files to produce an executable,
+-- this unit does not by itself cause the resulting executable to be
+-- covered by the GNU General Public License. This exception does not
+-- however invalidate any other reasons why the executable file might be
+-- covered by the GNU Public License.
+
+package Grt.Severity is
+ pragma Pure (Grt.Severity);
+
+ Note_Severity : constant Integer := 0;
+ Warning_Severity : constant Integer := 1;
+ Error_Severity : constant Integer := 2;
+ Failure_Severity : constant Integer := 3;
+end Grt.Severity;