if(blc_status==BLC_RUN){//in BLC_PAUSE it is normal to block
if(iteration==blc_loop_iteration){
if(iteration==(int)blc_loop_iteration){
color_eprintf(BLC_YELLOW,"'%s' seems blocked on iteration '%d'. The loop has been stopped for more than %ds\n",blc_program_id,iteration,checking_time);
if(blc_profile_file)fflush(blc_profile_file);//It may help for debuggage
// This is a bit redundant with struct option but has we need to send an array of struct option to getopt_long, we need two independant arrays: one with struct option and one with type_program_option.
typedefstruct{
structProgram_option{
inttype;
union{
// blc_channel *channel;
...
...
@@ -60,9 +64,9 @@ typedef struct {
charconst*parameter;
charconst*help;
charconst*default_value;
}type_program_option;
};
structprogram_parameter{
structProgram_parameter{
inttype;
union{
// blc_channel *channel;
...
...
@@ -83,10 +87,8 @@ int blc_input_terminal, blc_output_terminal;
// if ((parameter) && (default_value)) EXIT_ON_ERROR("option '%s': you cannot required an parameter '%s' and having a default value '%s'", long_option, parameter, default_value);
}//EXIT_ON_ERROR("Missing '%s' arguments : %s you must have %d arguments", blc_program_parameters[i].name, blc_program_parameters[i].help, missing_parameters_nb);