summaryrefslogtreecommitdiff
path: root/src/xact.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-19 08:08:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-19 08:08:28 -0400
commit1edb531c051712f8c65eea24386ebe5c6ae5ddb5 (patch)
treeff9ab86faebe5af110660f401e6c2c34106f96a6 /src/xact.h
parente85a52b72bc55d2a5ca1498b165269e09aeb2dac (diff)
downloadfork-ledger-1edb531c051712f8c65eea24386ebe5c6ae5ddb5.tar.gz
fork-ledger-1edb531c051712f8c65eea24386ebe5c6ae5ddb5.tar.bz2
fork-ledger-1edb531c051712f8c65eea24386ebe5c6ae5ddb5.zip
Renamed XACT_BALANCE flag to XACT_MUST_BALANCE.
Diffstat (limited to 'src/xact.h')
-rw-r--r--src/xact.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xact.h b/src/xact.h
index 01268fc3..e93d97d3 100644
--- a/src/xact.h
+++ b/src/xact.h
@@ -45,10 +45,10 @@ typedef std::list<xact_t *> xacts_list;
class xact_t : public item_t
{
public:
-#define XACT_VIRTUAL 0x0100 // the account was specified with (parens)
-#define XACT_BALANCE 0x0200 // the account was specified with [brackets]
-#define XACT_AUTO 0x0400 // transaction created by automated entry
-#define XACT_CALCULATED 0x0800 // transaction's amount was auto-calculated
+#define XACT_VIRTUAL 0x0100 // the account was specified with (parens)
+#define XACT_MUST_BALANCE 0x0200 // the account was specified with [brackets]
+#define XACT_AUTO 0x0400 // transaction created by automated entry
+#define XACT_CALCULATED 0x0800 // transaction's amount was auto-calculated
entry_t * entry; // only set for xacts of regular entries
account_t * account;
@@ -96,7 +96,7 @@ public:
virtual state_t state() const;
bool must_balance() const {
- return ! has_flags(XACT_VIRTUAL) || has_flags(XACT_BALANCE);
+ return ! has_flags(XACT_VIRTUAL) || has_flags(XACT_MUST_BALANCE);
}
virtual expr_t::ptr_op_t lookup(const string& name);