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
7d903840
Commit
7d903840
authored
Apr 08, 2008
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* makeutl.adb (Path_Or_File_Name): New function
From-SVN: r134071
parent
fbfc8ef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
4 deletions
+32
-4
gcc/ada/makeutl.adb
+32
-4
No files found.
gcc/ada/makeutl.adb
View file @
7d903840
...
...
@@ -6,7 +6,7 @@
--
--
--
B
o
d
y
--
--
--
--
Copyright
(
C
)
2004
-
200
7
,
Free
Software
Foundation
,
Inc
.
--
--
Copyright
(
C
)
2004
-
200
8
,
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
-
--
...
...
@@ -23,7 +23,7 @@
--
--
------------------------------------------------------------------------------
with
Ada
.
Command_Line
;
use
Ada
.
Command_Line
;
with
Debug
;
with
Osint
;
use
Osint
;
with
Output
;
use
Output
;
with
Prj
.
Ext
;
...
...
@@ -31,6 +31,10 @@ with Prj.Util;
with
Snames
;
use
Snames
;
with
Table
;
with
Ada
.
Command_Line
;
use
Ada
.
Command_Line
;
with
GNAT
.
Directory_Operations
;
use
GNAT
.
Directory_Operations
;
with
System
.
Case_Util
;
use
System
.
Case_Util
;
with
System
.
HTable
;
...
...
@@ -41,7 +45,7 @@ package body Makeutl is
Index
:
Int
;
end
record
;
--
Identify
either
a
mono
-
unit
source
(
when
Index
=
0
)
or
a
specific
unit
--
in
a
multi
-
unit
source
.
--
(
index
=
1
's origin index of unit)
in a multi-unit source.
-- There follow many global undocumented declarations, comments needed ???
...
...
@@ -271,7 +275,17 @@ package body Makeutl is
if
N
/=
No_Name
then
Write_Str
(
""""
);
Write_Name (N);
declare
Name
:
constant
String
:=
Get_Name_String
(
N
);
begin
if
Debug
.
Debug_Flag_F
and
then
Is_Absolute_Path
(
Name
)
then
Write_Str
(
File_Name
(
Name
));
else
Write_Str
(
Name
);
end
if
;
end
;
Write_Str
(
""" "
);
end
if
;
...
...
@@ -545,6 +559,20 @@ package body Makeutl is
Marks
.
Set
(
K
=>
(
File
=>
Source_File
,
Index
=>
Index
),
E
=>
True
);
end
Mark
;
-----------------------
--
Path_Or_File_Name
--
-----------------------
function
Path_Or_File_Name
(
Path
:
Path_Name_Type
)
return
String
is
Path_Name
:
constant
String
:=
Get_Name_String
(
Path
);
begin
if
Debug
.
Debug_Flag_F
then
return
File_Name
(
Path_Name
);
else
return
Path_Name
;
end
if
;
end
Path_Or_File_Name
;
---------------------------
--
Test_If_Relative_Path
--
---------------------------
...
...
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