summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-29 05:10:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-29 05:59:38 -0400
commit4518ea95408e2d5fe90a87159b88bb41734ec1dc (patch)
tree3026169803aaea580d8b452cb9bb8a569c92fb2a /format.h
parent63039ade9209bced70b3e4dbb673ad90286d310a (diff)
downloadledger-4518ea95408e2d5fe90a87159b88bb41734ec1dc.tar.gz
ledger-4518ea95408e2d5fe90a87159b88bb41734ec1dc.tar.bz2
ledger-4518ea95408e2d5fe90a87159b88bb41734ec1dc.zip
Value expression architecture is now rewritten, but the functionality of the
old system (for example, the meaning of 'a') has yet to be restored. In the new scheme, this will be done by definition a function outside of the value expression logic, rather than the tight coupling between journal innards and value expressions that occurred in 2.x.
Diffstat (limited to 'format.h')
-rw-r--r--format.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.h b/format.h
index 405da2e1..eb735180 100644
--- a/format.h
+++ b/format.h
@@ -2,7 +2,7 @@
#define _FORMAT_H
#include "journal.h"
-#include "valexpr.h"
+#include "expr.h"
#include "walk.h"
namespace ledger {
@@ -53,7 +53,7 @@ struct element_t : public noncopyable
string chars;
unsigned char min_width;
unsigned char max_width;
- value_expr val_expr;
+ expr_t val_expr;
struct element_t * next;
@@ -110,7 +110,7 @@ struct format_t : public noncopyable
static string truncate(const string& str, unsigned int width,
const bool is_account = false);
- void format(std::ostream& out, const details_t& details) const;
+ void format(std::ostream& out, const scope_t& scope) const;
};
class format_transactions : public item_handler<transaction_t>