Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 25. október 2026

Rozdiely pre libcfg+/src/shared.c medzi verziami 1.4 a 1.5

verzia 1.4, 2002/02/17 15:18:45 verzia 1.5, 2002/02/25 18:45:56
Riadok 42  static int unquote_single_arg(const CFG_
Riadok 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);
Riadok 61  void __cfg_free_currents(const CFG_CONTE
Riadok 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;
Riadok 260  int __cfg_process_currents(const CFG_CON
Riadok 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;
Riadok 367  int __cfg_cmdline_set_currents(const CFG
Riadok 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;
Riadok 421  int __cfg_cfgfile_set_currents(const CFG
Riadok 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;
   
Riadok 489  static int search_cur_opt_idx(const CFG_
Riadok 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;
   
Riadok 543  static int add_to_used_opt_idx(const CFG
Riadok 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;
Riadok 620  static int store_multi_arg(const int typ
Riadok 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;
Riadok 722  static int store_single_arg(const int ty
Riadok 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;
Riadok 810  static int split_multi_arg(const CFG_CON
Riadok 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:
Odstranené z verzie1.4  
zmenené riadky
  Pridané vo verzii1.5

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok