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

Rozdiely pre libcfg+/src/cmdline.c medzi verziami 1.11 a 1.12

verzia 1.11, 2001/12/03 16:48:39 verzia 1.12, 2001/12/05 23:58:48
Riadok 17  static int store_multi_arg(const int typ
Riadok 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;
   
Riadok 239  static int cfg_cmdline_get_next_opt(cons
Riadok 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)
Riadok 260  static void free_currents(const CFG_CONT
Riadok 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;
   
Riadok 365  static int set_currents(const CFG_CONTEX
Riadok 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
Riadok 417  static int search_cur_opt_idx(const CFG_
Riadok 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:
Odstranené z verzie1.11  
zmenené riadky
  Pridané vo verzii1.12

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