Re: glib 1.2, glib docs, and glib 2.0



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]