Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
ae6fbe3d
Commit
ae6fbe3d
authored
Dec 09, 2014
by
Julien
Browse files
remove the space in the beginning of the
identifier. Fix deos configuration generation.
parent
3220cfd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/ocarina-backends-deos_conf-mapping.adb
View file @
ae6fbe3d
with
Ada
.
Strings
;
use
Ada
.
Strings
;
with
Ada
.
Strings
.
Fixed
;
use
Ada
.
Strings
.
Fixed
;
with
Ocarina
.
Namet
;
use
Ocarina
.
Namet
;
with
Ocarina
.
ME_AADL
;
with
Ocarina
.
ME_AADL
.
AADL_Tree
.
Nodes
;
with
Ocarina
.
ME_AADL
.
AADL_Tree
.
Entities
;
...
...
@@ -984,8 +987,13 @@ package body Ocarina.Backends.Deos_Conf.Mapping is
(
Parent_Subcomponent
(
Runtime
)))),
Partition_Node
);
--
-- Integer'Image adds a space in the beginning. To avoid that,
-- see http://rosettacode.org/wiki/
-- Strip_whitespace_from_a_string/Top_and_tail#Ada
--
XTU
.
Add_Attribute
(
"Identifier"
,
Integer
'
Image
(
Partition_Identifier
),
Trim
(
Integer
'
Image
(
Partition_Identifier
),
Left
),
Partition_Node
);
XTU
.
Add_Attribute
(
"Period"
,
"25000000"
,
Partition_Node
);
XTU
.
Add_Attribute
(
"Duration"
,
"6000000"
,
Partition_Node
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment