using
type String. Conceptually, it's not a String to be printed, it's a
template
with blanks to be filled in, and then printed. This avoids accidentally
using
tainted data in the template.
Change all uses of Display_Error to avoid tainted data -- always pass
Strings
via the "%" special character, rather than concatenating them into the
template.
Add new short-hand versions of Display_Error and Command_Line_Error, for
use
when a single String is being inserted via "%".
Initialize sets Error_Int to a value more likely to be noticed in case
of bugs.
Unexpected_Token doesn't need a default parameter, which simplifies it.
There were three occurrences of a cut&paste error in analyzer.adb, where
"Error_Name (1)" was used, when "Error_Name (2)" is correct.
Fixes J329-019.
Subversion-branch: /trunk/polyorb
Subversion-revision: 158458
(Namet.Name_Buffer, Namet.Name_Len), which caused a bug when called
from
Errors.Display_Error, which uses the same global variables for a
different
purpose.
Move Image on Int from Frontend.Debug and Backend.BE_CORBA_Ada.Debug to
Utils,
and make it work for negative numbers. This is so Locations.Image can
call
it.
Errors.Display_Error was calling Image (Error_Loc (1)) when it should
use
Image (Error_Loc (2)). This is the case where the "!" refers to a
different
file, due to #include, and we want to display something like
"include_file_name.idl:12:34".
Misc code cleanup and added comments.
Fixes H723-022.
Subversion-branch: /trunk/polyorb
Subversion-revision: 127086