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+.c between version 1.43 and 1.44

version 1.43, 2002/07/15 15:37:21 version 1.44, 2002/07/15 16:17:02
Line 80  cfg_get_context(options)
Line 80  cfg_get_context(options)
   
         CFG_CONTEXT          CFG_CONTEXT
 cfg_get_cmdline_context(argc, argv, options)  cfg_get_cmdline_context(argc, argv, options)
         int               argc;          long              argc;
         char              **argv;          char              **argv;
         struct cfg_option *options;          struct cfg_option *options;
 { /* {{{ */  { /* {{{ */
Line 116  cfg_get_cfgfile_context(begin_pos, end_p
Line 116  cfg_get_cfgfile_context(begin_pos, end_p
         void          void
 cfg_set_cmdline_context(con, argc, argv)  cfg_set_cmdline_context(con, argc, argv)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;
         int               argc;          long              argc;
         char              **argv;          char              **argv;
 { /* {{{ */  { /* {{{ */
         cfg_reset_context(con);          cfg_reset_context(con);
   
         con->type = CFG_CMDLINE;          con->type = CFG_CMDLINE;
         con->argc = argc;          /* con->argc = argc; */
           con->begin_pos = argc;
         con->argv = argv;          con->argv = argv;
   
         con->cur_idx_tmp = con->flags & CFG_PROCESS_FIRST ? 0 : 1;          con->cur_idx_tmp = con->flags & CFG_PROCESS_FIRST ? 0 : 1;
Line 169  cfg_reset_context(con)
Line 170  cfg_reset_context(con)
   
         __cfg_free_currents(con);          __cfg_free_currents(con);
   
         /*          /* Problematic code? */
            if (con->fhandle != NULL) {          if (con->fhandle != NULL) {
            fclose(con->fhandle);                  fclose(con->fhandle);
            con->fhandle = NULL;                  con->fhandle = NULL;
            } */          }
 } /* }}} */  } /* }}} */
   
         void          void
Line 187  cfg_free_context(con)
Line 188  cfg_free_context(con)
         for (i = 0; i < CFG_N_PROPS; i++)          for (i = 0; i < CFG_N_PROPS; i++)
                 cfg_clear_property(con, i);                  cfg_clear_property(con, i);
   
         con->argc = 0;          /* con->argc = 0; */
         con->argv = NULL;  
   
         con->filename  = NULL;  
         con->begin_pos = 0;          con->begin_pos = 0;
         con->end_pos   = 0;          con->end_pos   = 0;
   
           con->argv = NULL;
           con->filename  = NULL;
         con->type = CFG_NO_CONTEXT;          con->type = CFG_NO_CONTEXT;
   
         free((void *) con);          free((void *) con);

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

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