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/parse.c between version 1.11 and 1.12

version 1.11, 2002/02/18 21:34:56 version 1.12, 2002/02/25 18:45:56
Line 25 
Line 25 
   
 /* Processing context options. */  /* Processing context options. */
   
 int cfg_parse(const CFG_CONTEXT con)          int
   cfg_parse(con)
           const CFG_CONTEXT con;
 {  {
         register int ret;          register int ret;
   
Line 35  int cfg_parse(const CFG_CONTEXT con)
Line 37  int cfg_parse(const CFG_CONTEXT con)
         return ret;          return ret;
 }  }
   
 int cfg_get_next_opt(const CFG_CONTEXT con)          int
   cfg_get_next_opt(con)
           const CFG_CONTEXT con;
 {  {
         return con->type == CFG_CMDLINE          return con->type == CFG_CMDLINE
                 ? cfg_cmdline_get_next_opt(con)                  ? cfg_cmdline_get_next_opt(con)
Line 43  int cfg_get_next_opt(const CFG_CONTEXT c
Line 47  int cfg_get_next_opt(const CFG_CONTEXT c
 }  }
   
 /* OBSOLETE FUNCTION  /* OBSOLETE FUNCTION
 char *cfg_get_opt_arg(const CFG_CONTEXT con)          char *
   cfg_get_opt_arg(con)
           const CFG_CONTEXT con;
 {  {
         return con->cur_arg;          return con->cur_arg;
 }  }
 */  */
 char *cfg_get_cur_opt(const CFG_CONTEXT con)          char *
   cfg_get_cur_opt(con)
           const CFG_CONTEXT con;
 {  {
         return con->cur_opt;          return con->cur_opt;
 }  }
   
 char *cfg_get_cur_arg(const CFG_CONTEXT con)          char *
   cfg_get_cur_arg(con)
           const CFG_CONTEXT con;
 {  {
         return con->cur_arg;          return con->cur_arg;
 }  }
   
 int cfg_get_cur_idx(const CFG_CONTEXT con)          int
   cfg_get_cur_idx(con)
           const CFG_CONTEXT con;
 {  {
         return con->type == CFG_CMDLINE          return con->type == CFG_CMDLINE
                 ? con->cur_idx                  ? con->cur_idx

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