Add wmem_strbuf_new_label as just a sized new for label lengths.

svn path=/trunk/; revision=50039
This commit is contained in:
Evan Huus 2013-06-19 17:34:24 +00:00
parent 608ad7b5b6
commit a17358cf3f
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ wmem_strbuf_sized_new(wmem_allocator_t *allocator,
gsize alloc_len, gsize max_len)
G_GNUC_MALLOC;
#define wmem_strbuf_new_label(ALLOCATOR) \
wmem_strbuf_sized_new((ALLOCATOR), 0, ITEM_LABEL_LENGTH)
WS_DLL_PUBLIC
wmem_strbuf_t *
wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str)