summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-07-28 23:54:56 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:17 -0400
commited63481f3b1ff66f4ec2ef34f237002e33c0825c (patch)
tree00298aa86ad5395913b6736b3c55cb2b4d8a90a0 /amount.h
parentd65a758c8428403ece6548955a206a4b18a577b2 (diff)
downloadledger-ed63481f3b1ff66f4ec2ef34f237002e33c0825c.tar.gz
ledger-ed63481f3b1ff66f4ec2ef34f237002e33c0825c.tar.bz2
ledger-ed63481f3b1ff66f4ec2ef34f237002e33c0825c.zip
*** empty log message ***
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/amount.h b/amount.h
index d5d6ec11..98df367b 100644
--- a/amount.h
+++ b/amount.h
@@ -288,6 +288,7 @@ inline std::istream& operator>>(std::istream& in, amount_t& amt) {
#define COMMODITY_STYLE_THOUSANDS 0x0008
#define COMMODITY_STYLE_NOMARKET 0x0010
#define COMMODITY_STYLE_VARIABLE 0x0020
+#define COMMODITY_STYLE_BUILTIN 0x0040
typedef std::map<const std::time_t, amount_t> history_map;
typedef std::pair<const std::time_t, amount_t> history_pair;
@@ -400,9 +401,6 @@ class commodity_t
if (precision > 16)
return false;
- if (flags & ~0x1f)
- return false;
-
return true;
}
};