Example #1
0
void
cmdline_parser_init (struct gengetopt_args_info *args_info)
{
  clear_given (args_info);
  clear_args (args_info);
  init_args_info (args_info);
}
Example #2
0
void
cmdline_parser_init (struct gengetopt_args_info *args_info)
{
  clear_given (args_info);
  clear_args (args_info);
  init_args_info (args_info);

  args_info->inputs = NULL;
  args_info->inputs_num = 0;
}
Example #3
0
static void
cmdline_parser_release (struct gengetopt_args_info *args_info)
{
  
  unsigned int i;
  
  for (i = 0; i < args_info->inputs_num; ++i)
    free (args_info->inputs [i]);
  
  if (args_info->inputs_num)
    free (args_info->inputs);
  
  clear_given (args_info);
}
static void
cmdline_parser_release (struct gengetopt_args_info *args_info)
{
  
  unsigned int i;
  if (args_info->output_arg)
    {
      free (args_info->output_arg); /* free previous argument */
      args_info->output_arg = 0;
    }
  if (args_info->output_orig)
    {
      free (args_info->output_orig); /* free previous argument */
      args_info->output_orig = 0;
    }
  if (args_info->input_arg)
    {
      free (args_info->input_arg); /* free previous argument */
      args_info->input_arg = 0;
    }
  if (args_info->input_orig)
    {
      free (args_info->input_orig); /* free previous argument */
      args_info->input_orig = 0;
    }
  if (args_info->blocksize_orig)
    {
      free (args_info->blocksize_orig); /* free previous argument */
      args_info->blocksize_orig = 0;
    }
  if (args_info->octave_orig)
    {
      free (args_info->octave_orig); /* free previous argument */
      args_info->octave_orig = 0;
    }
  if (args_info->vox_orig)
    {
      free (args_info->vox_orig); /* free previous argument */
      args_info->vox_orig = 0;
    }
  
  for (i = 0; i < args_info->inputs_num; ++i)
    free (args_info->inputs [i]);
  
  if (args_info->inputs_num)
    free (args_info->inputs);
  
  clear_given (args_info);
}
Example #5
0
static void
cmdline_parser_release (struct gengetopt_args_info *args_info)
{
  
  if (args_info->port_orig)
    {
      free (args_info->port_orig); /* free previous argument */
      args_info->port_orig = 0;
    }
  if (args_info->front_arg)
    {
      free (args_info->front_arg); /* free previous argument */
      args_info->front_arg = 0;
    }
  if (args_info->front_orig)
    {
      free (args_info->front_orig); /* free previous argument */
      args_info->front_orig = 0;
    }
  if (args_info->quit_key_arg)
    {
      free (args_info->quit_key_arg); /* free previous argument */
      args_info->quit_key_arg = 0;
    }
  if (args_info->quit_key_orig)
    {
      free (args_info->quit_key_orig); /* free previous argument */
      args_info->quit_key_orig = 0;
    }
  if (args_info->launch_key_arg)
    {
      free (args_info->launch_key_arg); /* free previous argument */
      args_info->launch_key_arg = 0;
    }
  if (args_info->launch_key_orig)
    {
      free (args_info->launch_key_orig); /* free previous argument */
      args_info->launch_key_orig = 0;
    }
  
  clear_given (args_info);
}
Example #6
0
static void
cmdline_parser_release (struct gengetopt_args_info *args_info)
{
  
  unsigned int i;
  if (args_info->lanes_conf_arg)
    {
      free (args_info->lanes_conf_arg); /* free previous argument */
      args_info->lanes_conf_arg = 0;
    }
  if (args_info->lanes_conf_orig)
    {
      free (args_info->lanes_conf_orig); /* free previous argument */
      args_info->lanes_conf_orig = 0;
    }
  if (args_info->stoplines_conf_arg)
    {
      free (args_info->stoplines_conf_arg); /* free previous argument */
      args_info->stoplines_conf_arg = 0;
    }
  if (args_info->stoplines_conf_orig)
    {
      free (args_info->stoplines_conf_orig); /* free previous argument */
      args_info->stoplines_conf_orig = 0;
    }
  if (args_info->camera_conf_arg)
    {
      free (args_info->camera_conf_arg); /* free previous argument */
      args_info->camera_conf_arg = 0;
    }
  if (args_info->camera_conf_orig)
    {
      free (args_info->camera_conf_orig); /* free previous argument */
      args_info->camera_conf_orig = 0;
    }
  if (args_info->list_file_arg)
    {
      free (args_info->list_file_arg); /* free previous argument */
      args_info->list_file_arg = 0;
    }
  if (args_info->list_file_orig)
    {
      free (args_info->list_file_orig); /* free previous argument */
      args_info->list_file_orig = 0;
    }
  if (args_info->list_path_arg)
    {
      free (args_info->list_path_arg); /* free previous argument */
      args_info->list_path_arg = 0;
    }
  if (args_info->list_path_orig)
    {
      free (args_info->list_path_orig); /* free previous argument */
      args_info->list_path_orig = 0;
    }
  if (args_info->image_file_arg)
    {
      free (args_info->image_file_arg); /* free previous argument */
      args_info->image_file_arg = 0;
    }
  if (args_info->image_file_orig)
    {
      free (args_info->image_file_orig); /* free previous argument */
      args_info->image_file_orig = 0;
    }
  if (args_info->wait_orig)
    {
      free (args_info->wait_orig); /* free previous argument */
      args_info->wait_orig = 0;
    }
  if (args_info->output_suffix_arg)
    {
      free (args_info->output_suffix_arg); /* free previous argument */
      args_info->output_suffix_arg = 0;
    }
  if (args_info->output_suffix_orig)
    {
      free (args_info->output_suffix_orig); /* free previous argument */
      args_info->output_suffix_orig = 0;
    }
  
  for (i = 0; i < args_info->inputs_num; ++i)
    free (args_info->inputs [i]);
  
  if (args_info->inputs_num)
    free (args_info->inputs);
  
  clear_given (args_info);
}
Example #7
0
static void
cmdline_parser_release (struct gengetopt_args_info *args_info)
{
  
  if (args_info->conf_arg)
    {
      free (args_info->conf_arg); /* free previous argument */
      args_info->conf_arg = 0;
    }
  if (args_info->conf_orig)
    {
      free (args_info->conf_orig); /* free previous argument */
      args_info->conf_orig = 0;
    }
  if (args_info->pidfile_arg)
    {
      free (args_info->pidfile_arg); /* free previous argument */
      args_info->pidfile_arg = 0;
    }
  if (args_info->pidfile_orig)
    {
      free (args_info->pidfile_orig); /* free previous argument */
      args_info->pidfile_orig = 0;
    }
  if (args_info->statedir_arg)
    {
      free (args_info->statedir_arg); /* free previous argument */
      args_info->statedir_arg = 0;
    }
  if (args_info->statedir_orig)
    {
      free (args_info->statedir_orig); /* free previous argument */
      args_info->statedir_orig = 0;
    }
  if (args_info->listen_arg)
    {
      free (args_info->listen_arg); /* free previous argument */
      args_info->listen_arg = 0;
    }
  if (args_info->listen_orig)
    {
      free (args_info->listen_orig); /* free previous argument */
      args_info->listen_orig = 0;
    }
  if (args_info->net_arg)
    {
      free (args_info->net_arg); /* free previous argument */
      args_info->net_arg = 0;
    }
  if (args_info->net_orig)
    {
      free (args_info->net_orig); /* free previous argument */
      args_info->net_orig = 0;
    }
  if (args_info->ipup_arg)
    {
      free (args_info->ipup_arg); /* free previous argument */
      args_info->ipup_arg = 0;
    }
  if (args_info->ipup_orig)
    {
      free (args_info->ipup_orig); /* free previous argument */
      args_info->ipup_orig = 0;
    }
  if (args_info->ipdown_arg)
    {
      free (args_info->ipdown_arg); /* free previous argument */
      args_info->ipdown_arg = 0;
    }
  if (args_info->ipdown_orig)
    {
      free (args_info->ipdown_orig); /* free previous argument */
      args_info->ipdown_orig = 0;
    }
  if (args_info->dynip_arg)
    {
      free (args_info->dynip_arg); /* free previous argument */
      args_info->dynip_arg = 0;
    }
  if (args_info->dynip_orig)
    {
      free (args_info->dynip_orig); /* free previous argument */
      args_info->dynip_orig = 0;
    }
  if (args_info->statip_arg)
    {
      free (args_info->statip_arg); /* free previous argument */
      args_info->statip_arg = 0;
    }
  if (args_info->statip_orig)
    {
      free (args_info->statip_orig); /* free previous argument */
      args_info->statip_orig = 0;
    }
  if (args_info->pcodns1_arg)
    {
      free (args_info->pcodns1_arg); /* free previous argument */
      args_info->pcodns1_arg = 0;
    }
  if (args_info->pcodns1_orig)
    {
      free (args_info->pcodns1_orig); /* free previous argument */
      args_info->pcodns1_orig = 0;
    }
  if (args_info->pcodns2_arg)
    {
      free (args_info->pcodns2_arg); /* free previous argument */
      args_info->pcodns2_arg = 0;
    }
  if (args_info->pcodns2_orig)
    {
      free (args_info->pcodns2_orig); /* free previous argument */
      args_info->pcodns2_orig = 0;
    }
  if (args_info->timelimit_orig)
    {
      free (args_info->timelimit_orig); /* free previous argument */
      args_info->timelimit_orig = 0;
    }
  if (args_info->apn_arg)
    {
      free (args_info->apn_arg); /* free previous argument */
      args_info->apn_arg = 0;
    }
  if (args_info->apn_orig)
    {
      free (args_info->apn_orig); /* free previous argument */
      args_info->apn_orig = 0;
    }
  if (args_info->qos_orig)
    {
      free (args_info->qos_orig); /* free previous argument */
      args_info->qos_orig = 0;
    }
  
  clear_given (args_info);
}