diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-13 03:53:08 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 03:53:08 -0400 |
commit | 0c02b720ef209a26709acfed547da84056b3aea2 (patch) | |
tree | 2f8def7b90ac7b62e2b771753cdee505e9de8793 /src/precmd.cc | |
parent | 0bb9c110624edab2cbde1709d69e38761a7b9fd0 (diff) | |
download | fork-ledger-0c02b720ef209a26709acfed547da84056b3aea2.tar.gz fork-ledger-0c02b720ef209a26709acfed547da84056b3aea2.tar.bz2 fork-ledger-0c02b720ef209a26709acfed547da84056b3aea2.zip |
Moved join_args function to precmd.cc
Diffstat (limited to 'src/precmd.cc')
-rw-r--r-- | src/precmd.cc | 16 |
1 files changed, 16 insertions, 0 deletions
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) { { |