aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/xref_lib.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-06-23 12:01:39 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-06-23 12:01:39 +0200
commitefc81a892c7fa82e5d00cf2258aea4392af4643a (patch)
tree916d1c1981f231afd6e775007ae98d0425aa6319 /gcc/ada/xref_lib.adb
parent1290ef1492d55f7131e4c7d15bfc4a2b5a7046e4 (diff)
downloadgcc-efc81a892c7fa82e5d00cf2258aea4392af4643a.zip
gcc-efc81a892c7fa82e5d00cf2258aea4392af4643a.tar.gz
gcc-efc81a892c7fa82e5d00cf2258aea4392af4643a.tar.bz2
[multiple changes]
2009-06-23 Vincent Celier <celier@adacore.com> * prj-attr.adb: Attribute names Initial_Required_Switches and Final_Required_Switches changed to Leading_Required_Switches and Trailing_Required_Switches. * prj-nmsc.adb (Process_Compiler): Attribute names Initial_Required_Switches and Final_Required_Switches changed to Leading_Required_Switches and Trailing_Required_Switches. * prj.ads (Language_Config): Component Initial_Required_Switches and Final_Required_Switches changed to Leading_Required_Switches and Trailing_Required_Switches. * snames.ads-tmpl: Remove standard names Initial_Required_Switches and Final_Required_Switches; add standard names Leading_Required_Switches and Trailing_Required_Switches. 2009-06-23 Thomas Quinot <quinot@adacore.com> * prj-conf.adb: Minor reformatting * xref_lib.adb: Minor cleanup From-SVN: r148840
Diffstat (limited to 'gcc/ada/xref_lib.adb')
-rw-r--r--gcc/ada/xref_lib.adb11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ada/xref_lib.adb b/gcc/ada/xref_lib.adb
index 116f364..f3c8fa3 100644
--- a/gcc/ada/xref_lib.adb
+++ b/gcc/ada/xref_lib.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1998-2008, Free Software Foundation, Inc. --
+-- Copyright (C) 1998-2009, 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- --
@@ -481,8 +481,7 @@ package body Xref_Lib is
function Get_Full_Type (Decl : Declaration_Reference) return String is
function Param_String return String;
- -- Return the string to display depending on whether Decl is a
- -- parameter or not
+ -- Return the string to display depending on whether Decl is a parameter
------------------
-- Param_String --
@@ -710,7 +709,9 @@ package body Xref_Lib is
end loop;
if Source (Ptr) /= EOF then
- Ptr := Ptr + 1; -- skip CR or LF
+ -- Skip CR or LF
+
+ Ptr := Ptr + 1;
end if;
-- Skip past CR/LF or LF/CR combination
@@ -1071,7 +1072,7 @@ package body Xref_Lib is
loop
-- Process references on current line
- while Ali (Ptr) = ' ' or Ali (Ptr) = ASCII.HT loop
+ while Ali (Ptr) = ' ' or else Ali (Ptr) = ASCII.HT loop
-- For every reference read the line, type and column,
-- optionally preceded by a file number and a pipe symbol.