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/cfg+.h between version 1.9 and 1.10

version 1.9, 2001/11/28 14:42:52 version 1.10, 2001/11/28 20:46:51
Line 201  struct cfg_context {
Line 201  struct cfg_context {
         char **argv;          char **argv;
   
         int cur_idx;          int cur_idx;
           int cur_idx_tmp;
   
         int cur_opt_type;          int cur_opt_type;
         char *cur_opt;          char *cur_opt;
Line 239  struct cfg_context {
Line 240  struct cfg_context {
   
 typedef struct cfg_context* CFG_CONTEXT;  typedef struct cfg_context* CFG_CONTEXT;
   
 /*  /*
  * Functions   * Functions
  */   */
   
Line 247  typedef struct cfg_context* CFG_CONTEXT;
Line 248  typedef struct cfg_context* CFG_CONTEXT;
 extern "C" {  extern "C" {
 #endif  #endif
   
         /* Getting & modifying context functions. */  /* Getting & modifying context functions. */
   
   CFG_CONTEXT cfg_get_context(
                                                   struct cfg_option *options);
   
   CFG_CONTEXT cfg_get_cmdline_context(
                                                   int argc,
                                                   char **argv,
                                                   struct cfg_option *options);
   
   CFG_CONTEXT cfg_get_cfgfile_context(
                                                   int begin_pos,
                                                   int end_pos,
                                                   char *filename,
                                                   struct cfg_option *options);
   
   void cfg_set_cmdline_context(
                                                   const CFG_CONTEXT con,
                                                   int argc,
                                                   char **argv);
   
   void cfg_set_cfgfile_context(
                                                   const CFG_CONTEXT con,
                                                   int begin_pos,
                                                   int end_pos,
                                                   char *filename);
   
   /* Context flags & special properties manipulation. */
   
   void cfg_set_context_flags(const CFG_CONTEXT con, int flags);
   void cfg_clear_cmdline_stop_str(const CFG_CONTEXT con);
   void cfg_add_cmdline_stop_str(const CFG_CONTEXT con, char *str);
   void cfg_clear_cfgfile_stop_str(const CFG_CONTEXT con);
   void cfg_add_cfgfile_stop_str(const CFG_CONTEXT con, char *str);
   void cfg_clear_cfgfile_comment_str(const CFG_CONTEXT con);
   void cfg_add_cfgfile_comment_str(const CFG_CONTEXT con, char *str);
   void cfg_clear_cmdline_short_option_prefix(const CFG_CONTEXT con);
   void cfg_add_cmdline_short_option_prefix(const CFG_CONTEXT con, char *str);
   void cfg_clear_cmdline_long_option_prefix(const CFG_CONTEXT con);
   void cfg_add_cmdline_long_option_prefix( const CFG_CONTEXT con, char *str);
   void cfg_clear_cmdline_option_arg_separator(const CFG_CONTEXT con);
   void cfg_add_cmdline_option_arg_separator(const CFG_CONTEXT con, char *str);
   void cfg_clear_cfgfile_option_arg_separator(const CFG_CONTEXT con);
   void cfg_add_cfgfile_option_arg_separator(const CFG_CONTEXT con, char *str);
   
   
   /* Processing context options. */
   
   int cfg_parse(const CFG_CONTEXT con);
   int cfg_get_next_opt(const CFG_CONTEXT con);
   int cfg_get_opt_arg(const CFG_CONTEXT con);
   char *cfg_get_cur_opt(const CFG_CONTEXT con);
   char *cfg_get_cur_arg(const CFG_CONTEXT con);
   int cfg_get_cur_idx(const CFG_CONTEXT con);
   
   /* Reseting context. */
   
   void cfg_reset_context(const CFG_CONTEXT con);
   
   /* Freeing context. */
   
   void cfg_free_context(const CFG_CONTEXT con);
   
         CFG_CONTEXT cfg_get_context(  
                                                         struct cfg_option *options  
                                                         );  
   
         CFG_CONTEXT cfg_get_cmdline_context(  
                                                         int argc,  
                                                         char **argv,  
                                                         struct cfg_option *options  
                                                         );  
   
         CFG_CONTEXT cfg_get_cfgfile_context(  
                                                         int begin_pos,  
                                                         int end_pos,  
                                                         char *filename,  
                                                         struct cfg_option *options  
                                                         );  
   
         void cfg_set_cmdline_context(  
                                                         const CFG_CONTEXT con,  
                                                         int argc,  
                                                         char **argv  
                                                         );  
   
         void cfg_set_cfgfile_context(  
                                                         const CFG_CONTEXT con,  
                                                         int begin_pos,  
                                                         int end_pos,  
                                                         char *filename  
                                                         );  
   
         /* Context flags & special properties manipulation. */  
   
         void cfg_set_context_flags(  
                                                         const CFG_CONTEXT con,  
                                                         int flags  
                                                         );  
   
         void cfg_clear_cmdline_stop_str(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cmdline_stop_str(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
         void cfg_clear_cfgfile_stop_str(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cfgfile_stop_str(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
         void cfg_clear_cfgfile_comment_str(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cfgfile_comment_str(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
         void cfg_clear_cmdline_short_option_prefix(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cmdline_short_option_prefix(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
         void cfg_clear_cmdline_long_option_prefix(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cmdline_long_option_prefix(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
         void cfg_clear_cmdline_option_arg_separator(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cmdline_option_arg_separator(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
         void cfg_clear_cfgfile_option_arg_separator(  
                                                         const CFG_CONTEXT con  
                                                         );  
   
         void cfg_add_cfgfile_option_arg_separator(  
                                                         const CFG_CONTEXT con,  
                                                         char *str  
                                                         );  
   
   
         /* Processing context options. */  
   
         int cfg_parse(  
                                                         const CFG_CONTEXT con  
                                  );  
   
         int cfg_get_next_opt(  
                                                         const CFG_CONTEXT con  
                                                 );  
   
         int cfg_get_opt_arg(  
                                                         const CFG_CONTEXT con  
                                            );  
   
         /* Reseting context. */  
   
         void cfg_reset_context(  
                                                         const CFG_CONTEXT con  
                                                   );  
   
         /* Freeing context. */  
   
         void cfg_free_context(  
                                                         const CFG_CONTEXT con  
                                                  );  
   
 #ifdef __cplusplus  #ifdef __cplusplus
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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