S : String (1 .. Feature'Length + 1 + CCRT'Length);
L : Natural;
-
begin
S (1) := '|';
S (2 .. Feature'Length + 1) := Feature;
N : Node_Or_Entity_Id)
is
begin
- if Eflag and then In_Extended_Main_Source_Unit (N) then
+ if Eflag
+ and then In_Extended_Main_Source_Unit (N)
+ and then Comes_From_Source (N)
+ then
Error_Msg_NEL (Msg, N, N, Sloc (N));
end if;
end Error_Msg_NW;
-- Casing required for result. Default value of Mixed_Case is used if
-- for some reason we cannot find the right file name in the table.
-
begin
-- Get length of file name
when '>' =>
Set_Msg_Insertion_Run_Time_Name;
-
when '^' =>
Set_Msg_Insertion_Uint;
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2004 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2005 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This routine is used for posting a message conditionally. The message
-- is posted (with the same effect as Error_Msg_N (Msg, N) if and only
-- if Eflag is True and if the node N is within the main extended source
- -- unit. Typically this is a warning mode flag.
+ -- unit and comes from source. Typically this is a warning mode flag.
procedure Change_Error_Text (Error_Id : Error_Msg_Id; New_Msg : String);
-- The error message text of the message identified by Id is replaced by