} Attribute;
-LttvAttributeValue address_of_value(LttvAttributeType t, AttributeValue *v)
+static __inline LttvAttributeValue address_of_value(LttvAttributeType t,
+ AttributeValue *v)
{
LttvAttributeValue va;
}
-
static void
attribute_instance_init (GTypeInstance *instance, gpointer g_class)
{
LttvAttribute *self = (LttvAttribute *)instance;
- self->names = g_hash_table_new(g_direct_hash, g_direct_equal);
+ self->names = g_hash_table_new(g_direct_hash,
+ g_direct_equal);
self->attributes = g_array_new(FALSE, FALSE, sizeof(Attribute));
}
-gboolean get_first(gpointer key, gpointer value, gpointer user_data) {
+static gboolean get_first(gpointer key, gpointer value, gpointer user_data) {
*((LttvTracefileContext **)user_data) = (LttvTracefileContext *)value;
return TRUE;
}
void lttvwindow_events_request_remove_all(Tab *tab,
gconstpointer viewer)
{
- GSList *element;
+ GSList *element = tab->events_requests;
while((element =
- g_slist_find_custom(tab->events_requests, viewer,
+ g_slist_find_custom(element, viewer,
(GCompareFunc)find_viewer))
!= NULL) {
EventsRequest *events_request = (EventsRequest *)element->data;
//}
g_free(events_request);
tab->events_requests = g_slist_remove_link(tab->events_requests, element);
+ element = g_slist_next(element);
+ if(element == NULL) break; /* end of list */
}
if(g_slist_length(tab->events_requests) == 0) {
tab->events_request_pending = FALSE;