Commit graph

97 commits

Author SHA1 Message Date
John Wiegley
e83b8a0471 Updated binary cache version, for good measure. 2008-04-13 02:40:52 -04:00
John Wiegley
c59a5c9f86 Updated binary file version. (read_binary_journal): Read in the
default commodity.  (write_binary_journal): Write out the default
commodity.
2008-04-13 02:40:49 -04:00
John Wiegley
fdac1f14e9 updated cache version 2008-04-13 02:40:49 -04:00
John Wiegley
9403113c59 (read_binary_amount): If the commodity ident is zero,
it is an explicit reference to commodity_t::null_commodity.
(write_binary_journal): Initialize account_index and
commodity_index to zero before writing.
(write_binary_journal): Set the "ident" field of the
null_commodity to 0, so that read_binary_amount can recognize it.
2008-04-13 02:40:48 -04:00
John Wiegley
b02c7ef8aa Fixed a textual parsing bug. 2008-04-13 02:40:48 -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
3a3227298d if a commodity price cannot be downloaded, report it as an error 2004-09-25 02:51:55 -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
23799b5f4e main.py does everything except balance reports now 2004-09-14 18:48:26 -04:00
John Wiegley
e414123ecb change commodity->symbol to const, and added set_symbol 2004-09-10 05:07:50 -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
2d62f7b633 redid the way amount_t::commodity is handled; no more direct access 2004-08-29 04:31:59 -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
942943323e don't placement new() amount_t in binary.cc when it isn't necessary 2004-08-26 14:31:50 -04:00
John Wiegley
ac000a67c4 fixed two memory corruption bugs 2004-08-25 21:02:07 -04:00
John Wiegley
2f8f640010 minor simplification 2004-08-25 02:15:30 -04:00
John Wiegley
5b402a26cb use back-patching to simplify binary file writing 2004-08-25 02:11:56 -04:00
John Wiegley
6febfc3b4c Bulk alloc bigints in the binary reader; this gains another 20% 2004-08-25 01:47:55 -04:00
John Wiegley
c6860970f2 removed all uses of std::vector; simplified some code 2004-08-24 20:01:51 -04:00
John Wiegley
d4e39c488d use a string pool in binary files; gains 7% read time 2004-08-24 19:22:51 -04:00
John Wiegley
1fd37a432d cleanup; fully switched to autoconf -- use scripts/acprep 2004-08-24 02:11:32 -04:00
John Wiegley
b85a536be7 change to binary loading that increases speed by another 20% 2004-08-23 07:23:33 -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
47cb7891c8 changed RELEASE_LEVEL to DEBUG_LEVEL 2004-08-21 05:45:33 -04:00
John Wiegley
b030416982 fixes to how commodities are looked up using quotes.cc 2004-08-21 03:54:27 -04:00
John Wiegley
8eaa76d11c bumped binary file version number 2004-08-21 03:23:55 -04:00
John Wiegley
fb91d6f21e add copy-on-write semantics to amount.cc; cuts object creation by 5x 2004-08-21 03:23:17 -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
bbcb49fed2 fixes 2004-08-17 16:41:07 -04:00
John Wiegley
aeb2fd0d39 misc cleanup 2004-08-17 03:39:51 -04:00
John Wiegley
cd7d7e5b88 slight fixes 2004-08-17 01:50:38 -04:00
John Wiegley
3a44545540 more binary format changes 2004-08-16 22:18:07 -04:00
John Wiegley
b10ff955a3 cleaned up binary data writing, and file handling 2004-08-15 02:39:13 -04:00
John Wiegley
7a1d0d4614 new debug code; automated transactions now use value expression predicates 2004-08-10 17:54:47 -04:00
John Wiegley
6048ae7c05 fixed cache by clear transaction flags before writing 2004-08-05 23:51:20 -04:00
John Wiegley
7e87a0a0b1 added back sorting support 2004-08-05 19:12:23 -04:00
John Wiegley
1741c80fe4 rewrote the way registers are computed -- again 2004-08-04 03:12:26 -04:00
John Wiegley
f570e6644f brought back the "print" and "equity" reports; this time much better! 2004-07-31 07:42:34 -04:00
John Wiegley
94e76ae87e two major changes
Complete changed the way format strings are handled.  They are now
compiled first, which is far more efficient than what was being done
before.

Also, there is now a global ledger::commodity_t::commodities map,
which saves me from having to pass the current journal around to a
zillion different functions, for the sole purpose of making sure that
all commodity symbols that are parsed refer to the same commodity
object.
2004-07-30 21:57:02 -04:00
John Wiegley
a2f805ef73 Exit if parsing errors are encountered 2004-07-29 01:56:53 -04:00
John Wiegley
161d6f79bd initial rev of 2.0 2004-07-26 23:33:51 -04:00