OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-dirval-vms.adb
index a7f2d24..a9321f2 100644 (file)
@@ -7,7 +7,7 @@
 --                                 B o d y                                  --
 --                              (VMS Version)                               --
 --                                                                          --
---          Copyright (C) 2004 Free Software Foundation, Inc.               --
+--          Copyright (C) 2004-2007, 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- --
@@ -17,8 +17,8 @@
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
+-- Boston, MA 02110-1301, USA.                                              --
 --                                                                          --
 -- As a special exception,  if other files  instantiate  generics from this --
 -- unit, or you link  this unit with other files  to produce an executable, --
@@ -42,6 +42,7 @@ package body Ada.Directories.Validity is
    Invalid_Character : constant array (Character) of Boolean :=
                          ('a' .. 'z' => False,
                           'A' .. 'Z' => False,
+                          '0' .. '9' => False,
                           '_' | '$' | '-' | '.' => False,
                           others => True);
 
@@ -97,7 +98,7 @@ package body Ada.Directories.Validity is
                end if;
             end loop;
 
-            --  If name include a dot, it can only be ".", ".." or the last
+            --  If name include a dot, it can only be ".", ".." or the last
             --  file name.
 
             if Dot_Found then
@@ -180,4 +181,22 @@ package body Ada.Directories.Validity is
       return True;
    end Is_Valid_Simple_Name;
 
+   -------------
+   -- OpenVMS --
+   -------------
+
+   function OpenVMS return Boolean is
+   begin
+      return True;
+   end OpenVMS;
+
+   -------------
+   -- Windows --
+   -------------
+
+   function Windows return Boolean is
+   begin
+      return False;
+   end Windows;
+
 end Ada.Directories.Validity;