[glib] glib: annotate some memory functions with allow-none
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib: annotate some memory functions with allow-none
- Date: Wed, 22 Jan 2014 22:53:18 +0000 (UTC)
commit 1c8035066ea2ce92f5c7c7d8f8715896012fdb02
Author: William Jon McCann <william jon mccann gmail com>
Date: Wed Jan 22 17:51:12 2014 -0500
glib: annotate some memory functions with allow-none
glib/gmem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/gmem.c b/glib/gmem.c
index d707619..44e1280 100644
--- a/glib/gmem.c
+++ b/glib/gmem.c
@@ -145,7 +145,7 @@ g_malloc0 (gsize n_bytes)
/**
* g_realloc:
- * @mem: the memory to reallocate
+ * @mem: (allow-none): the memory to reallocate
* @n_bytes: new size of the memory in bytes
*
* Reallocates the memory pointed to by @mem, so that it now has space for
@@ -183,7 +183,7 @@ g_realloc (gpointer mem,
/**
* g_free:
- * @mem: the memory to free
+ * @mem: (allow-none): the memory to free
*
* Frees the memory pointed to by @mem.
* If @mem is %NULL it simply returns.
@@ -369,7 +369,7 @@ g_malloc0_n (gsize n_blocks,
/**
* g_realloc_n:
- * @mem: the memory to reallocate
+ * @mem: (allow-none): the memory to reallocate
* @n_blocks: the number of blocks to allocate
* @n_block_bytes: the size of each block in bytes
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]