X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpools.h;h=6058c5eefc9549de214660e3df2c7eea22805fb6;hb=1b0a16240bdcc069979452f56fbbf2299625be78;hp=ff9250dcb5f3d0d7dd80f0ef4e5ccb5abe62b684;hpb=ddb01cbb4eb8431b042918438e6543003851a87f;p=libucw.git diff --git a/lib/pools.h b/lib/pools.h index ff9250dc..6058c5ee 100644 --- a/lib/pools.h +++ b/lib/pools.h @@ -26,7 +26,6 @@ void mp_delete(struct mempool *); void mp_flush(struct mempool *); void *mp_alloc(struct mempool *, uns); void *mp_alloc_zero(struct mempool *, uns); -char *mp_strdup(struct mempool *, char *); static inline void *mp_alloc_fast(struct mempool *p, uns l) { @@ -61,4 +60,14 @@ mp_end_string(struct mempool *p, void *stop) p->free = stop; } +/* pool-str.c */ + +char *mp_strdup(struct mempool *, char *); +char *mp_multicat(struct mempool *, ...); +static inline char * +mp_strcat(struct mempool *mp, char *x, char *y) +{ + return mp_multicat(mp, x, y, NULL); +} + #endif