Commit graph

120 commits

Author SHA1 Message Date
John Wiegley
a27ae2fb00 fixed another problem with interval reports and the -s option 2004-09-25 07:12:14 -04:00
John Wiegley
3a3227298d if a commodity price cannot be downloaded, report it as an error 2004-09-25 02:51:55 -04:00
John Wiegley
fbad042178 can't reliably use `access' and W_OK 2004-09-25 02:39:07 -04:00
John Wiegley
eda733a56e improved error checking in parser, in case parts of an amount are missing 2004-09-24 23:11:50 -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
c5d519447e fixed a rather obscure memory bug, which also simplified some code 2004-09-24 05:25:52 -04:00
John Wiegley
3038b7cee8 finalizer fixes; removed use of timing.h from main.cc 2004-09-24 04:56:46 -04:00
John Wiegley
1416f3b978 a bit more refactoring 2004-09-23 21:54:11 -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
c57bfb72c3 moved entry hooking mechanism to journal_t; further improvements to "entry" 2004-09-23 21:08:42 -04:00
John Wiegley
69c84c86b8 always sort the transaction chain, if interval reporting is being used 2004-09-23 19:16:52 -04:00
John Wiegley
4e6157b74a added some error checking 2004-09-23 02:37:42 -04:00
John Wiegley
e59ba74814 if --file and the --cache refer to the same file, don't use caching 2004-09-20 06:18:24 -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
5d99b1e241 using main.py is now only 50% slower than using main.cc 2004-09-14 19:15:08 -04:00
John Wiegley
0c890de44b main.py now implements nearly all the functionality of main.cc 2004-09-14 17:34:48 -04:00
John Wiegley
061e19e302 make config_t visible to Python; almost possible to implement main.cc in main.py 2004-09-14 06:25:29 -04:00
John Wiegley
435b9ed779 added python support for Format() objects. see main.py 2004-09-10 19:52:51 -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
842359474e optimize python iterations of entries, transactions; use exceptions more 2004-09-08 03:33:56 -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
032afa5657 a bit of a reorg; still much more to go 2004-08-29 03:23:55 -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
3c50b2fb7a read all binary data in at one go; gains 33% 2004-08-26 15:35:14 -04:00
John Wiegley
ac000a67c4 fixed two memory corruption bugs 2004-08-25 21:02:07 -04:00
John Wiegley
c6860970f2 removed all uses of std::vector; simplified some code 2004-08-24 20:01:51 -04:00
John Wiegley
5b0bfeac0c added validation code, to walk through a journal_t and make sure it's ok 2004-08-24 04:41:39 -04:00
John Wiegley
c3b1de42de fixed a few minor bugs 2004-08-24 02:59:22 -04:00
John Wiegley
1fd37a432d cleanup; fully switched to autoconf -- use scripts/acprep 2004-08-24 02:11:32 -04:00
John Wiegley
73e2abd1b2 a little cleanup; reversed the meaning of -z and -p (to be more mnemonic) 2004-08-23 18:23:31 -04:00
John Wiegley
1091f0d07b slight cleanup 2004-08-23 02:11:58 -04:00
John Wiegley
6365b8b7a8 simplified some code 2004-08-22 18:34:18 -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
06ac87ab20 support arbitrary precision after the decimal point; increase speed 0-10% 2004-08-21 01:43:50 -04:00
John Wiegley
19de076b4d updated gnucash support 2004-08-20 02:51:14 -04:00
John Wiegley
f19aeb6d44 fixes 2004-08-19 22:05:22 -04:00
John Wiegley
a9b207205f several fixes 2004-08-19 22:03:23 -04:00
John Wiegley
aba3d3037a added support for parsing QIF files 2004-08-19 17:55:33 -04:00
John Wiegley
bf923ab33e use std::auto_ptr wherever a thrown exception might otherwise leak memory 2004-08-19 03:28:48 -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
e1086a3040 added --help docs, and fixed some problems with balance reproting 2004-08-18 05:26:59 -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
9d1bdd0989 added inclusion specifiers: -z june, -z 2004, -z "monthly in 2003", etc. 2004-08-18 01:20: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
de39574e89 fixed a memory corruption bug stemming from not using an input iterator 2004-08-17 16:46:24 -04:00