8 Commits

Author SHA1 Message Date
Thomas Quinot
895156afbb * compilers/common_files/utils.adb, utils.ads
(Starts_With): New subprogram

* compilers/gnatdist/xe_utils.adb
  (Scan_Dist_Arg):
  Pass --unchecked-shared-lib-imports down to gnat ls

Fixes P120-017

Subversion-branch: /trunk/polyorb
Subversion-revision: 246124
2016-02-08 09:31:17 +00:00
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
09ccaea3e6 Use Ada.Characters.Handling instead of Charset.
Fixes J119-022.

Subversion-branch: /trunk/polyorb
Subversion-revision: 179204
2011-09-25 15:11:58 +00:00
Bob Duff
8779f5a543 Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 179201
2011-09-24 20:01:15 +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
Bob Duff
faf7eeb066 Avoid comparing "X = Dir_Separator", because on windows, Dir_Separator =
'\',
 but windows actually allows two directory separators: '\' and '/'. Use
new
 function Utils.Is_Dir_Separator instead. Clean up usage of
Dir_Separator
 vs. Directory_Separator, from GNAT.Directory_Operations/GNAT.OS_Lib.
When iac prints messages, such as "idlac: 2 warning(s)", strip off the
 directory name and the ".exe" extension from the command name, so it
looks the
 same on Unix and Windows. Use new function Utils.Simple_Command_Name.
Part of H513-018.

Subversion-branch: /trunk/polyorb
Subversion-revision: 124972
2008-05-22 19:55:18 +00:00
Thomas Quinot
a2ea91c2e1 Add missing header boxes.
Subversion-branch: /trunk/polyorb
Subversion-revision: 119546
2007-11-23 10:25:33 +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