skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

avltreen_init.c (374B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/genset.h>
      4 #include <skalibs/avlnode.h>
      5 #include <skalibs/avltreen.h>
      6 
      7 void avltreen_init (avltreen *t, avlnode *storage, uint32_t *freelist, uint32_t size, dtok_func_ref dtok, cmp_func_ref f, void *p)
      8 {
      9   GENSET_init(&t->x, avlnode, storage, freelist, size) ;
     10   t->root = size ;
     11   t->dtok = dtok ;
     12   t->kcmp = f ;
     13   t->external = p ;
     14 }