Commit 44dc769f authored by Maxime Perrotin's avatar Maxime Perrotin

gui backend: add prototypes

parent 81e7210d
Pipeline #428 skipped
......@@ -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) {
......
......@@ -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)
}
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment