From 4365d9e3fcbe2546c15f188833a69cf8416f44fe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 16 Feb 2009 04:10:22 -0400 Subject: Moved around some functions for clarity --- src/scope.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/scope.cc') diff --git a/src/scope.cc b/src/scope.cc index f4b2dfab..660f1af2 100644 --- a/src/scope.cc +++ b/src/scope.cc @@ -60,4 +60,21 @@ expr_t::ptr_op_t symbol_scope_t::lookup(const string& name) return child_scope_t::lookup(name); } +string join_args(call_scope_t& args) +{ + std::ostringstream buf; + bool first = true; + + for (std::size_t i = 0; i < args.size(); i++) { + if (first) { + buf << args[i]; + first = false; + } else { + buf << ' ' << args[i]; + } + } + + return buf.str(); +} + } // namespace ledger -- cgit v1.2.3