summaryrefslogtreecommitdiff
path: root/glib/gtrashstack.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-06 12:23:09 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-11-07 10:48:32 +0100
commit25a7c817d3cbef8b6508b44bca6d0b01ca77916b (patch)
tree22f5321329f61c74ab335cf9149b6fe484aad6dc /glib/gtrashstack.c
parent90808a02796449615947e49ae57f5f4fa2e404ea (diff)
downloadglib-25a7c817d3cbef8b6508b44bca6d0b01ca77916b.tar.gz
glib: Add missing (nullable) and (optional) annotations
Add various (nullable) and (optional) annotations which were missing from a variety of functions. Also port a couple of existing (allow-none) annotations in the same files to use (nullable) and (optional) as appropriate instead. Secondly, add various (not nullable) annotations as needed by the new default in gobject-introspection of marking gpointers as (nullable). See https://bugzilla.gnome.org/show_bug.cgi?id=729660. This includes adding some stub documentation comments for the assertion macro error functions, which weren’t previously documented. The new comments are purely to allow for annotations, and hence are marked as (skip) to prevent the symbols appearing in the GIR file. https://bugzilla.gnome.org/show_bug.cgi?id=719966
Diffstat (limited to 'glib/gtrashstack.c')
-rw-r--r--glib/gtrashstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gtrashstack.c b/glib/gtrashstack.c
index 896ed6f6d..5c3b317c9 100644
--- a/glib/gtrashstack.c
+++ b/glib/gtrashstack.c
@@ -51,7 +51,7 @@
/**
* g_trash_stack_push:
* @stack_p: a #GTrashStack
- * @data_p: the piece of memory to push on the stack
+ * @data_p: (not nullable): the piece of memory to push on the stack
*
* Pushes a piece of memory onto a #GTrashStack.
*/