forked from osmocom/wireshark
Add wmem_strbuf_new_label as just a sized new for label lengths.
svn path=/trunk/; revision=50039
This commit is contained in:
parent
608ad7b5b6
commit
a17358cf3f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue