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
f4857d6e
Commit
f4857d6e
authored
16 years ago
by
Arnaud Charlet
Committed by
Arnaud Charlet
16 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g-comlin.ads: Update comments. Add new paramter Add_Before.
From-SVN: r139292
parent
8b4261b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
gcc/ada/ChangeLog
+4
-0
gcc/ada/g-comlin.ads
+16
-11
No files found.
gcc/ada/ChangeLog
View file @
f4857d6e
2008
-
08
-
20
Arnaud
Charlet
<
charlet
@
adacore
.
com
>
*
g
-
comlin
.
ads
:
Update
comments
.
2008
-
08
-
20
Ed
Schonberg
<
schonberg
@
adacore
.
com
>
*
sem_ch8
.
adb
(
Analyze_Subprogram_Renaming
):
Inherit
Is_Imported
flag
.
This diff is collapsed.
Click to expand it.
gcc/ada/g-comlin.ads
View file @
f4857d6e
...
...
@@ -576,11 +576,12 @@ package GNAT.Command_Line is
--
This
function
can
be
used
to
reset
Cmd
by
passing
an
empty
string
.
procedure
Add_Switch
(
Cmd
:
in
out
Command_Line
;
Switch
:
String
;
Parameter
:
String
:=
""
;
Separator
:
Character
:=
' '
;
Section
:
String
:=
""
);
(
Cmd
:
in
out
Command_Line
;
Switch
:
String
;
Parameter
:
String
:=
""
;
Separator
:
Character
:=
' '
;
Section
:
String
:=
""
;
Add_Before
:
Boolean
:=
False
);
--
Add
a
new
switch
to
the
command
line
,
and
combine
/
group
it
with
existing
--
switches
if
possible
.
Nothing
is
done
if
the
switch
already
exists
with
--
the
same
parameter
.
...
...
@@ -608,14 +609,18 @@ package GNAT.Command_Line is
--
the
switch
is
correctly
placed
in
the
command
line
,
and
the
section
--
added
if
not
already
present
.
For
example
,
to
add
the
-
g
switch
into
the
--
-
cargs
section
,
you
need
to
call
(
Cmd
,
"-g"
,
Section
=>
"-cargs"
)
--
--
Add_Before
allows
insertion
of
the
switch
at
the
begining
of
the
command
--
line
.
procedure
Add_Switch
(
Cmd
:
in
out
Command_Line
;
Switch
:
String
;
Parameter
:
String
:=
""
;
Separator
:
Character
:=
' '
;
Section
:
String
:=
""
;
Success
:
out
Boolean
);
(
Cmd
:
in
out
Command_Line
;
Switch
:
String
;
Parameter
:
String
:=
""
;
Separator
:
Character
:=
' '
;
Section
:
String
:=
""
;
Add_Before
:
Boolean
:=
False
;
Success
:
out
Boolean
);
--
Same
as
above
,
returning
the
status
of
--
the
operation
...
...
This diff is collapsed.
Click to expand it.
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