Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ocarina
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TASTE
ocarina
Commits
36a36e9a
PL1
Commit
36a36e9a
authored
5 years ago
by
Maxime Francois Perrotin
Browse files
Options
Downloads
Plain Diff
Merge
https://github.com/openaadl/ocarina
parents
8d850208
3b85ace5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backends/po_hi_c/ocarina-backends-po_hi_c-deployment.adb
+16
-18
16 additions, 18 deletions
src/backends/po_hi_c/ocarina-backends-po_hi_c-deployment.adb
with
16 additions
and
18 deletions
src/backends/po_hi_c/ocarina-backends-po_hi_c-deployment.adb
+
16
−
18
View file @
36a36e9a
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-20
19
ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-20
20
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
...
...
@@ -1381,26 +1381,24 @@ package body Ocarina.Backends.PO_HI_C.Deployment is
Global_Port_Model_Names
);
end
if
;
if
not
Is_Empty
(
Local_Port_List
)
then
if
not
Invalid_Local_Port_Added
then
Set_Str_To_Name_Buffer
(
"invalid_local_port_t"
);
N
:=
Make_Expression
(
Make_Defining_Identifier
(
Name_Find
),
Op_Equal
,
(
Make_Literal
(
CV
.
New_Int_Value
(
1
,
-
1
,
10
))));
Append_Node_To_List
(
N
,
Local_Port_List
);
Invalid_Local_Port_Added
:=
True
;
end
if
;
if
not
Invalid_Local_Port_Added
then
Set_Str_To_Name_Buffer
(
"invalid_local_port_t"
);
N
:=
Make_Full_Type_Declaration
(
Defining_Identifier
=>
RE
(
RE_Local_Port_T
),
Type_Definition
=>
Make_Enum_Aggregate
(
Local_Port_List
));
Append_Node_To_List
(
N
,
CTN
.
Declarations
(
Current_File
));
Make_Expression
(
Make_Defining_Identifier
(
Name_Find
),
Op_Equal
,
(
Make_Literal
(
CV
.
New_Int_Value
(
1
,
-
1
,
10
))));
Append_Node_To_List
(
N
,
Local_Port_List
);
Invalid_Local_Port_Added
:=
True
;
end
if
;
N
:=
Make_Full_Type_Declaration
(
Defining_Identifier
=>
RE
(
RE_Local_Port_T
),
Type_Definition
=>
Make_Enum_Aggregate
(
Local_Port_List
));
Append_Node_To_List
(
N
,
CTN
.
Declarations
(
Current_File
));
N
:=
Make_Define_Statement
(
Defining_Identifier
=>
RE
(
RE_Nb_Devices
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment