1
0
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:
Martin Mares
1998-12-06 11:59:18 +00:00
parent 2d9290e973
commit b35d72ac66
6 changed files with 43 additions and 43 deletions

View File

@@ -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 */