From 0c02b720ef209a26709acfed547da84056b3aea2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 03:53:08 -0400 Subject: Moved join_args function to precmd.cc --- src/precmd.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/precmd.cc') diff --git a/src/precmd.cc b/src/precmd.cc index f78d766e..4c916608 100644 --- a/src/precmd.cc +++ b/src/precmd.cc @@ -43,6 +43,22 @@ namespace ledger { namespace { + 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) + first = false; + else + buf << ' '; + buf << args[i]; + } + + return buf.str(); + } + post_t * get_sample_xact(report_t& report) { { -- cgit v1.2.3