7 Commits

Author SHA1 Message Date
Thomas Quinot
99f521407c Switch to GPLv3 for KC20-016
Subversion-branch: /trunk/polyorb
Subversion-revision: 183131
2012-01-04 22:41:08 +00:00
Bob Duff
852b3ba68d Make package Errors be self-initializing.
Follow-on to J329-019.

Subversion-branch: /trunk/polyorb
Subversion-revision: 158472
2010-03-31 20:32:34 +00:00
Bob Duff
d5d8ace594 Use a separate Message_Template type for message templates, instead of
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
2010-03-31 16:06:55 +00:00
Bob Duff
c7ec07f267 Make sure exit status is non-zero on Fatal_Error. This was a mistake in
the
previous revision.

Misc comment fixes.

For H813-038.

Subversion-branch: /trunk/polyorb
Subversion-revision: 157913
2010-03-22 21:28:16 +00:00
Bob Duff
a31886f79e Make Locations.Image pure. It was writing on global variables
(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
2008-07-24 19:54:38 +00:00
Thomas Quinot
dea239321f Add "warning:" indication in front of IAC warnings.
Fixes GB06-008

Also reorganize and clean up error messages circuitry.

Subversion-branch: /trunk/polyorb
Subversion-revision: 119545
2007-11-23 10:25:06 +00:00
Thomas Quinot
e429306671 Move in supporting files for new version of IAC from import directory.
For FC19-007

Subversion-branch: /trunk/polyorb
Subversion-revision: 41322
2006-12-19 11:24:07 +00:00