]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s-stchop.adb, [...]: Make sure sources obey short-circuit style rule.
authorRobert Dewar <dewar@adacore.com>
Wed, 22 Jul 2009 10:25:32 +0000 (10:25 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 22 Jul 2009 10:25:32 +0000 (12:25 +0200)
2009-07-22  Robert Dewar  <dewar@adacore.com>

* s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
obey short-circuit style rule.

From-SVN: r149921

45 files changed:
gcc/ada/ChangeLog
gcc/ada/a-direct.adb
gcc/ada/a-ngcefu.adb
gcc/ada/a-ngelfu.adb
gcc/ada/a-strfix.adb
gcc/ada/a-teioed.adb
gcc/ada/a-textio.adb
gcc/ada/a-tifiio.adb
gcc/ada/a-witeio.adb
gcc/ada/a-wtedit.adb
gcc/ada/a-ztedit.adb
gcc/ada/a-ztexio.adb
gcc/ada/ali-util.adb
gcc/ada/ali.adb
gcc/ada/bcheck.adb
gcc/ada/binde.adb
gcc/ada/errout.adb
gcc/ada/erroutc.adb
gcc/ada/errutil.adb
gcc/ada/g-alleve.adb
gcc/ada/gnatchop.adb
gcc/ada/gnatls.adb
gcc/ada/make.adb
gcc/ada/osint.adb
gcc/ada/prep.adb
gcc/ada/prepcomp.adb
gcc/ada/prj-conf.adb
gcc/ada/prj-dect.adb
gcc/ada/prj-nmsc.adb
gcc/ada/prj-proc.adb
gcc/ada/prj-util.adb
gcc/ada/prj.adb
gcc/ada/repinfo.adb
gcc/ada/s-fileio.adb
gcc/ada/s-imgrea.adb
gcc/ada/s-regexp.adb
gcc/ada/s-regpat.adb
gcc/ada/s-scaval.adb
gcc/ada/s-stchop.adb
gcc/ada/s-tassta.adb
gcc/ada/s-valrea.adb
gcc/ada/sinput-c.adb
gcc/ada/sinput-l.adb
gcc/ada/uintp.adb
gcc/ada/vms_conv.adb

index 41b24fd986ec36757f7d99a5e52b8b5f18e540de..12490366235b31ad0eae20e3a26149b8288f1ac0 100644 (file)
@@ -1,3 +1,16 @@
+2009-07-22  Robert Dewar  <dewar@adacore.com>
+
+       * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
+       make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
+       s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
+       s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
+       errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
+       a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
+       s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
+       a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
+       erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
+       obey short-circuit style rule.
+
 2009-07-20  Bob Duff  <duff@adacore.com>
 
        * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
index 723833cd1b2b66acb19ec5cee490a98e5f01c187..d38745fbd8bde8bc8036c70e64706ae2327ad8f8 100644 (file)
@@ -982,7 +982,7 @@ package body Ada.Directories is
       then
          raise Name_Error with "old file """ & Old_Name & """ does not exist";
 
-      elsif Is_Regular_File (New_Name) or Is_Directory (New_Name) then
+      elsif Is_Regular_File (New_Name) or else Is_Directory (New_Name) then
          raise Use_Error with
            "new name """ & New_Name
            & """ designates a file that already exists";
index 3f99a84284b9445d603ddcdf0c63d56549a05b5f..edcdb5a722c4d44b6e2985f88f876b25cf9bd26c 100644 (file)
@@ -357,8 +357,8 @@ package body Ada.Numerics.Generic_Complex_Elementary_Functions is
       then
          Result := Log_Two + Log (X); -- may have wrong sign
 
-         if (Re (X) < 0.0 and Re (Result) > 0.0)
-           or else (Re (X) > 0.0 and Re (Result) < 0.0)
+         if (Re (X) < 0.0 and then Re (Result) > 0.0)
+           or else (Re (X) > 0.0 and then Re (Result) < 0.0)
          then
             Set_Re (Result, -Re (Result));
          end if;
index 62d88a48d5f41675cd8967a7d7ef4866d0160283..ef9aadd43060e0164ac93294ae10868e03bdf0c4 100644 (file)
@@ -602,7 +602,7 @@ package body Ada.Numerics.Generic_Elementary_Functions is
 
       T := Float_Type'Base'Remainder (X, Cycle);
 
-      if T = 0.0 or abs T = 0.5 * Cycle then
+      if T = 0.0 or else abs T = 0.5 * Cycle then
          raise Constraint_Error;
 
       elsif abs T < Sqrt_Epsilon then
index 3dad72bcf22617a80641d581864c5cec033e79f7..5e5118ace31afaa83edea85d71f80fc272324d19 100644 (file)
@@ -466,7 +466,7 @@ package body Ada.Strings.Fixed is
       By     : String) return String
    is
    begin
-      if Low > Source'Last + 1 or High < Source'First - 1 then
+      if Low > Source'Last + 1 or else High < Source'First - 1 then
          raise Index_Error;
       end if;
 
index 2d6a3a9b75aafaf2091cc3babeee398347165e6a..e2408a4519482ade630decea4a5638abfbdd8c1a 100644 (file)
@@ -313,7 +313,8 @@ package body Ada.Text_IO.Editing is
 
       for J in reverse Attrs.Start_Of_Int .. Attrs.End_Of_Int loop
          while Answer (Position) /= '9'
-           and Answer (Position) /= Pic.Floater
+                 and then
+               Answer (Position) /= Pic.Floater
          loop
             if Answer (Position) = '_' then
                Answer (Position) := Separator_Character;
@@ -560,7 +561,7 @@ package body Ada.Text_IO.Editing is
             Last     := Pic.Radix_Position + 1;
 
             for J in Last .. Answer'Last loop
-               if Answer (J) = '9' or Answer (J) = Pic.Floater then
+               if Answer (J) = '9' or else Answer (J) = Pic.Floater then
                   Answer (J) := Rounded (Position);
 
                   if Rounded (Position) /= '0' then
@@ -694,7 +695,7 @@ package body Ada.Text_IO.Editing is
 
       --  Now get rid of Blank_when_Zero and complete Star fill
 
-      if Zero and Pic.Blank_When_Zero then
+      if Zero and then Pic.Blank_When_Zero then
 
          --  Value is zero, and blank it
 
@@ -711,7 +712,7 @@ package body Ada.Text_IO.Editing is
 
          return String'(1 .. Last => ' ');
 
-      elsif Zero and Pic.Star_Fill then
+      elsif Zero and then Pic.Star_Fill then
          Last := Answer'Last;
 
          if Dollar then
@@ -2032,7 +2033,7 @@ package body Ada.Text_IO.Editing is
                Pic.Picture.Expanded (Index) := 'C';
                Skip;
 
-               if Look = 'R' or Look = 'r' then
+               if Look = 'R' or else Look = 'r' then
                   Pic.Second_Sign := Index;
                   Pic.Picture.Expanded (Index) := 'R';
                   Skip;
@@ -2048,7 +2049,7 @@ package body Ada.Text_IO.Editing is
                Pic.Picture.Expanded (Index) := 'D';
                Skip;
 
-               if Look = 'B' or Look = 'b' then
+               if Look = 'B' or else Look = 'b' then
                   Pic.Second_Sign := Index;
                   Pic.Picture.Expanded (Index) := 'B';
                   Skip;
@@ -2433,11 +2434,12 @@ package body Ada.Text_IO.Editing is
          --  requested by the user and no '*'.
 
          Pic.Blank_When_Zero :=
-           (Computed_BWZ or Pic.Blank_When_Zero) and not Pic.Star_Fill;
+           (Computed_BWZ or else Pic.Blank_When_Zero)
+             and then not Pic.Star_Fill;
 
          --  Star fill if '*' and no '9'
 
-         Pic.Star_Fill := Pic.Star_Fill and Computed_BWZ;
+         Pic.Star_Fill := Pic.Star_Fill and then Computed_BWZ;
 
          if not At_End then
             Set_State (Reject);
index 4ea003dcda8f55f6392fa10d7a110d1892abb40d..b3a98fcb3ec31a9aab352c8c9e68ffd60f1591a3 100644 (file)
@@ -1917,7 +1917,7 @@ package body Ada.Text_IO is
             --  up for such files, so we assume an implicit LM in this case.
 
             loop
-               exit when ch = LM or ch = EOF;
+               exit when ch = LM or else ch = EOF;
                ch := Getc (File);
             end loop;
          end if;
index 720fcac394fc7ec72d9f498e59579f8142eadeb0..73ebc006251e7b48c5b95e3661093af777140e56 100644 (file)
@@ -291,8 +291,9 @@ package body Ada.Text_IO.Fixed_IO is
 
    Exact : constant Boolean :=
             Float'Floor (Num'Small) = Float'Ceiling (Num'Small)
-             or Float'Floor (1.0 / Num'Small) = Float'Ceiling (1.0 / Num'Small)
-             or Num'Small >= 10.0**Max_Digits;
+              or else Float'Floor (1.0 / Num'Small) =
+                                Float'Ceiling (1.0 / Num'Small)
+              or else Num'Small >= 10.0**Max_Digits;
    --  True iff a numerator and denominator can be calculated such that
    --  their ratio exactly represents the small of Num.
 
@@ -464,7 +465,7 @@ package body Ada.Text_IO.Fixed_IO is
 
       begin
          if Last = To'First - 1 then
-            if X /= 0 or Pos <= 0 then
+            if X /= 0 or else Pos <= 0 then
 
                --  Before outputting first digit, include leading space,
                --  possible minus sign and, if the first digit is fractional,
index 4d59e4ddc9956d7892650f2005b4f4d87f9e46c4..e877405820f2d5da8ef0ae6ccecd367456484df6 100644 (file)
@@ -1614,7 +1614,7 @@ package body Ada.Wide_Text_IO is
             --  up for such files, so we assume an implicit LM in this case.
 
             loop
-               exit when ch = LM or ch = EOF;
+               exit when ch = LM or else ch = EOF;
                ch := Getc (File);
             end loop;
          end if;
index e23c60e78a0cf121c85ea19317b4aa3d2da753ae..dbe09a9df153032c435533bc3542dfb307057058 100644 (file)
@@ -486,7 +486,8 @@ package body Ada.Wide_Text_IO.Editing is
       for J in reverse Attrs.Start_Of_Int .. Attrs.End_Of_Int loop
 
          while Answer (Position) /= '9'
-           and Answer (Position) /= Pic.Floater
+                 and then
+               Answer (Position) /= Pic.Floater
          loop
             if Answer (Position) = '_' then
                Answer (Position) := Separator_Character;
@@ -728,7 +729,7 @@ package body Ada.Wide_Text_IO.Editing is
 
             for J in Last .. Answer'Last loop
 
-               if Answer (J) = '9' or Answer (J) = Pic.Floater then
+               if Answer (J) = '9' or else Answer (J) = Pic.Floater then
                   Answer (J) := To_Wide (Rounded (Position));
 
                   if Rounded (Position) /= '0' then
@@ -856,7 +857,7 @@ package body Ada.Wide_Text_IO.Editing is
 
       --  Now get rid of Blank_when_Zero and complete Star fill
 
-      if Zero and Pic.Blank_When_Zero then
+      if Zero and then Pic.Blank_When_Zero then
 
          --  Value is zero, and blank it
 
@@ -873,7 +874,7 @@ package body Ada.Wide_Text_IO.Editing is
 
          return Wide_String'(1 .. Last => ' ');
 
-      elsif Zero and Pic.Star_Fill then
+      elsif Zero and then Pic.Star_Fill then
          Last := Answer'Last;
 
          if Dollar then
@@ -2084,7 +2085,7 @@ package body Ada.Wide_Text_IO.Editing is
                Pic.Picture.Expanded (Index) := 'C';
                Skip;
 
-               if Look = 'R' or Look = 'r' then
+               if Look = 'R' or else Look = 'r' then
                   Pic.Second_Sign := Index;
                   Pic.Picture.Expanded (Index) := 'R';
                   Skip;
@@ -2100,7 +2101,7 @@ package body Ada.Wide_Text_IO.Editing is
                Pic.Picture.Expanded (Index) := 'D';
                Skip;
 
-               if Look = 'B' or Look = 'b' then
+               if Look = 'B' or else Look = 'b' then
                   Pic.Second_Sign := Index;
                   Pic.Picture.Expanded (Index) := 'B';
                   Skip;
@@ -2469,14 +2470,15 @@ package body Ada.Wide_Text_IO.Editing is
          end case;
 
          --  Blank when zero either if the PIC does not contain a '9' or if
-         --  requested by the user and no '*'
+         --  requested by the user and no '*'.
 
          Pic.Blank_When_Zero :=
-           (Computed_BWZ or Pic.Blank_When_Zero) and not Pic.Star_Fill;
+           (Computed_BWZ or else Pic.Blank_When_Zero)
+             and then not Pic.Star_Fill;
 
          --  Star fill if '*' and no '9'
 
-         Pic.Star_Fill := Pic.Star_Fill and Computed_BWZ;
+         Pic.Star_Fill := Pic.Star_Fill and then Computed_BWZ;
 
          if not At_End then
             Set_State (Reject);
index 0c2d71206e4efa00a1414c6e697af8ef3b0cf898..555e66491efc72796946e4834c6b773785924abd 100644 (file)
@@ -487,7 +487,8 @@ package body Ada.Wide_Wide_Text_IO.Editing is
       for J in reverse Attrs.Start_Of_Int .. Attrs.End_Of_Int loop
 
          while Answer (Position) /= '9'
-           and Answer (Position) /= Pic.Floater
+                 and then
+               Answer (Position) /= Pic.Floater
          loop
             if Answer (Position) = '_' then
                Answer (Position) := Separator_Character;
@@ -729,7 +730,7 @@ package body Ada.Wide_Wide_Text_IO.Editing is
 
             for J in Last .. Answer'Last loop
 
-               if Answer (J) = '9' or Answer (J) = Pic.Floater then
+               if Answer (J) = '9' or else Answer (J) = Pic.Floater then
                   Answer (J) := To_Wide (Rounded (Position));
 
                   if Rounded (Position) /= '0' then
@@ -857,7 +858,7 @@ package body Ada.Wide_Wide_Text_IO.Editing is
 
       --  Now get rid of Blank_when_Zero and complete Star fill
 
-      if Zero and Pic.Blank_When_Zero then
+      if Zero and then Pic.Blank_When_Zero then
 
          --  Value is zero, and blank it
 
@@ -874,7 +875,7 @@ package body Ada.Wide_Wide_Text_IO.Editing is
 
          return Wide_Wide_String'(1 .. Last => ' ');
 
-      elsif Zero and Pic.Star_Fill then
+      elsif Zero and then Pic.Star_Fill then
          Last := Answer'Last;
 
          if Dollar then
@@ -2084,7 +2085,7 @@ package body Ada.Wide_Wide_Text_IO.Editing is
                Pic.Picture.Expanded (Index) := 'C';
                Skip;
 
-               if Look = 'R' or Look = 'r' then
+               if Look = 'R' or else Look = 'r' then
                   Pic.Second_Sign := Index;
                   Pic.Picture.Expanded (Index) := 'R';
                   Skip;
@@ -2100,7 +2101,7 @@ package body Ada.Wide_Wide_Text_IO.Editing is
                Pic.Picture.Expanded (Index) := 'D';
                Skip;
 
-               if Look = 'B' or Look = 'b' then
+               if Look = 'B' or else Look = 'b' then
                   Pic.Second_Sign := Index;
                   Pic.Picture.Expanded (Index) := 'B';
                   Skip;
@@ -2469,14 +2470,15 @@ package body Ada.Wide_Wide_Text_IO.Editing is
          end case;
 
          --  Blank when zero either if the PIC does not contain a '9' or if
-         --  requested by the user and no '*'
+         --  requested by the user and no '*'.
 
          Pic.Blank_When_Zero :=
-           (Computed_BWZ or Pic.Blank_When_Zero) and not Pic.Star_Fill;
+           (Computed_BWZ or else Pic.Blank_When_Zero)
+             and then not Pic.Star_Fill;
 
          --  Star fill if '*' and no '9'
 
-         Pic.Star_Fill := Pic.Star_Fill and Computed_BWZ;
+         Pic.Star_Fill := Pic.Star_Fill and then Computed_BWZ;
 
          if not At_End then
             Set_State (Reject);
index fdcb726db26c77ccfd54c7900c4d4c863f84c98c..64ad87215dba8f38e12e3e1781d223dcb6df61c8 100644 (file)
@@ -1614,7 +1614,7 @@ package body Ada.Wide_Wide_Text_IO is
             --  up for such files, so we assume an implicit LM in this case.
 
             loop
-               exit when ch = LM or ch = EOF;
+               exit when ch = LM or else ch = EOF;
                ch := Getc (File);
             end loop;
          end if;
index 14ccd6707a02b8ebbf52273f14394b90f1638c12..e996611c3271320fa8c2ba1fadba815368fd422a 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2008, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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- --
@@ -492,7 +492,7 @@ package body ALI.Util is
             then
                --  If -dt debug flag set, output time stamp found/expected
 
-               if Source.Table (Src).Source_Found and Debug_Flag_T then
+               if Source.Table (Src).Source_Found and then Debug_Flag_T then
                   Write_Str ("Source: """);
                   Get_Name_String (Sdep.Table (D).Sfile);
                   Write_Str (Name_Buffer (1 .. Name_Len));
