diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-07 16:05:30 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-07 16:05:30 (EDT) |
commit | 94c28fbf8969891558b1f75a9ca0a9051ce0a8c4 (patch) | |
tree | 97797d1bc8417d6b8633125bb0b72379150ad156 /src | |
parent | ffa635fee01ea832b956700c3d7ab62a80b8b6f8 (diff) | |
download | marquee-94c28fbf8969891558b1f75a9ca0a9051ce0a8c4.zip marquee-94c28fbf8969891558b1f75a9ca0a9051ce0a8c4.tar.gz marquee-94c28fbf8969891558b1f75a9ca0a9051ce0a8c4.tar.bz2 |
src/html.h: Mark variadic functions as needing explicit NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/html.h | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -25,7 +25,7 @@ #include <glib.h> gchar * -mq_html_document(const gchar *title, ...); +mq_html_document(const gchar *title, ...) G_GNUC_NULL_TERMINATED; #define TEXT_ELEMENT(ELEM) \ gchar * \ @@ -40,19 +40,22 @@ TEXT_ELEMENT(p) #undef TEXT_ELEMENT gchar * -mq_html_container(const gchar *element, ...); +mq_html_container(const gchar *element, ...) G_GNUC_NULL_TERMINATED; gchar * -mq_html_list(const gchar *type, GDestroyNotify destroy, ...); +mq_html_list(const gchar *type, GDestroyNotify destroy, ...) + G_GNUC_NULL_TERMINATED; gchar * mq_html_list_v(const gchar *type, gchar **children); gchar * -mq_html_notebook(gboolean vertical, const gchar *name, guint current_page, ...); +mq_html_notebook(gboolean vertical, const gchar *name, guint current_page, ...) + G_GNUC_NULL_TERMINATED; gchar * -mq_html_form(const gchar *submit_label, const gchar *reset_label, ...); +mq_html_form(const gchar *submit_label, const gchar *reset_label, ...) + G_GNUC_NULL_TERMINATED; gchar * mq_html_input_text(const gchar *name, const gchar *label, const gchar *value); @@ -74,6 +77,7 @@ mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked); gchar * mq_html_input_select(const gchar *name, const gchar *label, const gchar *selected, - GDestroyNotify destroy_value, GDestroyNotify destroy_label, ...); + GDestroyNotify destroy_value, GDestroyNotify destroy_label, ...) + G_GNUC_NULL_TERMINATED; #endif |