aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-dirval.adb
diff options
context:
space:
mode:
authorVincent Celier <celier@adacore.com>2007-06-06 12:49:20 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-06-06 12:49:20 +0200
commitc2a49ce6276acab7961cc99b9692f77181721ecd (patch)
tree4e4642e3fdd77b04204a596480780a81c06decec /gcc/ada/a-dirval.adb
parentcb65368d57a94a8b9b2e4a5c098cf3777f4d8dad (diff)
downloadgcc-c2a49ce6276acab7961cc99b9692f77181721ecd.zip
gcc-c2a49ce6276acab7961cc99b9692f77181721ecd.tar.gz
gcc-c2a49ce6276acab7961cc99b9692f77181721ecd.tar.bz2
a-dirval-vms.adb, [...] (Windows): New Boolean function.
2007-04-20 Vincent Celier <celier@adacore.com> * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean function. * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive letter if it is not followed by a '/' or a '\'. (Windows): New Boolean function * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma Ada 2005. (Containing_Directory): On Windows, keep at least one '/' or '\' after a drive letter. (Containing_Directory): Raise Use_Error when the directory is a root directory. (Extension): When returning the result, use a conversion to Result_Type, not a qualification. From-SVN: r125468
Diffstat (limited to 'gcc/ada/a-dirval.adb')
-rw-r--r--gcc/ada/a-dirval.adb11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ada/a-dirval.adb b/gcc/ada/a-dirval.adb
index d4395e1..b458264 100644
--- a/gcc/ada/a-dirval.adb
+++ b/gcc/ada/a-dirval.adb
@@ -7,7 +7,7 @@
-- B o d y --
-- (POSIX Version) --
-- --
--- Copyright (C) 2004-2005, 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- --
@@ -103,4 +103,13 @@ package body Ada.Directories.Validity is
return False;
end OpenVMS;
+ -------------
+ -- Windows --
+ -------------
+
+ function Windows return Boolean is
+ begin
+ return False;
+ end Windows;
+
end Ada.Directories.Validity;