index dd23a80399db3f8448ac1a64e6424d40df12769d..19bbbb05d15f24bd669acd8fce97aa480e0ddde4 100644 (file)
@@ -484,7 +484,7 @@ package body ALI is
          loop
             Add_Char_To_Name_Buffer (Getc);
 
-            exit when At_End_Of_Field and not Ignore_Spaces;
+            exit when At_End_Of_Field and then not Ignore_Spaces;
 
             if not Ignore_Special then
                if Name_Buffer (1) = '"' then
@@ -544,7 +544,7 @@ package body ALI is
             V := V * 10 + (Character'Pos (Getc) - Character'Pos ('0'));
 
             exit when At_End_Of_Field;
-            exit when Nextc < '0' or Nextc > '9';
+            exit when Nextc < '0' or else Nextc > '9';
          end loop;
 
          return V;
index a1edd067979b4894ffd80bbedc97775a1818c995..8119a6d7a43075db31faf3bad5a7cd34a20d9d67 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2008, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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- --
@@ -471,7 +471,7 @@ package body Bcheck is
 
                               --  Case 3. With'ed unit is Preelaborate or Pure
 
-                              elsif WU.Preelab or WU.Pure then
+                              elsif WU.Preelab or else WU.Pure then
                                  null;
 
                               --  Case 4. With'ed unit is internal file
