summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-19 19:58:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-19 19:58:47 -0400
commit5cc99a6972b3b50d70b69897325bc821c8c9ec19 (patch)
treefea89ccce7750e72d61b89149952dc75f58557b8 /src/commodity.h
parent94463c7b0fdc9f51f80ff6816f77b12e4e10017b (diff)
downloadfork-ledger-5cc99a6972b3b50d70b69897325bc821c8c9ec19.tar.gz
fork-ledger-5cc99a6972b3b50d70b69897325bc821c8c9ec19.tar.bz2
fork-ledger-5cc99a6972b3b50d70b69897325bc821c8c9ec19.zip
Changed COMMODITY_STYLE_BUILTIN to COMMODITY_BUILTIN, and added new flag
COMMODITY_WALKED, for avoiding infinite recursions during price lookups.
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 6c9a7586..204dec8d 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -127,13 +127,14 @@ public:
history(const std::vector<commodity_t *>& commodities);
};
-#define COMMODITY_STYLE_DEFAULTS 0x00
-#define COMMODITY_STYLE_SUFFIXED 0x01
-#define COMMODITY_STYLE_SEPARATED 0x02
-#define COMMODITY_STYLE_EUROPEAN 0x04
-#define COMMODITY_STYLE_THOUSANDS 0x08
-#define COMMODITY_STYLE_NOMARKET 0x10
-#define COMMODITY_STYLE_BUILTIN 0x20
+#define COMMODITY_STYLE_DEFAULTS 0x00
+#define COMMODITY_STYLE_SUFFIXED 0x01
+#define COMMODITY_STYLE_SEPARATED 0x02
+#define COMMODITY_STYLE_EUROPEAN 0x04
+#define COMMODITY_STYLE_THOUSANDS 0x08
+#define COMMODITY_STYLE_NOMARKET 0x10
+#define COMMODITY_BUILTIN 0x20
+#define COMMODITY_WALKED 0x40
string symbol;
amount_t::precision_t precision;