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/props.c between version 1.22 and 1.23

version 1.22, 2002/07/18 22:16:30 version 1.23, 2002/08/03 20:03:21
Line 22 
Line 22 
 #include "config.h"  #include "config.h"
   
 #include <stdio.h>  #include <stdio.h>
   #include <stdarg.h>
   
 #include "str/strdyn.h"  #include "str/strdyn.h"
 #include "cfg+.h"  #include "cfg+.h"
Line 306  cfg_add_property(con, type, str)
Line 307  cfg_add_property(con, type, str)
 } /* }}} */  } /* }}} */
   
         int          int
   cfg_add_properties(
                   const CFG_CONTEXT con,
                   enum cfg_property_type type,
                   char *str, ...)
   { /* {{{ */
           va_list ap;
           enum cfg_property_type tmp_type;
           char * tmp_str;
           int ret = 1;
   
           /* initialization */
           tmp_type = type;
           tmp_str  = str;
           va_start(ap, str);
   
           /* argument list must be termited with typeN = CFG_EOF or
            * str = NULL
            */
           while (tmp_type != CFG_EOF && tmp_str != NULL) {
                   ret &= cfg_add_property(con, tmp_type, tmp_str);
                   if (!ret)
                           break;
                   tmp_type = va_arg(ap, enum cfg_property_type);
                   if (tmp_type == CFG_EOF) /* if typeN == CFG_EOF, strN may be not specified! */
                           break;
                   tmp_str  = va_arg(ap, char *);
           }
   
           /* cleanup */
           va_end(ap);
   
           return ret;
   } /* }}} */
   
   
           int
 cfg_remove_property(con, type, str)  cfg_remove_property(con, type, str)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;
         enum cfg_property_type type;          enum cfg_property_type type;

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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