animator,state: Mark variadic functions that ends with NULL

GCC can catch errors when it knows that a variadic function must be
ended with NULL. Let's use the glib macro encapsulating the GCC
attribute to clutter_animator_set() and clutter_state_set().
This commit is contained in:
Damien Lespiau 2010-05-31 21:04:53 +01:00
parent f0ded315e4
commit 9a6a2a96dd
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ void clutter_animator_set (ClutterAnimato
const gchar *first_property_name,
guint first_mode,
gdouble first_progress,
...);
...) G_GNUC_NULL_TERMINATED;
GList * clutter_animator_get_keys (ClutterAnimator *animator,
GObject *object,
const gchar *property_name,

View File

@ -116,7 +116,7 @@ void clutter_state_set (ClutterState *state,
gpointer first_object,
const gchar *first_property_name,
gulong first_mode,
...);
...) G_GNUC_NULL_TERMINATED;
GList * clutter_state_get_states (ClutterState *state);
GList * clutter_state_get_keys (ClutterState *state,
const gchar *source_state_name,