Re: minor api issues



Owen Taylor <otaylor redhat com> writes: 
>  gboolean foo (const char *a, G_CONST_RETURN char **b);
> 

Keep in mind the tricky part that we can't tell from this prototype
whether we have an "out string" or "in string[]"

G_CONST_RETURN is decidedly wrong, wrong, wrong for "in string[]"

People are going to screw this up, it probably needs some heavy noting
in the G_CONST_RETURN docs.

Havoc




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