diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-19 08:31:17 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-19 08:31:17 -0400 |
commit | 0e95974360464212de55803c4fc6c671502dbf99 (patch) | |
tree | a4561bc39979f6368acbcf4058bdcf238cccde62 /src/item.h | |
parent | eb425536d42734602429fef049479b3c379f28d9 (diff) | |
download | fork-ledger-0e95974360464212de55803c4fc6c671502dbf99.tar.gz fork-ledger-0e95974360464212de55803c4fc6c671502dbf99.tar.bz2 fork-ledger-0e95974360464212de55803c4fc6c671502dbf99.zip |
Changed some of the transaction flags, since all must fit in 8 bits.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -37,19 +37,13 @@ namespace ledger { -class entry_t; -class account_t; - -class item_t; -typedef std::list<item_t *> items_list; - class item_t : public supports_flags<>, public scope_t { public: -#define ITEM_NORMAL 0x0000 // no flags at all, a basic transaction -#define ITEM_IN_CACHE 0x0001 // transaction allocated by the binary cache -#define ITEM_GENERATED 0x0002 // transaction was not found in a journal -#define ITEM_TEMP 0x0004 // transaction is a temporary object +#define ITEM_NORMAL 0x00 // no flags at all, a basic transaction +#define ITEM_IN_CACHE 0x01 // transaction allocated by the binary cache +#define ITEM_GENERATED 0x02 // transaction was not found in a journal +#define ITEM_TEMP 0x04 // transaction is a temporary object enum state_t { UNCLEARED = 0, CLEARED, PENDING }; |