r18523 - gnucash/trunk/src/engine - Add a comment about GNC_COMMODITY_NS_ISO and
Mike Alexander
mta at code.gnucash.org
Thu Dec 17 03:03:23 EST 2009
Author: mta
Date: 2009-12-17 03:03:23 -0500 (Thu, 17 Dec 2009)
New Revision: 18523
Trac: http://svn.gnucash.org/trac/changeset/18523
Modified:
gnucash/trunk/src/engine/gnc-commodity.c
Log:
Add a comment about GNC_COMMODITY_NS_ISO and
GNC_COMMODITY_NS_CURRENCY.
Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c 2009-12-17 07:56:49 UTC (rev 18522)
+++ gnucash/trunk/src/engine/gnc-commodity.c 2009-12-17 08:03:23 UTC (rev 18523)
@@ -1912,6 +1912,12 @@
return table->ns_list;
}
+/* Because gnc_commodity_table_add_namespace maps GNC_COMMODITY_NS_ISO to
+ GNC_COMMODITY_NS_CURRENCY and then sets iso4217 if the namespace is
+ either of these, the net result is that the iso4217 bit is set only
+ for GNC_COMMODITY_NS_CURRENCY. This means that gnc_commodity_is_iso is
+ a subset of gnc_commodity_is_currency. Most callers seem to use
+ gnc_commodity_is_iso. */
gboolean
gnc_commodity_is_iso(const gnc_commodity * cm)
{
More information about the gnucash-changes
mailing list