shared: add NM_PTRARRAY_EMPTY() util

This commit is contained in:
Thomas Haller 2017-04-11 15:17:18 +02:00
parent 31d0d0ef83
commit 7861ce7560
2 changed files with 8 additions and 0 deletions

View file

@ -27,6 +27,10 @@
/*****************************************************************************/
const void *const _NM_PTRARRAY_EMPTY[1] = { NULL };
/*****************************************************************************/
void
nm_utils_strbuf_append_c (char **buf, gsize *len, char c)
{

View file

@ -24,6 +24,10 @@
/*****************************************************************************/
extern const void *const _NM_PTRARRAY_EMPTY[1];
#define NM_PTRARRAY_EMPTY(type) ((type const*) _NM_PTRARRAY_EMPTY)
static inline void
_nm_utils_strbuf_init (char *buf, gsize len, char **p_buf_ptr, gsize *p_buf_len)
{