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.24 and 1.25

version 1.24, 2002/08/05 19:23:20 version 1.25, 2002/08/06 23:38:30
Line 148  cfg_get_context_flags(con)
Line 148  cfg_get_context_flags(con)
 #define cfg_normal_property_type(type) ((type) >= 0 && (type) < CFG_N_PROPS)  #define cfg_normal_property_type(type) ((type) >= 0 && (type) < CFG_N_PROPS)
 #define cfg_virtual_property_type(type) ((type) > CFG_N_PROPS)  #define cfg_virtual_property_type(type) ((type) > CFG_N_PROPS)
   
   /*
    * Clear
    */
   
         int          int
 cfg_clear_property(con, type)  cfg_clear_property(con, type)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;
Line 249  cfg_clear_properties(
Line 253  cfg_clear_properties(
         return ret;          return ret;
 } /* }}} */  } /* }}} */
   
   /*
    * Add
    */
   
         int          int
 cfg_add_property(con, type, str)  cfg_add_property(con, type, str)
         const CFG_CONTEXT con;          const CFG_CONTEXT con;
Line 369  cfg_add_properties(
Line 377  cfg_add_properties(
 } /* }}} */  } /* }}} */
   
         int          int
   cfg_add_properties_str(
           const CFG_CONTEXT con,
           char *str,
           enum cfg_property_type type, ...)
   { /* {{{ */
           va_list ap;
           enum cfg_property_type tmp_type;
           int ret = 1;
   
           /* initialization */
           tmp_type = type;
           va_start(ap, type);
   
           /* argument list must be termited with typeN = CFG_EOF or */
           if (str != NULL)
                   while (tmp_type != CFG_EOF) {
                           ret &= cfg_add_property(con, tmp_type, str);
                           if (!ret)
                                   break;
                           tmp_type = va_arg(ap, enum cfg_property_type);
                   }
   
           /* cleanup */
           va_end(ap);
   
           return ret;
   } /* }}} */
   
           int
   cfg_add_properties_type(
           const CFG_CONTEXT con,
           enum cfg_property_type type,
           char *str, ...)
   { /* {{{ */
           va_list ap;
           char * tmp_str;
           int ret = 1;
   
           /* initialization */
           tmp_str  = str;
           va_start(ap, str);
   
           /* argument list must be termited with str = NULL */
           if (type != CFG_EOF)
                   while (tmp_str != NULL) {
                           ret &= cfg_add_property(con, type, tmp_str);
                           if (!ret)
                                   break;
                           tmp_str  = va_arg(ap, char *);
                   }
   
           /* cleanup */
           va_end(ap);
   
           return ret;
   } /* }}} */
   
   /*
    * Remove
    */
   
           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;
Line 483  cfg_remove_properties( /* code same like
Line 553  cfg_remove_properties( /* code same like
   
         /* cleanup */          /* cleanup */
         va_end(ap);          va_end(ap);
   
           return ret;
   } /* }}} */
   
           int
   cfg_remove_properties_str(
           const CFG_CONTEXT con,
           char *str,
           enum cfg_property_type type, ...)
   { /* {{{ */
           va_list ap;
           enum cfg_property_type tmp_type;
           int ret = 1;
   
           /* initialization */
           tmp_type = type;
           va_start(ap, type);
   
           /* argument list must be termited with typeN = CFG_EOF or */
           if (str != NULL)
                   while (tmp_type != CFG_EOF) {
                           ret &= cfg_remove_property(con, tmp_type, str);
                           if (!ret)
                                   break;
                           tmp_type = va_arg(ap, enum cfg_property_type);
                   }
   
           /* cleanup */
           va_end(ap);
   
           return ret;
   } /* }}} */
   
           int
   cfg_remove_properties_type(
           const CFG_CONTEXT con,
           enum cfg_property_type type,
           char *str, ...)
   { /* {{{ */
           va_list ap;
           char * tmp_str;
           int ret = 1;
   
           /* initialization */
           tmp_str  = str;
           va_start(ap, str);
   
           /* argument list must be termited with str = NULL */
           if (type != CFG_EOF)
                   while (tmp_str != NULL) {
                           ret &= cfg_remove_property(con, type, tmp_str);
                           if (!ret)
                                   break;
                           tmp_str  = va_arg(ap, char *);
                   }
   
           /* cleanup */
           va_end(ap);
   
         return ret;          return ret;
 } /* }}} */  } /* }}} */

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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