Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
44dc769f
Commit
44dc769f
authored
Jul 07, 2016
by
Maxime Perrotin
Browse files
gui backend: add prototypes
parent
81e7210d
Pipeline
#428
skipped
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
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
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