John Wiegley
f691735c6c
Restructed the code that it can build and be used as a shared library.
...
The command-line version is still statically bound in the build
process by default (for the sake of speed).
2008-04-13 02:41:21 -04:00
John Wiegley
eb0525e315
See ChangeLog
2008-04-13 02:41:19 -04:00
John Wiegley
ed8a236fe6
(subtotal_transactions::operator()): Changed the usage of the
...
temporary `values' map so that account names are always properly
sorted in the subtotaled output view. As it was, they were being
reported in account creation order.
2008-04-13 02:41:15 -04:00
John Wiegley
c8bbbf3f9c
(sort_transactions::post_accumulated_xacts): Created this function so
...
that interval_transactions has a way to post sorted xacts without
calling flush().
2008-04-13 02:41:10 -04:00
John Wiegley
51ca2ca08d
(transaction_xdata_t): Added a `ptr' void *, for general use. The
...
reconcile_transactions handler uses it.
2008-04-13 02:41:02 -04:00
John Wiegley
d0997fa821
Changed truncate_entries so that --head and --tail can be used at the
...
same time.
2008-04-13 02:41:00 -04:00
John Wiegley
dc4c2b8d50
Added the new transaction handler `truncate_entries' which can be used
...
to trim a number of entries from the beginning or end of a transction
stream. (push_to_transactions_list): Removed unneeded "handler"
argument.
2008-04-13 02:41:00 -04:00
John Wiegley
003464dccc
(push_to_transactions_list): Added a new transaction handler, which
...
simply adds the received transactions to a transctions_list container.
2008-04-13 02:40:56 -04:00
John Wiegley
1db60b12e2
updated to 2.02
2008-04-13 02:40:48 -04:00
John Wiegley
c9fb11bd60
updated to version 2.0
2008-04-13 02:40:47 -04:00
John Wiegley
a32173ace6
changes
2008-04-13 02:40:47 -04:00
John Wiegley
ba2c04072c
fixed several segfaults (using new option-scrambler test harness)
2004-09-27 18:08:48 -04:00
John Wiegley
c2c59d612b
corrected the way that transaction handlers are flushed
2004-09-26 00:29:41 -04:00
John Wiegley
b1aa1344ae
sorting optimization
2004-09-25 06:50:18 -04:00
John Wiegley
528019ce25
added support for "equity" in main.py
2004-09-24 07:00:52 -04:00
John Wiegley
d110df6741
added a custom transaction formatter, format_entries, used by "print"
2004-09-24 06:29:01 -04:00
John Wiegley
84259bde51
changed ledger.h to journal.h; moved adding of autoxact hook
2004-09-23 21:37:39 -04:00
John Wiegley
8a7cee24c8
fixed a bug with interval reporting
2004-09-23 19:17:21 -04:00
John Wiegley
c57a2e74b8
shored up error checking of value expressions
2004-09-23 06:34:27 -04:00
John Wiegley
5429792edc
the "bal" command mostly works now in main.py; added a finalize_entry hook
2004-09-20 03:25:28 -04:00
John Wiegley
18879bbe85
some changes in the way formatting strings are handled; for simplicity
2004-09-18 02:33:51 -04:00
John Wiegley
79b664f6f0
changed the management of "xdata" in walk.h
2004-09-17 04:38:24 -04:00
John Wiegley
e1d6c4bff2
interval_t objects now play nicely with python. see the bottom of main.py
2004-09-10 18:38:52 -04:00
John Wiegley
6261da4660
slight changed semantics of item_handler<T>, to play better with Boost.Python
2004-09-10 04:38:38 -04:00
John Wiegley
fcaaa37201
switch from using deque back to list; affects speed by up to 30%!
2004-09-06 05:38:32 -04:00
John Wiegley
63367e3aac
the amount/balance/value logic is now a library, completely separate from ledger
2004-08-29 23:32:29 -04:00
John Wiegley
b4304515ff
ledger.so (the python module) now builds based on autoconf discovery
2004-08-28 04:26:48 -04:00
John Wiegley
16841fbae3
added (disabled) code for Boost.Python
2004-08-27 23:38:39 -04:00
John Wiegley
5f30c790db
fixed another memory strangeness (too much destruction)
2004-08-26 02:01:29 -04:00
John Wiegley
69bd31b4d0
added usual operator
2004-08-25 21:51:11 -04:00
John Wiegley
ac000a67c4
fixed two memory corruption bugs
2004-08-25 21:02:07 -04:00
John Wiegley
1091f0d07b
slight cleanup
2004-08-23 02:11:58 -04:00
John Wiegley
5619a1d5be
a little more reorganizing, but only fractionally faster. diminishing returns!
2004-08-22 02:13:41 -04:00
John Wiegley
6d5333b896
use value_t instead of balance_pair_t; gains for 10% binary, 2% textual
2004-08-21 23:18:45 -04:00
John Wiegley
000bfe1cec
only compute the cost when it differs from the amount
2004-08-21 15:55:03 -04:00
John Wiegley
f62a4906d1
fix to textual parsing, and a bit of reconstruction in main.cc
2004-08-19 02:30:56 -04:00
John Wiegley
8af33274fb
more time interval support: last month, last feb, next year, etc.
2004-08-18 02:15:31 -04:00
John Wiegley
e98144ee28
further performance tweaks
2004-08-17 22:30:01 -04:00
John Wiegley
fadab59e87
changes to value expressions, and to how the display predicate is computed
2004-08-17 18:19:25 -04:00
John Wiegley
b009998930
if NO_CLEANUP is defined in the Makefile (now default), no cleanup is done
2004-08-17 03:09:46 -04:00
John Wiegley
7189b181ef
further restructuring
2004-08-15 17:08:56 -04:00
John Wiegley
0c8dff61ed
fixed problem with writing binary amounts
2004-08-13 17:29:46 -04:00
John Wiegley
a4f5abe860
Added a days-of-the-week report, under -w
2004-08-12 23:21:57 -04:00
John Wiegley
7610aec86d
added support for interval reporting; changed some option flags
2004-08-12 20:06:06 -04:00
John Wiegley
0cf1d8fe69
more reorg
2004-08-11 23:16:00 -04:00
John Wiegley
69c587681a
more reorg
2004-08-11 23:03:54 -04:00
John Wiegley
a77c20a772
many more formatting changes
2004-08-11 22:54:42 -04:00
John Wiegley
33b6cfa801
more fixes
2004-08-11 03:39:58 -04:00
John Wiegley
cd8f61fb2d
more cleanup
2004-08-11 03:23:19 -04:00
John Wiegley
3edf298633
added several kinds of transaction filters
2004-08-11 01:37:12 -04:00