Diff for /libaitio/inc/aitio.h between versions 1.24.2.3 and 1.25.2.2

version 1.24.2.3, 2012/08/28 08:53:32 version 1.25.2.2, 2012/09/03 12:18:27
Line 245  typedef struct { Line 245  typedef struct {
                                                 void *__p = io_realloc(__val->val.string, AIT_LEN(__val) + __l); \                                                  void *__p = io_realloc(__val->val.string, AIT_LEN(__val) + __l); \
                                                 if (__p) { \                                                  if (__p) { \
                                                         AIT_LEN(__val) += __l; \                                                          AIT_LEN(__val) += __l; \
                                                           if (!__val->val.string) \
                                                                   memset(__p, 0, AIT_LEN(__val)); \
                                                         __val->val.string = __p; \                                                          __val->val.string = __p; \
                                                         strlcat((char*) __val->val.string, __s, \                                                          strlcat((char*) __val->val.string, __s, \
                                                                         AIT_LEN(__val)); \                                                                          AIT_LEN(__val)); \
Line 547  inline void io_freeVar(ait_val_t ** __restrict val); Line 549  inline void io_freeVar(ait_val_t ** __restrict val);
  */   */
 ait_val_t *io_makeVar(ait_type_t type, ...);  ait_val_t *io_makeVar(ait_type_t type, ...);
 /*  /*
 * io_hashVar() - Generate hash key for variable * io_sprintfVar() - Builtin string variable from formatted input
  *   *
  * @v = variable   * @v = variable
    * @fmt = format string
    * @... = argument(s)
    * return: -1 error or >0 copied bytes to variable
    */
   int io_sprintfVar(ait_val_t * __restrict v, const char *fmt, ...);
   /*
    * io_hashVar() - Generate hash key for variable from string or value
    *
    * @v = variable
    * @key = key string for hash, if =NULL hash will built from variable
  * return: hash key   * return: hash key
  */   */
unsigned short io_hashVar(ait_val_t * __restrict v);unsigned short io_hashVar(ait_val_t * __restrict v, const char * __restrict key);
 /*  /*
  * io_allocVars() - Allocate ait_val_t array   * io_allocVars() - Allocate ait_val_t array
  *   *
Line 608  inline void io_sortVarsByVal(array_t * __restrict vars Line 620  inline void io_sortVarsByVal(array_t * __restrict vars
  * return: NULL error or not found, !=NULL valid element   * return: NULL error or not found, !=NULL valid element
  */   */
 ait_val_t *io_findKeyVars(array_t * __restrict vars, u_short key);  ait_val_t *io_findKeyVars(array_t * __restrict vars, u_short key);
   /*
    * io_findKeyHash() - Find variable by hash string from array
    *
    * @vars = Variables
    * @key = Search string
    * return: NULL error or not found, !=NULL valid element
    */
   inline ait_val_t *io_findKeyHash(array_t * __restrict vars, const char * __restrict key);
 /*  /*
  * io_hashKeyVars() - Generate hash keys for variables   * io_hashKeyVars() - Generate hash keys for variables
  *   *

Removed from v.1.24.2.3  
changed lines
  Added in v.1.25.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>