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.4 and 1.5

version 1.4, 2002/02/17 15:18:45 version 1.5, 2002/02/25 18:45:56
Line 42  static int unquote_single_arg(const CFG_
Line 42  static int unquote_single_arg(const CFG_
  * Sets cur_opt_type to CFG_NONE_OPTION.   * Sets cur_opt_type to CFG_NONE_OPTION.
  */   */
   
 void __cfg_free_currents(const CFG_CONTEXT con)          void
   __cfg_free_currents(con)
           const CFG_CONTEXT con;
 {  {
         if (con->cur_opt != NULL)          if (con->cur_opt != NULL)
                 free(con->cur_opt);                  free(con->cur_opt);
Line 61  void __cfg_free_currents(const CFG_CONTE
Line 63  void __cfg_free_currents(const CFG_CONTE
  * are cur_opt, cur_arg and cur_type set.   * are cur_opt, cur_arg and cur_type set.
  */   */
   
 int __cfg_process_currents(const CFG_CONTEXT con, int *ret_val, int *arg_used)          int
   __cfg_process_currents(con, ret_val, arg_used)
           const CFG_CONTEXT con;
           int               *ret_val;
           int               *arg_used;
 {  {
         register int ret = 0;          register int ret = 0;
         register int opt_idx;          register int opt_idx;
Line 260  int __cfg_process_currents(const CFG_CON
Line 266  int __cfg_process_currents(const CFG_CON
  * Returns 1 on success, 0 on error (not enough memory).   * Returns 1 on success, 0 on error (not enough memory).
  */   */
   
 int __cfg_cmdline_set_currents(const CFG_CONTEXT con)          int
   __cfg_cmdline_set_currents(con)
           const CFG_CONTEXT con;
 {  {
         register int i, size;          register int i, size;
         register char *s, *s_sep, *s_tmp;          register char *s, *s_sep, *s_tmp;
Line 367  int __cfg_cmdline_set_currents(const CFG
Line 375  int __cfg_cmdline_set_currents(const CFG
  * Returns 1 on success, 0 on error (not enough memory).   * Returns 1 on success, 0 on error (not enough memory).
  */   */
   
 int __cfg_cfgfile_set_currents(const CFG_CONTEXT con, char *buf)          int
   __cfg_cfgfile_set_currents(con, buf)
           const CFG_CONTEXT con;
           char              *buf;
 {  {
         register char **pos;          register char **pos;
         register char *s_sep, *s_tmp;          register char *s_sep, *s_tmp;
Line 421  int __cfg_cfgfile_set_currents(const CFG
Line 432  int __cfg_cfgfile_set_currents(const CFG
  * Returns index on success or -1 if not found.   * Returns index on success or -1 if not found.
  */   */
   
 static int search_cur_opt_idx(const CFG_CONTEXT con)          static int
   search_cur_opt_idx(con)
           const CFG_CONTEXT con;
 {  {
         register int i;          register int i;
   
Line 489  static int search_cur_opt_idx(const CFG_
Line 502  static int search_cur_opt_idx(const CFG_
  * opt_idx was sucessfully added to array.   * opt_idx was sucessfully added to array.
  */   */
   
 static int add_to_used_opt_idx(const CFG_CONTEXT con, int opt_idx)          static int
   add_to_used_opt_idx(con, opt_idx)
           const CFG_CONTEXT con;
           int               opt_idx;
 {  {
         int *p_i = NULL;          int *p_i = NULL;
   
Line 543  static int add_to_used_opt_idx(const CFG
Line 559  static int add_to_used_opt_idx(const CFG
  * and than is store_single_arg() function called with appropriate parameters.   * and than is store_single_arg() function called with appropriate parameters.
  */   */
   
 static int store_multi_arg(const int type, const char **multi_arg, void ***ar)          static int
   store_multi_arg(type, multi_arg, ar)
           const int  type;
           const char **multi_arg;
           void       ***ar;
 {  {
         register int ptr_len, item_len;          register int ptr_len, item_len;
         register int size_plus, size;          register int size_plus, size;
Line 620  static int store_multi_arg(const int typ
Line 640  static int store_multi_arg(const int typ
  * to specified place pointed by where.   * to specified place pointed by where.
  */   */
   
 static int store_single_arg(const int type, const char *arg, const void *where)          static int
   store_single_arg(type, arg, where)
           const int  type;
           const char *arg;
           const void *where;
 {  {
         register long long_val = 0;          register long long_val = 0;
         register unsigned long ulong_val = 0;          register unsigned long ulong_val = 0;
Line 722  static int store_single_arg(const int ty
Line 746  static int store_single_arg(const int ty
         return CFG_OK;          return CFG_OK;
 }  }
   
 static int split_multi_arg(const CFG_CONTEXT con, char *arg, char ***ar)          static int
   split_multi_arg(con, arg, ar)
           const CFG_CONTEXT con;
           char              *arg;
           char              ***ar;
 {  {
         register int i;          register int i;
         int sep_ar_idx, quote_prefix_idx, sep_size, tmp_sep_size;          int sep_ar_idx, quote_prefix_idx, sep_size, tmp_sep_size;
Line 810  static int split_multi_arg(const CFG_CON
Line 838  static int split_multi_arg(const CFG_CON
         return CFG_OK;          return CFG_OK;
 }  }
   
 static int unquote_single_arg(const CFG_CONTEXT con, char *arg)          static int
   unquote_single_arg(con, arg)
           const CFG_CONTEXT con;
           char              *arg;
 {  {
         return CFG_OK;          return CFG_OK;
 }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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