Add a comment about GNC_COMMODITY_NS_ISO and

GNC_COMMODITY_NS_CURRENCY.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18523 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander
2009-12-17 08:03:23 +00:00
parent 7dd2d8e566
commit 812a9fa6c5

View File

@@ -1912,6 +1912,12 @@ gnc_commodity_table_get_namespaces_list(const gnc_commodity_table * table)
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)
{