gensetdyn_init.c (371B)
1 /* ISC license. */ 2 3 #include <skalibs/stralloc.h> 4 #include <skalibs/genalloc.h> 5 #include <skalibs/gensetdyn.h> 6 7 void gensetdyn_init (gensetdyn *g, uint32_t esize, uint32_t base, uint32_t fracnum, uint32_t fracden) 8 { 9 g->storage = stralloc_zero ; 10 g->freelist = genalloc_zero ; 11 g->esize = esize ; 12 g->base = base ; 13 g->fracnum = fracnum ; 14 g->fracden = fracden ; 15 }