@@ -634,7 +634,8 @@ package body Bcheck is
 
             begin
                for A2 in A1 + 1 .. ALIs.Last loop
-                  if ALIs.Table (A2).Locking_Policy /= ' ' and
+                  if ALIs.Table (A2).Locking_Policy /= ' '
+                       and then
                      ALIs.Table (A2).Locking_Policy /= Policy
                   then
                      Error_Msg_File_1 := ALIs.Table (A1).Sfile;
index bbc990dc892e2711920dd1b07cad96a19a7ed9f0..3a85ae85e113377556c543d0d3495a4e4284cec2 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2008, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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- --
@@ -325,14 +325,14 @@ package body Binde is
 
       --  Prefer a waiting body to any other case
 
-      if Is_Waiting_Body (U1) and not Is_Waiting_Body (U2) then
+      if Is_Waiting_Body (U1) and then not Is_Waiting_Body (U2) then
          if Debug_Flag_B then
             Write_Line ("  True: u1 is waiting body, u2 is not");
          end if;
 
          return True;
 
-      elsif Is_Waiting_Body (U2) and not Is_Waiting_Body (U1) then
+      elsif Is_Waiting_Body (U2) and then not Is_Waiting_Body (U1) then
          if Debug_Flag_B then
             Write_Line ("  False: u2 is waiting body, u1 is not");
          end if;
@@ -341,14 +341,14 @@ package body Binde is
 
       --  Prefer a predefined unit to a non-predefined unit
 
-      elsif UT1.Predefined and not UT2.Predefined then
+      elsif UT1.Predefined and then not UT2.Predefined then
          if Debug_Flag_B then
             Write_Line ("  True: u1 is predefined, u2 is not");
          end if;
 
          return True;
 
-      elsif UT2.Predefined and not UT1.Predefined then
+      elsif UT2.Predefined and then not UT1.Predefined then
          if Debug_Flag_B then
             Write_Line ("  False: u2 is predefined, u1 is not");
          end if;
@@ -357,13 +357,13 @@ package body Binde is
 
       --  Prefer an internal unit to a non-internal unit
 
-      elsif UT1.Internal and not UT2.Internal then
+      elsif UT1.Internal and then not UT2.Internal then
          if Debug_Flag_B then
             Write_Line ("  True: u1 is internal, u2 is not");
          end if;
          return True;
 
-      elsif UT2.Internal and not UT1.Internal then
+      elsif UT2.Internal and then not UT1.Internal then
          if Debug_Flag_B then
             Write_Line ("  False: u2 is internal, u1 is not");
          end if;
@@ -372,14 +372,14 @@ package body Binde is
 
       --  Prefer a body to a spec
 
-      elsif Is_Body_Unit (U1) and not Is_Body_Unit (U2) then
+      elsif Is_Body_Unit (U1) and then not Is_Body_Unit (U2) then
          if Debug_Flag_B then
             Write_Line ("  True: u1 is body, u2 is not");
          end if;
 
          return True;
 
-      elsif Is_Body_Unit (U2) and not Is_Body_Unit (U1) then
+      elsif Is_Body_Unit (U2) and then not Is_Body_Unit (U1) then
          if Debug_Flag_B then
             Write_Line ("  False: u2 is body, u1 is not");
          end if;
@@ -1379,18 +1379,18 @@ package body Binde is
 
       --  Prefer anything else to a waiting body (!)
 
-      elsif Is_Waiting_Body (U1) and not Is_Waiting_Body (U2) then
+      elsif Is_Waiting_Body (U1) and then not Is_Waiting_Body (U2) then
          return False;
 
-      elsif Is_Waiting_Body (U2) and not Is_Waiting_Body (U1) then
+      elsif Is_Waiting_Body (U2) and then not Is_Waiting_Body (U1) then
          return True;
 
       --  Prefer a spec to a body (!)
 
-      elsif Is_Body_Unit (U1) and not Is_Body_Unit (U2) then
+      elsif Is_Body_Unit (U1) and then not Is_Body_Unit (U2) then
          return False;
 
-      elsif Is_Body_Unit (U2) and not Is_Body_Unit (U1) then
+      elsif Is_Body_Unit (U2) and then not Is_Body_Unit (U1) then
          return True;
 
       --  If both are waiting bodies, then prefer the one whose spec is
