From 94c28fbf8969891558b1f75a9ca0a9051ce0a8c4 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 07 Oct 2017 16:05:30 -0400 Subject: src/html.h: Mark variadic functions as needing explicit NULL --- (limited to 'src') diff --git a/src/html.h b/src/html.h index 6fe35a8..8f5eada 100644 --- a/src/html.h +++ b/src/html.h @@ -25,7 +25,7 @@ #include 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 -- cgit v0.9.1