Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libcfg+/src/shared.c between version 1.7 and 1.8

version 1.7, 2002/04/04 17:10:58 version 1.8, 2002/04/07 16:42:33
Line 36  static int split_multi_arg(const CFG_CON
Line 36  static int split_multi_arg(const CFG_CON
 static int unquote_single_arg(const CFG_CONTEXT con, char *arg);  static int unquote_single_arg(const CFG_CONTEXT con, char *arg);
   
 /*  /*
  * __cfg_free_currents()   * EXTERN FUNCTIONS
  *  
  * Frees allocated memory for cur_opt, cur_arg.  
  * Sets cur_opt_type to CFG_NONE_OPTION.  
  */   */
   
         void          void
Line 53  __cfg_free_currents(con)
Line 50  __cfg_free_currents(con)
   
         con->cur_opt = con->cur_arg = NULL;          con->cur_opt = con->cur_arg = NULL;
         con->cur_opt_type = CFG_NONE_OPTION;          con->cur_opt_type = CFG_NONE_OPTION;
   
 }  }
   
 /*  
  * __cfg_process_currents()  
  *  
  * Process current option and argument. It suppose that in context con  
  * are cur_opt, cur_arg and cur_type set.  
  */  
   
         int          int
 __cfg_process_currents(con, ret_val, arg_used)  __cfg_process_currents(con, ret_val, arg_used)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;
Line 103  __cfg_process_currents(con, ret_val, arg
Line 92  __cfg_process_currents(con, ret_val, arg
         if (opt_idx < 0)          if (opt_idx < 0)
                 return CFG_ERROR_UNKNOWN;                  return CFG_ERROR_UNKNOWN;
   
         if ( ! (con->flags & CFG_IGNORE_MULTI)          if (! (con->flags & CFG_IGNORE_MULTI)
                         && ! (con->options[opt_idx].type & CFG_MULTI)) {                          && ! (con->options[opt_idx].type & CFG_MULTI)) {
                 ret = add_to_used_opt_idx(con, opt_idx);                  ret = add_to_used_opt_idx(con, opt_idx);
   
Line 258  __cfg_process_currents(con, ret_val, arg
Line 247  __cfg_process_currents(con, ret_val, arg
         return CFG_OK;          return CFG_OK;
 }  }
   
 /*  
  * __cfg_cmdline_set_curents()  
  *  
  * Function allocate and initialize variables con->cur_opt and con->cur_arg  
  * according to con->argv[con->cur_idx].  
  * Returns 1 on success, 0 on error (not enough memory).  
  */  
   
         int          int
 __cfg_cmdline_set_currents(con)  __cfg_cmdline_set_currents(con)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;
Line 367  __cfg_cmdline_set_currents(con)
Line 348  __cfg_cmdline_set_currents(con)
         return 1;          return 1;
 }  }
   
 /*  
  * __cfg_cfgfile_set_curents()  
  *  
  * Function allocate and initialize variables con->cur_opt and con->cur_arg  
  * according to input parameter buf.  
  * Returns 1 on success, 0 on error (not enough memory).  
  */  
   
         int          int
 __cfg_cfgfile_set_currents(con, buf)  __cfg_cfgfile_set_currents(con, buf)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top