From dea2aed0b509734ec4e1cd163ac2a4f013000da2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 Jun 2010 16:03:50 -0400 Subject: Untabified all source files --- src/item.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 92b29844..25130d6d 100644 --- a/src/item.h +++ b/src/item.h @@ -50,10 +50,10 @@ struct position_t { path pathname; istream_pos_type beg_pos; - std::size_t beg_line; + std::size_t beg_line; istream_pos_type end_pos; - std::size_t end_line; - std::size_t sequence; + std::size_t end_line; + std::size_t sequence; position_t() : beg_pos(0), beg_line(0), end_pos(0), end_line(0), sequence(0) { @@ -100,16 +100,16 @@ private: class item_t : public supports_flags, public scope_t { public: -#define ITEM_NORMAL 0x00 // no flags at all, a basic posting -#define ITEM_GENERATED 0x01 // posting was not found in a journal -#define ITEM_TEMP 0x02 // posting is a managed temporary +#define ITEM_NORMAL 0x00 // no flags at all, a basic posting +#define ITEM_GENERATED 0x01 // posting was not found in a journal +#define ITEM_TEMP 0x02 // posting is a managed temporary enum state_t { UNCLEARED = 0, CLEARED, PENDING }; typedef std::pair, bool> tag_data_t; - typedef std::map string_map; + typedef std::map string_map; - state_t _state; + state_t _state; optional _date; optional _date_eff; optional note; @@ -151,21 +151,21 @@ public: virtual bool has_tag(const string& tag) const; virtual bool has_tag(const mask_t& tag_mask, - const optional& value_mask = none) const; + const optional& value_mask = none) const; virtual optional get_tag(const string& tag) const; virtual optional get_tag(const mask_t& tag_mask, - const optional& value_mask = none) const; + const optional& value_mask = none) const; virtual string_map::iterator - set_tag(const string& tag, - const optional& value = none, - const bool overwrite_existing = true); + set_tag(const string& tag, + const optional& value = none, + const bool overwrite_existing = true); virtual void parse_tags(const char * p, bool overwrite_existing = true, - optional current_year = none); + optional current_year = none); virtual void append_note(const char * p, bool overwrite_existing = true, - optional current_year = none); + optional current_year = none); static bool use_effective_date; @@ -173,7 +173,7 @@ public: assert(_date); if (use_effective_date) if (optional effective = effective_date()) - return *effective; + return *effective; return *_date; } virtual date_t actual_date() const { @@ -192,7 +192,7 @@ public: } virtual expr_t::ptr_op_t lookup(const symbol_t::kind_t kind, - const string& name); + const string& name); bool valid() const; @@ -217,9 +217,9 @@ private: }; value_t get_comment(item_t& item); -void print_item(std::ostream& out, const item_t& item, - const string& prefix = ""); -string item_context(const item_t& item, const string& desc); +void print_item(std::ostream& out, const item_t& item, + const string& prefix = ""); +string item_context(const item_t& item, const string& desc); } // namespace ledger -- cgit v1.2.3