with Snames; use Snames;
with Stand; use Stand;
with Stringt; use Stringt;
-with Stylesw; use Stylesw;
with System.OS_Lib;
with Uname; use Uname;
with Warnsw;
-- around node N are required by the Ada syntax, e.g. when N is an
-- expression of a qualified expression.
- procedure Set_Msg_Insertion_Column;
- -- Handle column number insertion (@ insertion character)
-
procedure Set_Msg_Insertion_Node;
-- Handle node (name from node) insertion (& insertion character)
Errors_Must_Be_Ignored := To;
end Set_Ignore_Errors;
- ------------------------------
- -- Set_Msg_Insertion_Column --
- ------------------------------
-
- procedure Set_Msg_Insertion_Column is
- begin
- if RM_Column_Check then
- Set_Msg_Str (" in column ");
- Set_Msg_Int (Int (Error_Msg_Col) + 1);
- end if;
- end Set_Msg_Insertion_Column;
-
----------------------------
-- Set_Msg_Insertion_Node --
----------------------------
with Sinput; use Sinput;
with Snames; use Snames;
with Stringt; use Stringt;
+with Stylesw; use Stylesw;
with Targparm;
with Uintp; use Uintp;
with Widechar; use Widechar;
end loop;
end Set_Msg_Insertion_Code;
+ ------------------------------
+ -- Set_Msg_Insertion_Column --
+ ------------------------------
+
+ procedure Set_Msg_Insertion_Column is
+ begin
+ if RM_Column_Check then
+ Set_Msg_Str (" in column ");
+ Set_Msg_Int (Int (Error_Msg_Col) + 1);
+ end if;
+ end Set_Msg_Insertion_Column;
+
---------------------------------
-- Set_Msg_Insertion_File_Name --
---------------------------------
procedure Set_Msg_Insertion_Code;
-- Handle error code insertion ([] insertion character)
+ procedure Set_Msg_Insertion_Column;
+ -- Handle column number insertion (@ insertion character)
+
procedure Set_Msg_Insertion_File_Name;
-- Handle file name insertion (left brace insertion character)
with Scans; use Scans;
with Sinput; use Sinput;
with Stringt; use Stringt;
-with Stylesw; use Stylesw;
package body Errutil is
-- indicates if there are errors attached to the line, which forces
-- listing on, even in the presence of pragma List (Off).
- procedure Set_Msg_Insertion_Column;
- -- Handle column number insertion (@ insertion character)
-
procedure Set_Msg_Text (Text : String; Flag : Source_Ptr);
-- Add a sequence of characters to the current message. The characters may
-- be one of the special insertion characters (see documentation in spec).
if Warnings_Detected >= Maximum_Messages then
Set_Standard_Error;
Write_Line ("maximum number of warnings detected");
+
Warning_Mode := Suppress;
end if;
Errors_Must_Be_Ignored := To;
end Set_Ignore_Errors;
- ------------------------------
- -- Set_Msg_Insertion_Column --
- ------------------------------
-
- procedure Set_Msg_Insertion_Column is
- begin
- if RM_Column_Check then
- Set_Msg_Str (" in column ");
- Set_Msg_Int (Int (Error_Msg_Col) + 1);
- end if;
- end Set_Msg_Insertion_Column;
-
------------------
-- Set_Msg_Text --
------------------