Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 15. október 2026

Rozdiely pre libcfg+/src/shared.h medzi verziami 1.2 a 1.3

verzia 1.2, 2002/02/17 15:18:45 verzia 1.3, 2002/04/07 16:42:33
Riadok 16 
Riadok 16 
  * http://www.platon.sk/projects/libcfg/   * http://www.platon.sk/projects/libcfg/
  */   */
   
   /**
    * @file        shared.h
    * @brief       shared stuff for command line and config file parsing header file
    * @author      Ondrej Jombik <nepto@pobox.sk>
    * @version     \$Id$
    * @date        2001-2002
    */
   
 #ifndef _PLATON_CFG_SHARED_H  #ifndef _PLATON_CFG_SHARED_H
 #define _PLATON_CFG_SHARED_H  #define _PLATON_CFG_SHARED_H
   
   /**
    * Free current variables (cur_opt, cur_arg) in context
    * and sets cur_opt_type to CFG_NONE_OPTION.
    *
    * @param con   initialized context with initialized current variables
    * @return              void
    */
 void __cfg_free_currents(const CFG_CONTEXT con);  void __cfg_free_currents(const CFG_CONTEXT con);
   
   /**
    * Process current option and argument. It suppose that in context con
    * are cur_opt, cur_arg and cur_type set.
    *
    * @param con           initialized context
    * @param ret_val       option return value (val) @see cfg_context
    * @param arg_used      if option argument was used
    * @return                      CFG_OK on success, CFG_ERR_* on error
    */
 int  __cfg_process_currents(const CFG_CONTEXT con, int *ret_val, int *arg_used);  int  __cfg_process_currents(const CFG_CONTEXT con, int *ret_val, int *arg_used);
   
   /**
    * Allocate and initialize variables cur_opt and cur_arg in initialized
    * command line context according to con->argv[con->cur_idx].
    *
    * @param con   initialized command line context
    * @return              1 on success, 0 on error (not enough memory is only possible)
    */
 int  __cfg_cmdline_set_currents(const CFG_CONTEXT con);  int  __cfg_cmdline_set_currents(const CFG_CONTEXT con);
   
   /**
    * Allocate and initialize variables cur_opt and cur_arg in initialized
    * config file context according to input string (parameter buf).
    *
    * @param con   initialized command line context
    * @param buf   input string
    * @return              1 on success, 0 on error (not enough memory is only possible)
    */
 int  __cfg_cfgfile_set_currents(const CFG_CONTEXT con, char *buf);  int  __cfg_cfgfile_set_currents(const CFG_CONTEXT con, char *buf);
   
 #endif /* #ifndef _PLATON_CFG_SHARED_H */  #endif /* #ifndef _PLATON_CFG_SHARED_H */

Legend:
Odstranené z verzie1.2  
zmenené riadky
  Pridané vo verzii1.3

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok