summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-15 02:39:13 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-15 02:39:13 -0400
commitb10ff955a370b7fd2add5c5493f1987b5d7b6600 (patch)
tree9e5b0cd0022862766cda8b62aca7c7336bbc4c51 /amount.h
parent972ed4c386f8beeafda3519f6769f6dd9670e69a (diff)
downloadfork-ledger-b10ff955a370b7fd2add5c5493f1987b5d7b6600.tar.gz
fork-ledger-b10ff955a370b7fd2add5c5493f1987b5d7b6600.tar.bz2
fork-ledger-b10ff955a370b7fd2add5c5493f1987b5d7b6600.zip
cleaned up binary data writing, and file handling
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/amount.h b/amount.h
index f2d44010..474f2dae 100644
--- a/amount.h
+++ b/amount.h
@@ -188,6 +188,8 @@ typedef std::pair<const std::string, commodity_t *> commodities_pair;
class commodity_t
{
public:
+ typedef unsigned short ident_t;
+
std::string symbol;
std::string name;
std::string note;
@@ -195,7 +197,7 @@ class commodity_t
unsigned int flags;
history_map history;
amount_t conversion;
- unsigned long ident;
+ ident_t ident;
// If set, this global function pointer is called to determine
// whether prices have been updated in the meanwhile.