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