RE: g_slist_foreach and single arg functions
- From: "Tom Liu" <tom liu flextrade com>
- To: "'Mike'" <logan dct com>, <gtk-list gnome org>
- Subject: RE: g_slist_foreach and single arg functions
- Date: Tue, 28 Oct 2003 16:43:05 -0500
This is not good, but it works.
For example: printf() you can push a lot of args than they need.
-----Original Message-----
From: gtk-list-admin gnome org [mailto:gtk-list-admin gnome org] On
Behalf Of Mike
Sent: Tuesday, October 28, 2003 4:00 PM
To: gtk-list gnome org
Subject: g_slist_foreach and single arg functions
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 mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]