Re: glib 1.2, glib docs, and glib 2.0
- From: Jeffrey Stedfast <fejj helixcode com>
- To: Havoc Pennington <hp redhat com>
- Cc: gnome-list gnome org, gnome-hackers gnome org
- Subject: Re: glib 1.2, glib docs, and glib 2.0
- Date: 01 Dec 2000 02:06:41 +0500
Great, thanks - that sounds good to me.
I'll be able to sleep again tonight... ;-)
Jeff
On 30 Nov 2000 15:57:59 -0500, Havoc Pennington wrote:
>
> Hi,
>
> The solution we are planning for GLib 2.0 is:
>
> #ifdef G_DISABLE_CONST_RETURN
> #define G_CONST_RETURN
> #else
> #define G_CONST_RETURN const
> #endif
>
> ...
>
> G_CONST_RETURN gchar *g_basename ();
>
> etc.
>
> This is a compromise so everyone can be happy.
>
> I can check in the patch to create G_CONST_RETURN tonight, if someone
> wants to volunteer to go through and add G_CONST_RETURN all over the
> place that would be good.
>
> Be careful: you can only put G_CONST_RETURN on functions with C
> linkage, it does not work with C++.
>
> Havoc
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]