Re: PATCH: Sort SX vars

2010-02-22 Thread Derek Atkins
Jesse Weinstein writes: > I found safe_strcmp in qofutil.h -- but it's not at all clear to me how > or whether I can or should #include that into gnc-sx-instance-model.c > where my patch touches. Advise? As for having using a utf8-aware > comparison -- I'm open to suggestions, but, I'm not aware

Re: PATCH: Sort SX vars

2010-02-20 Thread Jesse Weinstein
I found safe_strcmp in qofutil.h -- but it's not at all clear to me how or whether I can or should #include that into gnc-sx-instance-model.c where my patch touches. Advise? As for having using a utf8-aware comparison -- I'm open to suggestions, but, I'm not aware of what if any is already in use,

Re: PATCH: Sort SX vars

2010-02-20 Thread Derek Atkins
Jesse Weinstein writes: > +static gint > +_compare_GncSxVariables(gconstpointer a, gconstpointer b) > +{ > + return strcmp(((const GncSxVariable*)a)->name, ((const > GncSxVariable*)b)->name); > +} You should probably use safe_strcmp() here (in case ->name is NULL). Or maybe even a utf8-capable

Re: PATCH: Sort SX vars

2010-02-19 Thread Geert Janssens
On Saturday 20 February 2010, Jesse Weinstein wrote: > This patch causes the SX "Since Last Run..." dialog to display SX > variables in ASCII order, rather than ordering by hashvalue (i.e. no > order at all) as was done previously. > > I previously, incorrectly, sent this to the list mixed in with

PATCH: Sort SX vars

2010-02-19 Thread Jesse Weinstein
This patch causes the SX "Since Last Run..." dialog to display SX variables in ASCII order, rather than ordering by hashvalue (i.e. no order at all) as was done previously. I previously, incorrectly, sent this to the list mixed in with another patch; I'm resending it separately, as suggested on IR

PATCH: Sort SX vars, add bzr support to gnc-svnversion, rm outdated bits from README

2010-02-16 Thread Jesse Weinstein
Sorry about mixing three patches in one; I don't (yet) know how to make bzr separate them. I'll do it by hand if requested, though. All three of these patches are tiny, less than 10 lines for each. First, I modified the sx variable handling code to sort the variables when it turns them into a