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
f5e34296
Commit
f5e34296
authored
Apr 24, 2015
by
Julien
Browse files
SCADE and Simulink program have local include
clauses
parent
b1cd5d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/ocarina-backends-c_common-mapping.adb
View file @
f5e34296
...
...
@@ -2457,8 +2457,8 @@ package body Ocarina.Backends.C_Common.Mapping is
when
Subprogram_Simulink
=>
Add_Include
(
Make_Include_Clause
(
Make_Defining_Identifier
(
Get_Source_Name
(
S
),
Fals
e
),
Fals
e
),
(
Make_Defining_Identifier
(
Get_Source_Name
(
S
),
Tru
e
),
Tru
e
),
True
);
if
not
AINU
.
Is_Empty
(
Features
(
S
))
then
...
...
@@ -2540,7 +2540,7 @@ package body Ocarina.Backends.C_Common.Mapping is
when
Subprogram_Scade
=>
Add_Include
(
Make_Include_Clause
(
Map_Scade_Function_Name
(
S
)),
(
Make_Include_Clause
(
Map_Scade_Function_Name
(
S
)
,
True
),
Preserve_Case
=>
True
);
-- At first, we declare structures used as parameters
-- for SCADE functions. So, if the subprograms has IN
...
...
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