volunteer needed: "const" on returned strings



Hi,

We have this new G_CONST_RETURN macro, which by default expands to
"const". This should be applied to all functions in GLib/Pango/GTK
that return a string by reference (rather than returning an allocated
string that must be freed).

The work is trivial, for each function you first determine if the
return value is by reference or must be freed, if by reference you
just add G_CONST_RETURN to both the prototype in the header file and
the definition in the .c file.

If anyone wants to do this work, maybe someone who gets really annoyed
by the lack of const, ;-), it would be much appreciated.

Havoc
 




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