Diff for /libelwix/inc/elwix/asarr.h between versions 1.1.1.1 and 1.5

version 1.1.1.1, 2013/01/17 10:05:35 version 1.5, 2025/08/21 15:43:00
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 2004 - 2024
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 55  typedef struct _tagSplitArray { Line 55  typedef struct _tagSplitArray {
         sarr_seg_t      *sarr_data;          sarr_seg_t      *sarr_data;
 } sarr_t;  } sarr_t;
   
   #ifdef __cplusplus
   extern "C" {
   #endif
   
 /*  /*
  * sarr_Init() - Create and initialize dynamic split-order array   * sarr_Init() - Create and initialize dynamic split-order array
Line 105  int sarr_Copy(sarr_t ** __restrict dest, sarr_t * __re Line 108  int sarr_Copy(sarr_t ** __restrict dest, sarr_t * __re
  * @idx = Index (warning 1st element is at position 1)   * @idx = Index (warning 1st element is at position 1)
  * return: NULL not found, !=NULL element   * return: NULL not found, !=NULL element
  */   */
inline void *sarr_Get(sarr_t * __restrict arr, unsigned int idx);void *sarr_Get(sarr_t * __restrict arr, unsigned int idx);
 /*  /*
  * sarr_Get2() - Always get element from dynamic split-order array   * sarr_Get2() - Always get element from dynamic split-order array
  *      Function automatic grow array. Good use for Hash tables!    *      Function automatic grow array. Good use for Hash tables! 
Line 123  void *sarr_Get2(sarr_t * __restrict arr, unsigned int  Line 126  void *sarr_Get2(sarr_t * __restrict arr, unsigned int 
  * @data = Value   * @data = Value
  * return: NULL error or empty, !=NULL old value in element   * return: NULL error or empty, !=NULL old value in element
  */   */
inline void *sarr_Set(sarr_t * __restrict arr, unsigned int idx, void *data);void *sarr_Set(sarr_t * __restrict arr, unsigned int idx, void *data);
 #define sarr_Del(_arr, _idx)            sarr_Set((_arr), _idx, NULL)  #define sarr_Del(_arr, _idx)            sarr_Set((_arr), _idx, NULL)
 #define sarr(_arr, _idx, _type)         ((_type) sarr_Get((_arr), _idx))  #define sarr(_arr, _idx, _type)         ((_type) sarr_Get((_arr), _idx))
   
Line 145  array_t *sarr_sarr2array(sarr_t ** __restrict sa, int  Line 148  array_t *sarr_sarr2array(sarr_t ** __restrict sa, int 
  */   */
 sarr_t *sarr_array2sarr(array_t ** __restrict a, int segLen, int arrFree);  sarr_t *sarr_array2sarr(array_t ** __restrict a, int segLen, int arrFree);
   
   #ifdef __cplusplus
   }
   #endif
   
 #endif  #endif

Removed from v.1.1.1.1  
changed lines
  Added in v.1.5


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