X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fpools.h;h=540e8e60cc690bb939d10b700735b295ededa1ca;hb=12eeb07ec0233349ed421e0804cba7820286a01a;hp=ff9250dcb5f3d0d7dd80f0ef4e5ccb5abe62b684;hpb=b3f10e997410c71cd42584318569aa843da19789;p=libucw.git diff --git a/lib/pools.h b/lib/pools.h index ff9250dc..540e8e60 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) +{ + mp_multicat(mp, x, y, NULL); +} + #endif