Commit d4a5a3c2 authored by yoogx's avatar yoogx

* Add fflush(stdout), minor reformatting

parent db19db02
......@@ -27,11 +27,13 @@ void user_emit_boolean( int* boolean)
}
*boolean = boolean_type_var;
printf ("Sending boolean : %d\n", *boolean);
fflush (stdout);
}
void user_receive_boolean (int boolean)
{
printf ("Receiving boolean : %d\n", boolean);
fflush (stdout);
}
void user_emit_integer (int* integer)
......@@ -39,13 +41,17 @@ void user_emit_integer (int* integer)
integer_type_var++;
*integer = integer_type_var;
printf ("Emetting integer : %d\n", *integer);
fflush (stdout);
}
void user_emit_array (software__array_type* data_source)
{
int i;
for (i = 0; i < 16; i++)
(*data_source)[i]=i;
{
(*data_source)[i]=i;
}
}
void user_emit_bounded_array (software__bounded_array_type* data_source)
......@@ -57,11 +63,13 @@ void user_emit_bounded_array (software__bounded_array_type* data_source)
printf ("Emetting bounded array\n");
printf ("\n");
fflush (stdout);
}
void user_receive_integer (int integer)
{
printf ("Receiving integer : %d\n", integer);
fflush (stdout);
}
void user_emit_struct (software__struct_type_impl *v)
......@@ -91,7 +99,7 @@ void user_receive_array (software__array_type data)
for (i = 0; i < 16; i++)
assert (data[i] == i);
printf (" OK \n");
printf ("\n");
fflush(stdout);
}
......@@ -99,6 +107,7 @@ void user_receive_bounded_array (software__bounded_array_type data)
{
int i;
printf("Receive bounded array: %d", data.length);
fflush (stdout);
for (i = 0; i < data.length; i++)
assert (data.data[i] == i);
......
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