index c762be166fcb7a33db45b011bc87ca6b536ec0e3..251e1b844d1420743bdfeb01efb05a3a40bda981 100644 (file)
@@ -713,9 +713,9 @@ package body Errout is
       --  Return without doing anything if message is suppressed
 
       if Suppress_Message
-        and not All_Errors_Mode
-        and not (Msg (Msg'Last) = '!')
-        and not Is_Warning_Msg
+        and then not All_Errors_Mode
+        and then not (Msg (Msg'Last) = '!')
+        and then not Is_Warning_Msg
       then
          if not Continuation then
             Last_Killed := True;
@@ -991,11 +991,11 @@ package body Errout is
                --  cascaded parsing errors
 
                if not (Errors.Table (Prev_Msg).Warn
-                         or
+                         or else
                        Errors.Table (Prev_Msg).Style)
                  or else
                       (Errors.Table (Cur_Msg).Warn
-                         or
+                         or else
                        Errors.Table (Cur_Msg).Style)
                then
                   --  All tests passed, delete the message by simply returning
@@ -1031,7 +1031,7 @@ package body Errout is
 
       --  Bump appropriate statistics count
 
-      if Errors.Table (Cur_Msg).Warn or Errors.Table (Cur_Msg).Style then
+      if Errors.Table (Cur_Msg).Warn or else Errors.Table (Cur_Msg).Style then
          Warnings_Detected := Warnings_Detected + 1;
 
       else
@@ -1134,7 +1134,7 @@ package body Errout is
         or else Msg (Msg'Last) = '!'
         or else Is_Warning_Msg
         or else OK_Node (N)
-        or else (Msg (Msg'First) = '\' and not Last_Killed)
+        or else (Msg (Msg'First) = '\' and then not Last_Killed)
       then
          Debug_Output (N);
          Error_Msg_Node_1 := E;
index 23386b89f93a93be1a737213b0e587aba230875c..040fac76681509db32341ba2f92fa3662b5b2a74 100644 (file)
@@ -115,7 +115,7 @@ package body Erroutc is
 
             --  Adjust error message count
 
-            if Errors.Table (D).Warn or Errors.Table (D).Style then
+            if Errors.Table (D).Warn or else Errors.Table (D).Style then
                Warnings_Detected := Warnings_Detected - 1;
 
             else
@@ -561,7 +561,7 @@ package body Erroutc is
            and then Errors.Table (E).Sptr > From
            and then Errors.Table (E).Sptr < To
          then
-            if Errors.Table (E).Warn or Errors.Table (E).Style then
+            if Errors.Table (E).Warn or else Errors.Table (E).Style then
                Warnings_Detected := Warnings_Detected - 1;
 
             else
index 28db086274c8f46192edcd252613a8411a21c802..6a5bb692d6d4d5b00654cffb0fd608214fbe1bd3 100644 (file)
@@ -261,11 +261,11 @@ package body Errutil is
             --  avoid junk extra messages from cascaded parsing errors
 
             if not (Errors.Table (Prev_Msg).Warn
-                      or
+                     or else
                     Errors.Table (Prev_Msg).Style)
               or else
                    (Errors.Table (Cur_Msg).Warn
-                      or
+                     or else
                     Errors.Table (Cur_Msg).Style)
             then
                --  All tests passed, delete the message by simply returning
@@ -296,8 +296,12 @@ package body Errutil is
 
       --  Bump appropriate statistics count
 
-      if Errors.Table (Cur_Msg).Warn or Errors.Table (Cur_Msg).Style then
+      if Errors.Table (Cur_Msg).Warn
+           or else
+         Errors.Table (Cur_Msg).Style
+      then
          Warnings_Detected := Warnings_Detected + 1;
+
       else
          Total_Errors_Detected := Total_Errors_Detected + 1;
 
index 262479b5703b2215fe48267f908787880d46b254..3443344fe33a9df0e1038b16e1b4bd39f9146be2 100644 (file)
@@ -658,8 +658,8 @@ package body GNAT.Altivec.Low_Level_Vectors is
 
       begin
          for J in Varray_Type'Range loop
-            All_Element := All_Element and (D (J) = Bool_True);
-            Any_Element := Any_Element or  (D (J) = Bool_True);
+            All_Element := All_Element and then (D (J) = Bool_True);
+            Any_Element := Any_Element or else  (D (J) = Bool_True);
          end loop;
 
          if A = CR6_LT then
@@ -1120,8 +1120,8 @@ package body GNAT.Altivec.Low_Level_Vectors is
 
       begin
          for J in Varray_Type'Range loop
-            All_Element := All_Element and (D (J) = Bool_True);
-            Any_Element := Any_Element or  (D (J) = Bool_True);
+            All_Element := All_Element and then (D (J) = Bool_True);
+            Any_Element := Any_Element or else  (D (J) = Bool_True);
          end loop;
 
          if A = CR6_LT then
index ec32c073d56cce87f72504968973a20d90c765c6..c72ac75b1f00a5bec92e99ad349fe9a727b63dda 100644 (file)
@@ -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- --
@@ -545,9 +545,9 @@ procedure Gnatchop is
          --  Find Start_Of_Prefix
 
          for J in reverse Current_Command'Range loop
-            if Current_Command (J) = '/' or
-              Current_Command (J) = Directory_Separator or
-              Current_Command (J) = ':'
+            if Current_Command (J) = '/'                 or else
+               Current_Command (J) = Directory_Separator or else
+               Current_Command (J) = ':'
             then
                Start_Of_Prefix := J + 1;
                exit;
@@ -612,7 +612,7 @@ procedure Gnatchop is
 
       --  Skip past CR/LF or LF/CR combination
 
-      if (Source (Ptr) = ASCII.CR or Source (Ptr) = ASCII.LF)
+      if (Source (Ptr) = ASCII.CR or else Source (Ptr) = ASCII.LF)
          and then Source (Ptr) /= Source (Ptr - 1)
       then
          Ptr := Ptr + 1;
@@ -973,7 +973,7 @@ procedure Gnatchop is
    begin
       --  Skip separators
 
-      while Source (Ptr) = ' ' or Source (Ptr) = ',' loop
+      while Source (Ptr) = ' ' or else Source (Ptr) = ',' loop
          Ptr := Ptr + 1;
       end loop;
 
@@ -981,7 +981,8 @@ procedure Gnatchop is
 
       --  Find end-of-token
 
-      while (In_Quotes or else not (Source (Ptr) = ' ' or Source (Ptr) = ','))
+      while (In_Quotes
+              or else not (Source (Ptr) = ' ' or else Source (Ptr) = ','))
         and then Source (Ptr) >= ' '
       loop
          if Source (Ptr) = '"' then
@@ -1588,7 +1589,7 @@ procedure Gnatchop is
       Nam : String_Access;
 
    begin
-      if Success and Source_References and not Info.SR_Present then
+      if Success and then Source_References and then not Info.SR_Present then
          if FTE.SR_Name /= null then
             Nam := FTE.SR_Name;
          else
index ada6e59d1f8e8d05e4edc5274d2591a1a898a346..5b433187adba62f5f98cfef74bed726b2b1d2d28 100644 (file)
@@ -1029,20 +1029,20 @@ procedure Gnatls is
          end if;
 
          if Verbose_Mode then
-            if U.Preelab             or
-               U.No_Elab             or
-               U.Pure                or
-               U.Dynamic_Elab        or
-               U.Has_RACW            or
-               U.Remote_Types        or
-               U.Shared_Passive      or
-               U.RCI                 or
-               U.Predefined          or
-               U.Internal            or
-               U.Is_Generic          or
-               U.Init_Scalars        or
-               U.SAL_Interface       or
-               U.Body_Needed_For_SAL or
+            if U.Preelab             or else
+               U.No_Elab             or else
+               U.Pure                or else
+               U.Dynamic_Elab        or else
+               U.Has_RACW            or else
+               U.Remote_Types        or else
+               U.Shared_Passive      or else
+               U.RCI                 or else
+               U.Predefined          or else
+               U.Internal            or else
+               U.Is_Generic          or else
+               U.Init_Scalars        or else
+               U.SAL_Interface       or else
+               U.Body_Needed_For_SAL or else
                U.Elaborate_Body
             then
                Write_Eol;
@@ -1119,7 +1119,6 @@ procedure Gnatls is
                if U.Predefined then
                   Write_Str (" Predefined");
                end if;
-
             end if;
 
             declare
@@ -1160,7 +1159,7 @@ procedure Gnatls is
                   Write_Str ("     Restrictions violated =>");
 
                   --  For boolean restrictions, just display the name of the
-                  --  restriction; for valued restrictions, also display the
+                  --  restriction. For valued restrictions, also display the
                   --  restriction value.
 
                   for Restriction in All_Restrictions loop
@@ -1316,7 +1315,6 @@ procedure Gnatls is
                   --  Find the end of line
 
                   Last := Index;
-
                   while Last <= Buffer'Last
                     and then Buffer (Last) /= ASCII.LF
                     and then Buffer (Last) /= ASCII.CR
@@ -1330,10 +1328,9 @@ procedure Gnatls is
                      Add_File (Buffer (Index .. Last - 1));
                   end if;
 
-                  Index := Last;
-
                   --  Find the beginning of the next line
 
+                  Index := Last;
                   while Buffer (Index) = ASCII.CR or else
                         Buffer (Index) = ASCII.LF
                   loop
@@ -1559,8 +1556,8 @@ begin
       Exit_Program (E_Fatal);
    end if;
 
-   --  Add the source and object directories specified on the
-   --  command line, if any, to the searched directories.
+   --  Add the source and object directories specified on the command line, if
+   --  any, to the searched directories.
 
    while First_Source_Dir /= null loop
       Add_Src_Search_Dir (First_Source_Dir.Value.all);
index 1d96af98189565d9040142a26897826158b762fb..a0f3b0b42fadc3968e93700d4ad394d6101eb21d 100644 (file)
@@ -5125,7 +5125,7 @@ package body Make is
 
             --  Add binder switches from the project file for the first main
 
-            if Do_Bind_Step and Binder_Package /= No_Package then
+            if Do_Bind_Step and then Binder_Package /= No_Package then
                if Verbose_Mode then
                   Write_Str ("Adding binder switches for """);
                   Write_Str (Main_Unit_File_Name);
@@ -5141,7 +5141,7 @@ package body Make is
 
             --  Add linker switches from the project file for the first main
 
-            if Do_Link_Step and Linker_Package /= No_Package then
+            if Do_Link_Step and then Linker_Package /= No_Package then
                if Verbose_Mode then
                   Write_Str ("Adding linker switches for""");
                   Write_Str (Main_Unit_File_Name);
@@ -5595,7 +5595,7 @@ package body Make is
                  and then (Do_Bind_Step
                              or Unique_Compile_All_Projects
                              or not Compile_Only)
-                 and then (Do_Link_Step or N_File = Osint.Number_Of_Files)
+                 and then (Do_Link_Step or else N_File = Osint.Number_Of_Files)
                then
                   Library_Projs.Init;
 
@@ -6143,7 +6143,7 @@ package body Make is
                      --  We do that only if Run_Path_Option is True
                      --  (not disabled by -R switch).
 
-                     if Run_Path_Option and Path_Option /= null then
+                     if Run_Path_Option and then Path_Option /= null then
                         declare
                            Option  : String_Access;
                            Length  : Natural := Path_Option'Length;
@@ -6312,7 +6312,9 @@ package body Make is
                         Successful_Links.Table (Successful_Links.Last) :=
                           Main_ALI_File;
 
-                     elsif Osint.Number_Of_Files = 1 or not Keep_Going then
+                     elsif Osint.Number_Of_Files = 1
+                       or else not Keep_Going
+                     then
                         Make_Failed ("*** link failed.");
 
                      else
@@ -6426,7 +6428,7 @@ package body Make is
                   --  Add binder switches from the project file for this main,
                   --  if any.
 
-                  if Do_Bind_Step and Binder_Package /= No_Package then
+                  if Do_Bind_Step and then Binder_Package /= No_Package then
                      if Verbose_Mode then
                         Write_Str ("Adding binder switches for """);
                         Write_Str (Main_Unit_File_Name);
@@ -6443,7 +6445,7 @@ package body Make is
                   --  Add linker switches from the project file for this main,
                   --  if any.
 
-                  if Do_Link_Step and Linker_Package /= No_Package then
+                  if Do_Link_Step and then Linker_Package /= No_Package then
                      if Verbose_Mode then
                         Write_Str ("Adding linker switches for""");
                         Write_Str (Main_Unit_File_Name);
@@ -6920,7 +6922,7 @@ package body Make is
 
       function Check_Project (P : Project_Id) return Boolean is
       begin
-         if All_Projects or P = The_Project then
+         if All_Projects or else P = The_Project then
             return True;
 
          elsif Extending then
@@ -7735,8 +7737,8 @@ package body Make is
                      RTS_Src_Path_Name := Src_Path_Name;
                      RTS_Lib_Path_Name := Lib_Path_Name;
 
-                  elsif  Src_Path_Name = null
-                    and Lib_Path_Name = null
+                  elsif Src_Path_Name = null
+                    and then Lib_Path_Name = null
                   then
                      Make_Failed ("RTS path not valid: missing " &
                                   "adainclude and adalib directories");
index 770c499312b64c6724cac9aeb8ff7325b94724bb..a02e1eefe7e45e332372e699d032bc88ecd52226 100644 (file)
@@ -1116,7 +1116,7 @@ package body Osint is
 
       if Command_Name (Cindex2) in '0' .. '9' then
          for J in reverse Cindex1 .. Cindex2 loop
-            if Command_Name (J) = '.' or Command_Name (J) = ';' then
+            if Command_Name (J) = '.' or else Command_Name (J) = ';' then
                Cindex2 := J - 1;
                exit;
             end if;
@@ -2219,7 +2219,7 @@ package body Osint is
          loop
             Actual_Len := Read (Lib_FD, Text (Hi)'Address, Len);
             Hi := Hi + Text_Ptr (Actual_Len);
-            exit when Actual_Len = Len or Actual_Len <= 0;
+            exit when Actual_Len = Len or else Actual_Len <= 0;
          end loop;
 
          Text (Hi) := EOF;
@@ -2352,7 +2352,7 @@ package body Osint is
          loop
             Actual_Len := Read (Source_File_FD, Actual_Ptr (Hi)'Address, Len);
             Hi := Hi + Source_Ptr (Actual_Len);
-            exit when Actual_Len = Len or Actual_Len <= 0;
+            exit when Actual_Len = Len or else Actual_Len <= 0;
          end loop;
 
          Actual_Ptr (Hi) := EOF;
index 52328b236bb70f4efe22b599c82646475867c74d..9a76dc947304a86dc030c80de99aae0d46420461 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2002-2008, Free Software Foundation, Inc.         --
+--          Copyright (C) 2002-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- --
@@ -926,7 +926,7 @@ package body Prep is
                   goto Cleanup;
                end if;
 
-            elsif Token = Tok_End_Of_Line or Token = Tok_EOF then
+            elsif Token = Tok_End_Of_Line or else Token = Tok_EOF then
                Data := (Symbol              => Symbol_Name,
                         Original            => Original_Name,
                         On_The_Command_Line => False,
@@ -1008,7 +1008,7 @@ package body Prep is
             <<Cleanup>>
                Set_Ignore_Errors (To => True);
 
-               while Token /= Tok_End_Of_Line and Token /= Tok_EOF loop
+               while Token /= Tok_End_Of_Line and then Token /= Tok_EOF loop
                   Scan.all;
                end loop;
 
@@ -1058,7 +1058,7 @@ package body Prep is
 
       procedure Output_Line (From, To : Source_Ptr) is
       begin
-         if Deleting or Preprocessor_Line then
+         if Deleting or else Preprocessor_Line then
             if Blank_Deleted_Lines then
                New_EOL.all;
 
@@ -1145,8 +1145,9 @@ package body Prep is
                            New_State : constant Pp_State :=
                                          (If_Ptr     => If_Ptr,
                                           Else_Ptr   => 0,
-                                          Deleting   => Deleting or (not Cond),
-                                          Match_Seen => Deleting or Cond);
+                                          Deleting   => Deleting
+                                                          or else not Cond,
+                                          Match_Seen => Deleting or else Cond);
 
                         begin
                            Pp_States.Increment_Last;
@@ -1408,7 +1409,7 @@ package body Prep is
             end if;
          end if;
 
-         pragma Assert (Token = Tok_End_Of_Line or Token = Tok_EOF);
+         pragma Assert (Token = Tok_End_Of_Line or else Token = Tok_EOF);
 
          --  At this point, the token is either end of line or EOF.
          --  The line to possibly output stops just before the token.
index 58ef7c3e5c1c40d7543c431a44f6f03a8eb34b37..ad14fc5e16422dbc6c5b65e8e59bd89a243fc842 100644 (file)
@@ -418,7 +418,7 @@ package body Prepcomp is
                         --  with an underline or a digit.
 
                         if Name_Buffer (2) = '_'
-                          or Name_Buffer (2) in '0' .. '9'
+                          or else Name_Buffer (2) in '0' .. '9'
                         then
                            Error_Msg ("symbol expected", Token_Ptr + 1);
                            Skip_To_End_Of_Line;
index b258ee9d9806859d2d25d1d6a3d725508d21db61..fee0bbfa2357344428233357025d5abd2647c12b 100644 (file)
@@ -351,7 +351,7 @@ package body Prj.Conf is
       end if;
 
       if Target = "" then
-         OK := not Autoconf_Specified or Tgt_Name = No_Name;
+         OK := not Autoconf_Specified or else Tgt_Name = No_Name;
       else
          OK := Tgt_Name /= No_Name
                  and then Target = Get_Name_String (Tgt_Name);
@@ -705,7 +705,7 @@ package body Prj.Conf is
             --  gprconfig.
 
             if not Is_Directory (Obj_Dir)
-              and then (Setup_Projects or Subdirs /= null)
+              and then (Setup_Projects or else Subdirs /= null)
             then
                begin
                   Create_Path (Obj_Dir);
@@ -883,8 +883,8 @@ package body Prj.Conf is
       --  auto-conf mode, since the appropriate target was passed to gprconfig.
 
       if not Automatically_Generated
-        and not Check_Target
-          (Config, Autoconf_Specified, Project_Tree, Target_Name)
+        and then not
+          Check_Target (Config, Autoconf_Specified, Project_Tree, Target_Name)
       then
          Automatically_Generated := True;
          goto Process_Config_File;
index b55a7edeeb794382d9edc6e6590f0bb73bd08063..5795061eacb46d065153ef83e1565ebd4f513ff0 100644 (file)
@@ -1550,7 +1550,7 @@ package body Prj.Dect is
 
       Expect (Tok_Colon_Equal, "`:=`");
 
-      OK := OK and (Token = Tok_Colon_Equal);
+      OK := OK and then Token = Tok_Colon_Equal;
 
       if Token = Tok_Colon_Equal then
          Scan (In_Tree);
index 7b04af75e69eed655979a9eed9035185045f21c6..72bf84bb8e3d0af424575aab6755eb4edd64d1ff 100644 (file)
@@ -565,7 +565,7 @@ package body Prj.Nmsc is
       end if;
 
       if Prev_Unit /= No_Unit_Index
-        and then (Kind = Impl or Kind = Spec)
+        and then (Kind = Impl or else Kind = Spec)
         and then Prev_Unit.File_Names (Kind) /= null
       then
          --  Suspicious, we need to check later whether this is authorized
@@ -3225,7 +3225,7 @@ package body Prj.Nmsc is
       --  No Naming package or parsing a configuration file? nothing to do
 
       if Naming_Id /= No_Package
-        and Project.Qualifier /= Configuration
+        and then Project.Qualifier /= Configuration
       then
          Naming := Data.Tree.Packages.Table (Naming_Id);
 
index 7986a9b4774af48b72465e12d108cffa49596ee0..c87662290573980944bb3c956d106b3bd6c9b008 100644 (file)
@@ -2380,8 +2380,8 @@ package body Prj.Proc is
                 (With_Clause, From_Project_Node_Tree);
             New_Project := No_Project;
 
-            if (Limited_With and No (Proj_Node))
-              or (not Limited_With and Present (Proj_Node))
+            if (Limited_With and then No (Proj_Node))
+              or else (not Limited_With and then Present (Proj_Node))
             then
                Recursive_Process
                  (In_Tree                => In_Tree,
index 897e7f01dbe540a12f89e177722b70ce33a8d7da..159ee83597c936d599902ca203a7c29f25f9f07a 100644 (file)
@@ -183,7 +183,7 @@ package body Prj.Util is
       if Builder_Package /= No_Package then
          Executable_Suffix_Name := Project.Config.Executable_Suffix;
 
-         if Executable = Nil_Variable_Value and Ada_Main then
+         if Executable = Nil_Variable_Value and then Ada_Main then
             Get_Name_String (Main);
 
             --  Try as index the name minus the implementation suffix or minus
@@ -562,7 +562,7 @@ package body Prj.Util is
 
       Real_Index_1 := Index;
 
-      if not Element.Index_Case_Sensitive or Force_Lower_Case_Index then
+      if not Element.Index_Case_Sensitive or else Force_Lower_Case_Index then
          if Index /= All_Other_Names then
             Get_Name_String (Index);
             To_Lower (Name_Buffer (1 .. Name_Len));
@@ -574,7 +574,9 @@ package body Prj.Util is
          Element := In_Tree.Array_Elements.Table (Current);
          Real_Index_2 := Element.Index;
 
-         if not Element.Index_Case_Sensitive or Force_Lower_Case_Index then
+         if not Element.Index_Case_Sensitive
+           or else Force_Lower_Case_Index
+         then
             if Element.Index /= All_Other_Names then
                Get_Name_String (Element.Index);
                To_Lower (Name_Buffer (1 .. Name_Len));
index e0c2f1bde20963f65f628452d613c84b7d726dc7..fb002f45cfef7ba71cf9f2c16d23662eb1f69c8a 100644 (file)
@@ -980,7 +980,7 @@ package body Prj is
       Only_If_Ada         : Boolean := False) return Path_Name_Type
    is
    begin
-      if (Project.Library and Including_Libraries)
+      if (Project.Library and then Including_Libraries)
         or else
           (Project.Object_Directory /= No_Path_Information
             and then (not Including_Libraries or else not Project.Library))
index 04ad81758cbe1ddd837d84e7fb78450d43544b7e..c84996e3ba7c7dd68bf54c379b52eacb9ac667b7 100644 (file)
@@ -1201,10 +1201,10 @@ package body Repinfo is
                      return B (T (Node.Op1) or else T (Node.Op2));
 
                   when Truth_And_Expr =>
-                     return B (T (Node.Op1) and T (Node.Op2));
+                     return B (T (Node.Op1) and then T (Node.Op2));
 
                   when Truth_Or_Expr =>
-                     return B (T (Node.Op1) or T (Node.Op2));
+                     return B (T (Node.Op1) or else T (Node.Op2));
 
                   when Truth_Xor_Expr =>
                      return B (T (Node.Op1) xor T (Node.Op2));
index c6abba09bbf317cb6a105fc66e42af36373f84ab..df45003cd1af52c86ada08a6b97ba1f25bd7bf36 100644 (file)
@@ -466,7 +466,7 @@ package body System.File_IO is
             end if;
 
          when Out_File =>
-            if Amethod = 'D' and not Creat then
+            if Amethod = 'D' and then not Creat then
                Fopstr (1) := 'r';
                Fopstr (2) := '+';
                Fptr := 3;
index d363f1937f79fbb78c55e4faaca906e1db38eeba..1415a8b80f66606c068a5ec1c61293697305657c 100644 (file)
@@ -232,7 +232,7 @@ package body System.Img_Real is
 
             loop
                XP := X * Powten (Maxpow);
-               exit when XP >= Powten (S - 1) or Scale < -Maxscaling;
+               exit when XP >= Powten (S - 1) or else Scale < -Maxscaling;
                X := XP;
                Scale := Scale - Maxpow;
             end loop;
@@ -302,7 +302,7 @@ package body System.Img_Real is
 
             loop
                XP := X / Powten (Maxpow);
-               exit when XP < Powten (S) or Scale > Maxscaling;
+               exit when XP < Powten (S) or else Scale > Maxscaling;
                X := XP;
                Scale := Scale + Maxpow;
             end loop;
index 37c189ab6f1a919de993d3a3c4b5e4dcbcda5f46..48ebd4428fc485d63f3e8468975fcf65094cd77b 100755 (executable)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1999-2008, AdaCore                     --
+--                     Copyright (C) 1999-2009, AdaCore                     --
 --                                                                          --
 -- 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- --
@@ -218,7 +218,7 @@ package body System.Regexp is
                      J := J + 1;
                   end if;
 
-                  if S (J) = ']' or S (J) = '-' then
+                  if S (J) = ']' or else S (J) = '-' then
                      J := J + 1;
                   end if;
 
@@ -619,7 +619,7 @@ package body System.Regexp is
 
                         --  Automatically add the first character
 
-                        if S (J) = '-' or S (J) = ']' then
+                        if S (J) = '-' or else S (J) = ']' then
                            Set (Table, Current_State, Map (S (J)),
                                 Value => Next_State);
                            J := J + 1;
@@ -899,7 +899,7 @@ package body System.Regexp is
 
                         --  Automatically add the first character
 
-                        if S (J) = '-' or S (J) = ']' then
+                        if S (J) = '-' or else S (J) = ']' then
                            Set (Table, Current_State, Map (S (J)),
                                 Value => Current_State);
                            J := J + 1;
index 8d83b93e1a312866c791f50ba30eecc568c17f3e..dec4c1fcef0076cb22b0747d8c1c2712b8a9c095 100755 (executable)
@@ -905,7 +905,7 @@ package body System.Regpat is
             Flags.Has_Width := False;
          end if;
 
-         Flags.SP_Start := Flags.SP_Start or New_Flags.SP_Start;
+         Flags.SP_Start := Flags.SP_Start or else New_Flags.SP_Start;
 
          while Parse_Pos <= Parse_End
            and then (E (Parse_Pos) = '|')
@@ -924,7 +924,7 @@ package body System.Regpat is
                Flags.Has_Width := False;
             end if;
 
-            Flags.SP_Start := Flags.SP_Start or New_Flags.SP_Start;
+            Flags.SP_Start := Flags.SP_Start or else New_Flags.SP_Start;
          end loop;
 
          --  Make a closing node, and hook it on the end
@@ -1026,9 +1026,9 @@ package body System.Regpat is
                   end if;
 
                   Expr_Flags.Has_Width :=
-                    Expr_Flags.Has_Width or New_Flags.Has_Width;
+                    Expr_Flags.Has_Width or else New_Flags.Has_Width;
                   Expr_Flags.SP_Start :=
-                    Expr_Flags.SP_Start or New_Flags.SP_Start;
+                    Expr_Flags.SP_Start or else New_Flags.SP_Start;
                end;
 
             when '|' | ASCII.LF | ')' =>
@@ -1155,10 +1155,10 @@ package body System.Regpat is
                return;
             end if;
 
-            Flags.Has_Width := Flags.Has_Width or New_Flags.Has_Width;
+            Flags.Has_Width := Flags.Has_Width or else New_Flags.Has_Width;
 
             if Chain = 0 then            -- First piece
-               Flags.SP_Start := Flags.SP_Start or New_Flags.SP_Start;
+               Flags.SP_Start := Flags.SP_Start or else New_Flags.SP_Start;
             else
                Link_Tail (Chain, Last);
             end if;
index f1742a72a380a3ee3e87b1f02e57d97c8d723c86..632e30e4b01bd7d514899f9083fbbd9af35ffd49 100644 (file)
@@ -59,7 +59,7 @@ package body System.Scalar_Values is
       --  Set True if we are on an x86 with 96-bit floats for extended
 
       AFloat : constant Boolean :=
-                 Long_Float'Size = 48 and Long_Long_Float'Size = 48;
+                 Long_Float'Size = 48 and then Long_Long_Float'Size = 48;
       --  Set True if we are on an AAMP with 48-bit extended floating point
 
       type ByteLF is array (0 .. 7 - 2 * Boolean'Pos (AFloat)) of Byte1;
index c92c60642efcd07fde559dc68138c86673379781..7c62aa5e5505cbe09f3729cea64cc59cd301aec3 100644 (file)
@@ -49,19 +49,18 @@ package body System.Stack_Checking.Operations is
    function Set_Stack_Info
      (Stack : not null access Stack_Access) return Stack_Access;
 
-   --  The function Set_Stack_Info is the actual function that updates
-   --  the cache containing a pointer to the Stack_Info. It may also
-   --  be used for detecting asynchronous abort in combination with
-   --  Invalidate_Self_Cache.
+   --  The function Set_Stack_Info is the actual function that updates the
+   --  cache containing a pointer to the Stack_Info. It may also be used for
+   --  detecting asynchronous abort in combination with Invalidate_Self_Cache.
 
    --  Set_Stack_Info should do the following things in order:
    --     1) Get the Stack_Access value for the current task
    --     2) Set Stack.all to the value obtained in 1)
    --     3) Optionally Poll to check for asynchronous abort
 
-   --  This order is important because if at any time a write to
-   --  the stack cache is pending, that write should be followed
-   --  by a Poll to prevent loosing signals.
+   --  This order is important because if at any time a write to the stack
+   --  cache is pending, that write should be followed by a Poll to prevent
+   --  loosing signals.
 
    --  Note: This function must be compiled with Polling turned off
 
@@ -126,15 +125,15 @@ package body System.Stack_Checking.Operations is
 
       if My_Stack.Base = Null_Address then
 
-         --  First invocation, initialize based on the assumption that
-         --  there are Environment_Stack_Size bytes available beyond
-         --  the current frame address.
+         --  First invocation, initialize based on the assumption that there
+         --  are Environment_Stack_Size bytes available beyond the current
+         --  frame address.
 
          if My_Stack.Size = 0 then
             My_Stack.Size := Storage_Offset (Default_Env_Stack_Size);
 
-            --  When the environment variable GNAT_STACK_LIMIT is set,
-            --  set Environment_Stack_Size to that number of kB.
+            --  When the environment variable GNAT_STACK_LIMIT is set, set
+            --  Environment_Stack_Size to that number of kB.
 
             Limit_Chars := System.CRTL.getenv ("GNAT_STACK_LIMIT" & ASCII.NUL);
 
@@ -147,8 +146,8 @@ package body System.Stack_Checking.Operations is
             end if;
          end if;
 
-         --  If a stack base address has been registered, honor it.
-         --  Fallback to the address of a local object otherwise.
+         --  If a stack base address has been registered, honor it. Fallback to
+         --  the address of a local object otherwise.
 
          if My_Stack.Limit /= System.Null_Address then
             My_Stack.Base := My_Stack.Limit;
@@ -187,7 +186,9 @@ package body System.Stack_Checking.Operations is
          raise Standard'Abort_Signal;
       end if;
 
-      return My_Stack; -- Never trust the cached value, but return local copy!
+      --  Never trust the cached value, but return local copy!
+
+      return My_Stack;
    end Set_Stack_Info;
 
    -----------------
@@ -215,22 +216,22 @@ package body System.Stack_Checking.Operations is
          raise Storage_Error with "stack overflow detected";
       end if;
 
-      --  This function first does a "cheap" check which is correct
-      --  if it succeeds. In case of failure, the full check is done.
-      --  Ideally the cheap check should be done in an optimized manner,
-      --  or be inlined.
+      --  This function first does a "cheap" check which is correct if it
+      --  succeeds. In case of failure, the full check is done. Ideally the
+      --  cheap check should be done in an optimized manner, or be inlined.
 
       if (Stack_Grows_Down and then
             (Frame_Address <= Cached_Stack.Base
-               and
+               and then
              Stack_Address > Cached_Stack.Limit))
         or else
          (not Stack_Grows_Down and then
             (Frame_Address >= Cached_Stack.Base
-               and
+               and then
              Stack_Address < Cached_Stack.Limit))
       then
          --  Cached_Stack is valid as it passed the stack check
+
          return Cached_Stack;
       end if;
 
@@ -247,22 +248,21 @@ package body System.Stack_Checking.Operations is
             (not Stack_Grows_Down and then
                (not (Frame_Address >= My_Stack.Base)))
          then
-            --  The returned Base is lower than the stored one,
-            --  so assume that the original one wasn't right and use the
-            --  current Frame_Address as new one. This allows initializing
-            --  Base with the Frame_Address as approximation.
-            --  During initialization the Frame_Address will be close to
-            --  the stack base anyway: the difference should be compensated
-            --  for in the stack reserve.
+            --  The returned Base is lower than the stored one, so assume that
+            --  the original one wasn't right and use the current Frame_Address
+            --  as new one. This allows Base to be initialized with the
+            --  Frame_Address as approximation. During initialization the
+            --  Frame_Address will be close to the stack base anyway: the
+            --  difference should be compensated for in the stack reserve.
 
             My_Stack.Base := Frame_Address;
          end if;
 
-         if (Stack_Grows_Down and then
-                  Stack_Address < My_Stack.Limit)
+         if (Stack_Grows_Down
+              and then Stack_Address < My_Stack.Limit)
            or else
-            (not Stack_Grows_Down and then
-                  Stack_Address > My_Stack.Limit)
+            (not Stack_Grows_Down
+              and then Stack_Address > My_Stack.Limit)
          then
             raise Storage_Error with "stack overflow detected";
          end if;
index e26a09de8ec47afad6e195e2916ca3c40314b74e..1ae5b651ebfec374365cfe897cdb23560f070ac5 100644 (file)
@@ -1807,10 +1807,10 @@ package body System.Tasking.Stages is
          T := To_Be_Freed;
          To_Be_Freed := T.Common.All_Tasks_Link;
 
-         --  ??? On SGI there is currently no Interrupt_Manager, that's
-         --  why we need to check if the Interrupt_Manager_ID is null
+         --  ??? On SGI there is currently no Interrupt_Manager, that's why we
+         --  need to check if the Interrupt_Manager_ID is null.
 
-         if T.Interrupt_Entry and Interrupt_Manager_ID /= null then
+         if T.Interrupt_Entry and then Interrupt_Manager_ID /= null then
             declare
                Detach_Interrupt_Entries_Index : constant Task_Entry_Index := 1;
                --  Corresponds to the entry index of System.Interrupts.
index 2e8306aabdc85a5d8dc371baa06ee2424226faac..40c5abbca8b8108792847bd6f66666136efadb01 100644 (file)
@@ -126,7 +126,7 @@ package body System.Val_Real is
 
             --  Save up trailing zeroes after the decimal point
 
-            if Digit = 0 and After_Point = 1 then
+            if Digit = 0 and then After_Point = 1 then
                Num_Saved_Zeroes := Num_Saved_Zeroes + 1;
 
             --  Here for a non-zero digit
@@ -253,7 +253,7 @@ package body System.Val_Real is
 
                --  Save up trailing zeroes after the decimal point
 
-               if Digit = 0 and After_Point = 1 then
+               if Digit = 0 and then After_Point = 1 then
                   Num_Saved_Zeroes := Num_Saved_Zeroes + 1;
 
                --  Here for a non-zero digit
index 86eff4ab02fd7db45586f739876c08254bde3aa9..4997346bd8e246cd86ce46a58d6e0e050131791c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2007, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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- --
@@ -116,7 +116,7 @@ package body Sinput.C is
          loop
             Actual_Len := Read (Source_File_FD, Actual_Ptr (Hi)'Address, Len);
             Hi := Hi + Source_Ptr (Actual_Len);
-            exit when Actual_Len = Len or Actual_Len <= 0;
+            exit when Actual_Len = Len or else Actual_Len <= 0;
          end loop;
 
          Actual_Ptr (Hi) := EOF;
index fe38b751dd26aaa978597b707aae122fc8fdc7dc..5159186d9f795cd133f822244a2db9335ab78881 100644 (file)
@@ -364,9 +364,15 @@ package body Sinput.L is
                procedure Wchar (C : Character);
                --  Writes character or ? for control character
 
+               -----------
+               -- Wchar --
+               -----------
+
                procedure Wchar (C : Character) is
                begin
-                  if C < ' ' or C in ASCII.DEL .. Character'Val (16#9F#) then
+                  if C < ' '
+                    or else C in ASCII.DEL .. Character'Val (16#9F#)
+                  then
                      Write_Char ('?');
                   else
                      Write_Char (C);
index a7efcff7483ea783272a91b746c335cdf56b53f9..93377219175812292875dd7660cd1f6225acb210 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009  Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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- --
@@ -759,7 +759,7 @@ package body Uintp is
 
    function Sum_Digits (Left : Uint; Sign : Int) return Int is
    begin
-      pragma Assert (Sign = Int_1 or Sign = Int (-1));
+      pragma Assert (Sign = Int_1 or else Sign = Int (-1));
 
       --  First try simple case;
 
@@ -858,7 +858,7 @@ package body Uintp is
    begin
       --  First try simple case;
 
-      pragma Assert (Sign = Int_1 or Sign = Int (-1));
+      pragma Assert (Sign = Int_1 or else Sign = Int (-1));
 
       if Direct (Left) then
          return Direct_Val (Left);
index 4b4e61a155b3793fc9a4d815a23d3a7d4d63ffdb..0772a494f123f3c00d02183225543bfe7ee025de 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1996-2008, Free Software Foundation, Inc.         --
+--          Copyright (C) 1996-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- --
@@ -1031,7 +1031,7 @@ package body VMS_Conv is
 
                   --  Process switch string, first get name
 
-                  while SS (P) /= ' ' and SS (P) /= '=' loop
+                  while SS (P) /= ' ' and then SS (P) /= '=' loop
                      P := P + 1;
                   end loop;