aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/errorout.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-08-02 09:17:08 +0200
committerTristan Gingold <tgingold@free.fr>2016-08-02 09:17:08 +0200
commit3c83e47c98bc9e58ca2c231a5b24c3639018c9cc (patch)
treef2c0133e26ee413d3c778465c552233905a5db56 /src/vhdl/errorout.ads
parentee0e651d9b3946910d513e6a670453e25e5f014d (diff)
downloadghdl-3c83e47c98bc9e58ca2c231a5b24c3639018c9cc.tar.gz
ghdl-3c83e47c98bc9e58ca2c231a5b24c3639018c9cc.tar.bz2
ghdl-3c83e47c98bc9e58ca2c231a5b24c3639018c9cc.zip
Rewrite most of error and warning messages.
Diffstat (limited to 'src/vhdl/errorout.ads')
-rw-r--r--src/vhdl/errorout.ads34
1 files changed, 28 insertions, 6 deletions
diff --git a/src/vhdl/errorout.ads b/src/vhdl/errorout.ads
index e1beb156b..bdc67226a 100644
--- a/src/vhdl/errorout.ads
+++ b/src/vhdl/errorout.ads
@@ -179,8 +179,16 @@ package Errorout is
procedure Error_Msg_Parse (Loc : Location_Type; Msg: String);
-- Disp a message during semantic analysis.
- procedure Warning_Msg_Sem
- (Id : Msgid_Warnings; Loc : Location_Type; Msg: String);
+ procedure Warning_Msg_Sem (Id : Msgid_Warnings;
+ Loc : Location_Type;
+ Msg: String;
+ Args : Earg_Arr := No_Eargs;
+ Cont : Boolean := False);
+ procedure Warning_Msg_Sem (Id : Msgid_Warnings;
+ Loc : Location_Type;
+ Msg: String;
+ Arg1 : Earg_Type;
+ Cont : Boolean := False);
procedure Error_Msg_Sem (Loc: Location_Type;
Msg: String;
@@ -196,12 +204,26 @@ package Errorout is
Args : Earg_Arr := No_Eargs);
-- Disp a message during elaboration (or configuration).
- procedure Error_Msg_Elab (Msg: String);
- procedure Error_Msg_Elab (Loc: Iir; Msg: String);
+ procedure Error_Msg_Elab
+ (Msg: String; Args : Earg_Arr := No_Eargs);
+ procedure Error_Msg_Elab
+ (Msg: String; Arg1 : Earg_Type);
+ procedure Error_Msg_Elab
+ (Loc: Iir; Msg: String; Args : Earg_Arr := No_Eargs);
+ procedure Error_Msg_Elab
+ (Loc: Iir; Msg: String; Arg1 : Earg_Type);
-- Disp a warning durig elaboration (or configuration).
- procedure Warning_Msg_Elab
- (Id : Msgid_Warnings; Loc : Iir; Msg: String; Cont : Boolean := False);
+ procedure Warning_Msg_Elab (Id : Msgid_Warnings;
+ Loc : Iir;
+ Msg: String;
+ Arg1 : Earg_Type;
+ Cont : Boolean := False);
+ procedure Warning_Msg_Elab (Id : Msgid_Warnings;
+ Loc : Iir;
+ Msg: String;
+ Args : Earg_Arr := No_Eargs;
+ Cont : Boolean := False);
-- Disp a bug message.
procedure Error_Internal (Expr: Iir; Msg: String := "");