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.40 and 1.41

version 1.40, 2002/07/15 14:45:54 version 1.41, 2002/07/15 16:17:02
Line 252  enum cfg_property_type {
Line 252  enum cfg_property_type {
         /** Array of strings which forces to stop command line parsing. */          /** Array of strings which forces to stop command line parsing. */
         CFG_LINE_STOP_STRING = 0,          CFG_LINE_STOP_STRING = 0,
   
         /** default: "-" */          /** Command line short option prefix (default: "-") */
         CFG_LINE_SHORT_OPTION_PREFIX = 1,          CFG_LINE_SHORT_OPTION_PREFIX = 1,
   
         /** default: "--" */          /** Command line long option prefix (default: "--") */
         CFG_LINE_LONG_OPTION_PREFIX = 2,          CFG_LINE_LONG_OPTION_PREFIX = 2,
   
         /** Command line option argument separator (default: "=") */          /** Command line option argument separator (default: "=") */
Line 420  struct cfg_context {
Line 420  struct cfg_context {
         /** Context type (command line or config file) */          /** Context type (command line or config file) */
         enum cfg_context_type type;          enum cfg_context_type type;
   
           /** Possition range */
           long begin_pos;
           long end_pos;
   
         /** Flags */          /** Flags */
         int flags;          int flags;
   
Line 436  struct cfg_context {
Line 440  struct cfg_context {
         char **prop[CFG_N_PROPS];          char **prop[CFG_N_PROPS];
   
         /** Currents */          /** Currents */
         int cur_idx;          long cur_idx;
         int cur_idx_tmp;          long cur_idx_tmp;
         int cur_opt_type;          int  cur_opt_type;
   
         /** Current option string */          /** Current option string */
         char *cur_opt;          char *cur_opt;
Line 453  struct cfg_context {
Line 457  struct cfg_context {
          */           */
         /*@{*/          /*@{*/
   
         int argc;          /* int argc; */
         char **argv;          char **argv;
   
         /*@}*/          /*@}*/
Line 463  struct cfg_context {
Line 467  struct cfg_context {
          */           */
         /*@{*/          /*@{*/
   
         long begin_pos;  
         long end_pos;  
         char *filename;          char *filename;
         FILE *fhandle;          FILE *fhandle;
   
Line 507  extern "C" {
Line 509  extern "C" {
          * @return                      initialized command line context           * @return                      initialized command line context
          */           */
         CFG_CONTEXT cfg_get_cmdline_context(          CFG_CONTEXT cfg_get_cmdline_context(
                         int argc,                          long argc,
                         char **argv,                          char **argv,
                         struct cfg_option *options);                          struct cfg_option *options);
   
Line 536  extern "C" {
Line 538  extern "C" {
          */           */
         void cfg_set_cmdline_context(          void cfg_set_cmdline_context(
                         const CFG_CONTEXT con,                          const CFG_CONTEXT con,
                         int argc,                          long argc,
                         char **argv);                          char **argv);
   
         /**          /**

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

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