Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
buildsupport
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
buildsupport
Commits
44dc769f
Commit
44dc769f
authored
Jul 07, 2016
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui backend: add prototypes
parent
81e7210d
Pipeline
#428
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
c/build_gui_glue.c
c/build_gui_glue.c
+12
-2
c/model_transformation.c
c/model_transformation.c
+5
-3
No files found.
c/build_gui_glue.c
View file @
44dc769f
...
...
@@ -952,8 +952,18 @@ void add_RI_to_gui_glue(Interface * i)
// 4. Create the macro for encoding and sending to VM
//
// Modified by MP 8-8-8 to reuse invoke_ri.c
fprintf
(
header_id
,
"#define INVOKE_RI_%s(params) %s_RI_%s("
,
i
->
name
,
i
->
parent_fv
->
name
,
i
->
name
);
// Modified by MP 7-7-16 to declare the prototype
fprintf
(
header_id
,
"void %s_RI_%s("
,
i
->
parent_fv
->
name
,
i
->
name
);
bool
comma
=
false
;
FOREACH
(
param
,
Parameter
,
i
->
in
,
{
fprintf
(
header_id
,
"%sasn1Scc%s *"
,
comma
?
", "
:
""
,
param
->
type
);
comma
=
true
;
});
fprintf
(
header_id
,
");
\n\n
"
"#define INVOKE_RI_%s(params) %s_RI_%s("
,
i
->
name
,
i
->
parent_fv
->
name
,
i
->
name
);
tmp
=
i
->
in
;
// Add parameters
while
(
NULL
!=
tmp
)
{
...
...
c/model_transformation.c
View file @
44dc769f
...
...
@@ -26,12 +26,14 @@
/* External interface */
void
ModelTransformation_Backend
(
System
*
s
)
{
(
void
)
s
;
FOREACH
(
fv
,
FV
,
s
->
functions
,
{
Interface_list
*
pis
=
NULL
;
Interface_list
*
old_pis
=
NULL
;
// to store the PIs to replace
Interface_list
*
new_pis
=
NULL
;
// to store the newly created PIs
(
void
)
old_pis
;
(
void
)
new_pis
;
FOREACH
(
pi
,
Interface
,
fv
->
interfaces
,
{
if
(
sporadic
==
pi
->
rcm
&&
PI
==
pi
->
direction
)
{
ADD_TO_SET
(
Interface
,
pis
,
pi
)
//
ADD_TO_SET(Interface, pis, pi)
}
});
});
...
...
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