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

Diff for libcfg+/src/cmdline.c between version 1.11 and 1.12

version 1.11, 2001/12/03 16:48:39 version 1.12, 2001/12/05 23:58:48
Line 17  static int store_multi_arg(const int typ
Line 17  static int store_multi_arg(const int typ
 static int store_single_arg(const int type, const char *arg, const void *where);  static int store_single_arg(const int type, const char *arg, const void *where);
   
   
 static int cfg_cmdline_get_next_opt(const CFG_CONTEXT con) {  static int cfg_cmdline_get_next_opt(const CFG_CONTEXT con)
   {
         register int opt_idx;          register int opt_idx;
         register int arg_used;          register int arg_used;
   
Line 239  static int cfg_cmdline_get_next_opt(cons
Line 239  static int cfg_cmdline_get_next_opt(cons
  * Sets cur_opt_type to CFG_NONE_OPTION.   * Sets cur_opt_type to CFG_NONE_OPTION.
  */   */
   
 static void free_currents(const CFG_CONTEXT con) {  static void free_currents(const CFG_CONTEXT con)
   {
         if (con->cur_opt != NULL)          if (con->cur_opt != NULL)
                 free(con->cur_opt);                  free(con->cur_opt);
         if (con->cur_arg != NULL)          if (con->cur_arg != NULL)
Line 260  static void free_currents(const CFG_CONT
Line 260  static void free_currents(const CFG_CONT
  * Returns 1 on success, 0 on error (not enough memory).   * Returns 1 on success, 0 on error (not enough memory).
  */   */
   
 static int set_currents(const CFG_CONTEXT con) {  static int set_currents(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 365  static int set_currents(const CFG_CONTEX
Line 366  static int set_currents(const CFG_CONTEX
  * 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(const CFG_CONTEXT con)
   {
         register int i;          register int i;
   
         for (i = 0; con->options[i].cmdline_long_name != NULL          for (i = 0; con->options[i].cmdline_long_name != NULL
Line 417  static int search_cur_opt_idx(const CFG_
Line 419  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(const CFG_CONTEXT con, int opt_idx)
   {
         int *p_i = NULL;          int *p_i = NULL;
   
         if (opt_idx < 0)          if (opt_idx < 0)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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