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

version 1.5, 2001/10/11 13:27:34 version 1.6, 2001/10/16 18:22:17
Line 101  enum cfg_option_type {
Line 101  enum cfg_option_type {
         CFG_STR = 8,          CFG_STR = 8,
         CFG_STRING = 8,          CFG_STRING = 8,
   
         /* End (to mark last item in list). */          /* End (to mark last item in list). */
         CFG_END = 0,          CFG_END = 0,
   
         /* Single, multi or multi separated. Single by default. */          /* Single, multi or multi separated. Single by default. */
Line 177  struct cfg_context {
Line 177  struct cfg_context {
         /* The question is, if it is needed to have this implemented. */          /* The question is, if it is needed to have this implemented. */
         char **short_option_prefix; /* default: "-" */          char **short_option_prefix; /* default: "-" */
         char **long_option_prefix; /* default: "--" */          char **long_option_prefix; /* default: "--" */
         char **option_arg_separator; /* default: "=" */          char **line_option_arg_separator; /* default: "=" */
   
         /*          /*
          * Config file specific properties.           * Config file specific properties.
Line 192  struct cfg_context {
Line 192  struct cfg_context {
   
         /* Array of string prefixes which mark comment line. */          /* Array of string prefixes which mark comment line. */
         char **comment_str;          char **comment_str;
   
           char **file_option_arg_separator; /* default: "=" */
 };  };
   
 typedef struct cfg_context* CFG_CONTEXT;  typedef struct cfg_context* CFG_CONTEXT;
Line 262  void cfg_add_cfgfile_comment_str(
Line 264  void cfg_add_cfgfile_comment_str(
                                                 char *str                                                  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. */  /* Processing context options. */
   
 int cfg_parse(  int cfg_parse(

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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