Commit 82c88e88 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Minor - cosmetics

parent ea61a49e
...@@ -402,7 +402,6 @@ void add_RI_to_ada_wrappers(Interface * i) ...@@ -402,7 +402,6 @@ void add_RI_to_ada_wrappers(Interface * i)
{ {
Parameter_list *tmp; Parameter_list *tmp;
int count = 0; int count = 0;
FV_list *calltmp = NULL;
FILE *s = ads, *b = adb; FILE *s = ads, *b = adb;
...@@ -569,10 +568,8 @@ void add_RI_to_ada_wrappers(Interface * i) ...@@ -569,10 +568,8 @@ void add_RI_to_ada_wrappers(Interface * i)
fprintf(b, fprintf(b,
"\t\t -- It must use its calling thread to invoke this asynchronous RI\n\n"); "\t\t -- It must use its calling thread to invoke this asynchronous RI\n\n");
/* ForEachWithParam element of i->parent_fv->calling_threads, /* Build the list of calling threads for this RI */
execute CountFV and update & count thanks;*/ FV_list *calltmp = NULL;
/* Count the number of calling threads */
if (NULL == i->calling_pis) calltmp = i->parent_fv->calling_threads; if (NULL == i->calling_pis) calltmp = i->parent_fv->calling_threads;
else { else {
FOREACH(calling_pi, Interface, i->calling_pis, { FOREACH(calling_pi, Interface, i->calling_pis, {
...@@ -581,6 +578,8 @@ void add_RI_to_ada_wrappers(Interface * i) ...@@ -581,6 +578,8 @@ void add_RI_to_ada_wrappers(Interface * i)
}); });
}); });
} }
/* Count the number of calling threads */
FOREACH(ct, FV, calltmp, { FOREACH(ct, FV, calltmp, {
(void) ct; (void) ct;
count ++; count ++;
......
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