summaryrefslogtreecommitdiff
path: root/src/expr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-29 02:24:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-29 02:24:25 -0400
commit8b75b5cbfbb53e0bfa51c63dc96ade69617cd1db (patch)
treec10c7ea058d0491988078093ad27bac2f9ba240c /src/expr.h
parent5b388af6264b1bff5ff143db4120e4776d06c90c (diff)
downloadfork-ledger-8b75b5cbfbb53e0bfa51c63dc96ade69617cd1db.tar.gz
fork-ledger-8b75b5cbfbb53e0bfa51c63dc96ade69617cd1db.tar.bz2
fork-ledger-8b75b5cbfbb53e0bfa51c63dc96ade69617cd1db.zip
Revised the way that parsing flags get passed around.
Diffstat (limited to 'src/expr.h')
-rw-r--r--src/expr.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/expr.h b/src/expr.h
index f61c0522..de729de1 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -57,6 +57,16 @@ public:
class op_t;
typedef intrusive_ptr<op_t> ptr_op_t;
+ enum parse_flags_enum_t {
+ PARSE_NORMAL = 0x00,
+ PARSE_PARTIAL = 0x01,
+ PARSE_SINGLE = 0x02,
+ PARSE_NO_MIGRATE = 0x04,
+ PARSE_NO_REDUCE = 0x08,
+ PARSE_NO_ASSIGN = 0x10,
+ PARSE_NO_DATES = 0x20
+ };
+
private:
ptr_op_t ptr;
string str;
@@ -75,8 +85,8 @@ public:
expr_t(const expr_t& other);
expr_t(const ptr_op_t& _ptr, const string& _str = "");
- expr_t(const string& _str, const unsigned int flags = 0);
- expr_t(std::istream& in, const unsigned int flags = 0);
+ expr_t(const string& _str, const uint_least8_t flags = 0);
+ expr_t(std::istream& in, const uint_least8_t flags = 0);
virtual ~expr_t() throw();