summaryrefslogtreecommitdiff
path: root/ledger.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-09-30 00:09:43 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-09-30 00:09:43 +0000
commit7bf86bc48a564ffffa46461c15ae2ab34b258fe8 (patch)
treea33b8365b8dc834413997170e2200f818f5fb894 /ledger.cc
parent3667f06594a99dd6f0080747732e7eff639343b1 (diff)
downloadfork-ledger-7bf86bc48a564ffffa46461c15ae2ab34b258fe8.tar.gz
fork-ledger-7bf86bc48a564ffffa46461c15ae2ab34b258fe8.tar.bz2
fork-ledger-7bf86bc48a564ffffa46461c15ae2ab34b258fe8.zip
*** empty log message ***
Diffstat (limited to 'ledger.cc')
-rw-r--r--ledger.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/ledger.cc b/ledger.cc
index 88a9d0b7..e2d7ed35 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -1,13 +1,11 @@
-#include <vector>
-
#include "ledger.h"
namespace ledger {
commodities_t commodities;
commodity * commodity_usd;
-
-accounts_t accounts;
+accounts_t accounts;
+ledger_t ledger;
void entry::print(std::ostream& out) const
{
@@ -105,10 +103,10 @@ amount * totals::value(const std::string& commodity)
return total;
}
-// Print out the entire ledger that was read in, but now sorted.
+// Print out the entire ledger that was read in, sorted by date.
// This can be used to "wash" ugly ledger files.
-void print_ledger(std::ostream& out, std::vector<entry *>& ledger)
+void print_ledger(int argc, char *argv[], std::ostream& out)
{
// Sort the list of entries by date, then print them in order.