g_slist_foreach and single arg functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heya,

I've seen a number of applications and libraries such as pango using g_slist_foreach(list, (GFunc) g_free, NULL); and other single argument functions.

GFunc is typed out to two args, and g_slist_foreach calls the passed function with two args (eg. g_free(list->data, NULL)). This works, but is it proper c? Would some compilers complain?

Thanks,

Mike
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux