gcc 4

David Hampton hampton-gnucash at rainbolthampton.net
Wed Sep 28 20:57:57 EDT 2005


On Wed, 2005-09-28 at 16:49 -0400, Derek Atkins wrote:
> Quoting Neil Williams <linux at codehelp.co.uk>:
> 
> > On Wednesday 28 September 2005 9:07 pm, Derek Atkins wrote:
> >> I'm hoping this change is just a one-line change from "short int" to
> >> QofModuleName -- right?
> >
> > static short module = MOD_BACKEND;
> > becomes
> > static gchar* log_module = GNC_MOD_BACKEND;
> >
> > Didn't see the need for another typedef.
> 
> The new typedef saves us from having to made the same pervasive set
> of changes sometime in the future.  Not that we necessarily need to,
> but if we're going through the effort to change it, might as well
> do it right.  :)

I was going to suggest 'static const gchar *' as the new type, but then
that sort of proves your point, doesn't it.

David




More information about the gnucash-devel mailing list