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/op.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/op.h') diff --git a/src/op.h b/src/op.h index 936c11f4..27fdea3b 100644 --- a/src/op.h +++ b/src/op.h @@ -56,13 +56,13 @@ public: private: mutable short refc; - ptr_op_t left_; + ptr_op_t left_; - variant data; + variant data; public: enum kind_t { @@ -225,13 +225,13 @@ public: private: void acquire() const { DEBUG("op.memory", - "Acquiring " << this << ", refc now " << refc + 1); + "Acquiring " << this << ", refc now " << refc + 1); assert(refc >= 0); refc++; } void release() const { DEBUG("op.memory", - "Releasing " << this << ", refc now " << refc - 1); + "Releasing " << this << ", refc now " << refc - 1); assert(refc > 0); if (--refc == 0) checked_delete(this); @@ -253,28 +253,28 @@ private: public: static ptr_op_t new_node(kind_t _kind, ptr_op_t _left = NULL, - ptr_op_t _right = NULL); + ptr_op_t _right = NULL); ptr_op_t compile(scope_t& scope, const int depth = 0); value_t calc(scope_t& scope, ptr_op_t * locus = NULL, - const int depth = 0); + const int depth = 0); struct context_t { - ptr_op_t expr_op; - ptr_op_t op_to_find; + ptr_op_t expr_op; + ptr_op_t op_to_find; ostream_pos_type * start_pos; ostream_pos_type * end_pos; - bool relaxed; + bool relaxed; context_t(const ptr_op_t& _expr_op = NULL, - const ptr_op_t& _op_to_find = NULL, - ostream_pos_type * const _start_pos = NULL, - ostream_pos_type * const _end_pos = NULL, - const bool _relaxed = true) + const ptr_op_t& _op_to_find = NULL, + ostream_pos_type * const _start_pos = NULL, + ostream_pos_type * const _end_pos = NULL, + const bool _relaxed = true) : expr_op(_expr_op), op_to_find(_op_to_find), - start_pos(_start_pos), end_pos(_end_pos), - relaxed(_relaxed) {} + start_pos(_start_pos), end_pos(_end_pos), + relaxed(_relaxed) {} }; bool print(std::ostream& out, const context_t& context = context_t()) const; @@ -300,8 +300,8 @@ private: ar & temp_op; } if (Archive::is_loading::value || kind == VALUE || kind == IDENT || - (kind > UNARY_OPERATORS && - (! has_right() || ! right()->is_function()))) { + (kind > UNARY_OPERATORS && + (! has_right() || ! right()->is_function()))) { ar & data; } else { variant temp_data; @@ -337,7 +337,7 @@ expr_t::op_t::wrap_functor(const expr_t::func_t& fobj) { #define WRAP_FUNCTOR(x) expr_t::op_t::wrap_functor(x) string op_context(const expr_t::ptr_op_t op, - const expr_t::ptr_op_t locus = NULL); + const expr_t::ptr_op_t locus = NULL); } // namespace ledger -- cgit v1.2.3