mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Name cleanups as suggested by Pavel:
- cfg_strcpy() -> cfg_strdup() - mempool -> linpool, mp_* -> lp_* [to avoid confusion with memblock, mb_*] Anyway, it might be better to stop ranting about names and do some *real* work.
This commit is contained in:
@@ -47,12 +47,12 @@ void mb_free(void *);
|
||||
|
||||
/* Memory pools with linear allocation */
|
||||
|
||||
typedef struct mempool mempool;
|
||||
typedef struct linpool linpool;
|
||||
|
||||
mempool *mp_new(pool *, unsigned blk);
|
||||
void *mp_alloc(mempool *, unsigned size); /* Aligned */
|
||||
void *mp_allocu(mempool *, unsigned size); /* Unaligned */
|
||||
void *mp_allocz(mempool *, unsigned size); /* With clear */
|
||||
linpool *lp_new(pool *, unsigned blk);
|
||||
void *lp_alloc(linpool *, unsigned size); /* Aligned */
|
||||
void *lp_allocu(linpool *, unsigned size); /* Unaligned */
|
||||
void *lp_allocz(linpool *, unsigned size); /* With clear */
|
||||
|
||||
/* Slabs */
|
||||
|
||||
|
Reference in New Issue
Block a user