diff options
author | John Wiegley <johnw@newartisans.com> | 2003-09-30 00:09:43 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-09-30 00:09:43 +0000 |
commit | 7bf86bc48a564ffffa46461c15ae2ab34b258fe8 (patch) | |
tree | a33b8365b8dc834413997170e2200f818f5fb894 /ledger.cc | |
parent | 3667f06594a99dd6f0080747732e7eff639343b1 (diff) | |
download | fork-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.cc | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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. |