r18979 - gnucash/trunk/src/gnome - Replace IF_TYPE macro with a validation function

Geert Janssens gjanssens at code.gnucash.org
Tue Mar 30 10:29:53 EDT 2010


Author: gjanssens
Date: 2010-03-30 10:29:53 -0400 (Tue, 30 Mar 2010)
New Revision: 18979
Trac: http://svn.gnucash.org/trac/changeset/18979

Modified:
   gnucash/trunk/src/gnome/top-level.c
Log:
Replace IF_TYPE macro with a validation function
The macro is quite ugly: it's not a complete if condition (missing closing bracket)
which makes the code using it difficult to read and error-prone.
Even astyle got confused by it.
The replacement code is slightly longer (two lines per replaced IF_TYPE invocation)
but clean and readable.



More information about the gnucash-patches mailing list