Commit 45b5a7a1 by Robert Dewar Committed by Arnaud Charlet

xgnatugn.adb: Replace invalid membership test by 'Valid

2005-11-14  Robert Dewar  <dewar@adacore.com>

	* xgnatugn.adb: Replace invalid membership test by 'Valid

From-SVN: r107013
parent 1c9e0120
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2003-2004 Free Software Foundation, Inc. -- -- Copyright (C) 2003-2005, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -180,8 +180,8 @@ procedure Xgnatugn is ...@@ -180,8 +180,8 @@ procedure Xgnatugn is
Target : Target_Type; Target : Target_Type;
-- The Target variable is initialized using the command line -- The Target variable is initialized using the command line
Valid_Characters : constant Character_Set Valid_Characters : constant Character_Set :=
:= To_Set (Span => (' ', '~')); To_Set (Span => (' ', '~'));
-- This array controls which characters are permitted in the input -- This array controls which characters are permitted in the input
-- file (after line breaks have been removed). Valid characters -- file (after line breaks have been removed). Valid characters
-- are all printable ASCII characters and the space character. -- are all printable ASCII characters and the space character.
...@@ -748,7 +748,7 @@ procedure Xgnatugn is ...@@ -748,7 +748,7 @@ procedure Xgnatugn is
else else
-- Extend Seq to cover the current (known) word. -- Extend Seq to cover the current (known) word
Seq.Last := Token.Span.Last; Seq.Last := Token.Span.Last;
Next_Token; Next_Token;
...@@ -1045,7 +1045,7 @@ procedure Xgnatugn is ...@@ -1045,7 +1045,7 @@ procedure Xgnatugn is
if (not Have_Conditional) or (Flag in Edition_Type) then if (not Have_Conditional) or (Flag in Edition_Type) then
-- The ordinary case. -- The ordinary case
if not Currently_Excluding then if not Currently_Excluding then
Put_Line (Output_File, Rewritten); Put_Line (Output_File, Rewritten);
...@@ -1068,7 +1068,7 @@ procedure Xgnatugn is ...@@ -1068,7 +1068,7 @@ procedure Xgnatugn is
-- case). -- case).
procedure Add (Extension, Replacement : String); procedure Add (Extension, Replacement : String);
-- Adds an extension with a custom replacement. -- Adds an extension with a custom replacement
--------- ---------
-- Add -- -- Add --
...@@ -1294,7 +1294,7 @@ begin ...@@ -1294,7 +1294,7 @@ begin
begin begin
Target := Flag_Type'Value (Argument (1)); Target := Flag_Type'Value (Argument (1));
if Target not in Target_Type then if not Target'Valid then
Valid_Command_Line := False; Valid_Command_Line := False;
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment