summaryrefslogtreecommitdiff
path: root/src/expr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-27 04:59:04 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-27 05:02:25 -0600
commit2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa (patch)
tree762118fc9fec617672c84980ba7efc9bd1f980f9 /src/expr.h
parent0e7b4fb1821a80ee43fafd55447a01255564eb3d (diff)
downloadfork-ledger-2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa.tar.gz
fork-ledger-2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa.tar.bz2
fork-ledger-2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa.zip
Implement the "tag" metadata directive
Diffstat (limited to 'src/expr.h')
-rw-r--r--src/expr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/expr.h b/src/expr.h
index c4cd5dc5..79ae2864 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -58,6 +58,15 @@ public:
typedef intrusive_ptr<op_t> ptr_op_t;
typedef intrusive_ptr<const op_t> const_ptr_op_t;
+ enum check_expr_kind_t {
+ EXPR_GENERAL,
+ EXPR_ASSERTION,
+ EXPR_CHECK
+ };
+
+ typedef std::pair<expr_t, check_expr_kind_t> check_expr_pair;
+ typedef std::list<check_expr_pair> check_expr_list;
+
protected:
ptr_op_t ptr;