Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1a7e4df4
Commit
1a7e4df4
authored
Oct 26, 2001
by
Geert Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* osint.adb (Is_Relative): Remove duplicate.
From-SVN: r46504
parent
90a9fff2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
gcc/ada/ChangeLog
+5
-1
gcc/ada/osint.adb
+0
-20
No files found.
gcc/ada/ChangeLog
View file @
1a7e4df4
2001-10-25 Geert Bosch <bosch@gnat.com>
* osint.adb (Is_Relative): Remove duplicate.
2001-10-25 Pascal Obry <obry@gnat.com>
* osint.adb (Read_Default_Search_Dirs): correctly detect relative
...
...
@@ -7,7 +11,7 @@
* osint.adb: Minor reformatting
* osint.adb (Is_Relative): implementation using
GNAT.OS_Lib.Is_Absolute_Path. Better fix
for 8121-009
.
GNAT.OS_Lib.Is_Absolute_Path. Better fix.
2001-10-25 Pascal Obry <obry@gnat.com>
...
...
gcc/ada/osint.adb
View file @
1a7e4df4
...
...
@@ -1681,26 +1681,6 @@ package body Osint is
Search_Dir_Default_Name : String_Access)
return String_Access
is
function Is_Relative (S : String; K : Positive) return Boolean;
-- Returns True if a relative directory specification is found in S at
-- position K.
function Is_Relative (S : String; K : Positive) return Boolean is
begin
return
not (Is_Directory_Separator (S (K)) -- Unix style absolute pathname
or else -- DOS style absolute pathname with drive letter
(S'
Last
>
K
+
2
and
then
(
S
(
K
)
in
'a'
..
'z'
or
else
S
(
K
)
in
'A'
..
'Z'
)
and
then
S
(
K
+
1
)
=
':'
and
then
Is_Directory_Separator
(
S
(
K
+
2
))));
end
Is_Relative
;
Prefix_Len : constant Integer := Search_Dir_Prefix.all'
Length
;
Buffer
:
String
(
1
..
Prefix_Len
+
Search_File
.
all
'Length + 1);
File_FD : File_Descriptor;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment