Commit graph

59 commits

Author SHA1 Message Date
John Wiegley
eb0525e315 See ChangeLog 2008-04-13 02:41:19 -04:00
John Wiegley
a53f44ecda Support has been added for clearing of individual transactions. Set
`ledger-clear-whole-entries' in Emacs to revert to the old behavior.
2008-04-13 02:41:19 -04:00
John Wiegley
ed63481f3b *** empty log message *** 2008-04-13 02:41:17 -04:00
John Wiegley
b98901664c (read_binary_journal, write_binary_journal): The "basket" account
pointer was being incorrectly restored from the cache.
2008-04-13 02:41:16 -04:00
John Wiegley
39a7aed8b1 Increased binary version number. 2008-04-13 02:41:14 -04:00
John Wiegley
529604b204 Updated binary version number. (read_binary_entry_base): Read in
beginning and ending line information for each entry.
(write_binary_entry_base): Write out beginning and ending line
information for each entry.
2008-04-13 02:41:12 -04:00
John Wiegley
81e4851a6c Updated binary file version. (read_binary_journal): Read in the
"basket" account, if used.  (write_binary_journal): Write out the
"basket" account, if used.
2008-04-13 02:41:11 -04:00
John Wiegley
889014dedc Increased binary file version number. 2008-04-13 02:41:11 -04:00
John Wiegley
7252b8a6cd updated binary version number 2008-04-13 02:41:08 -04:00
John Wiegley
1c7669671c Changes to support building with gcc 2.95. 2008-04-13 02:40:57 -04:00
John Wiegley
9361c7c2e4 Added support for each entry to remember: the file it came from, and
the beginning and ending character positions of that entry within the
file.  This makes it possible to reproduce the input exactly, with
only the changed entries updated.

(read_binary_journal, write_binary_journal): All accounts and entries
now know which journal they are a member of, and have a `journal'
member pointing to it.
2008-04-13 02:40:54 -04:00
John Wiegley
d1d63be306 Updated binary cache version, for good measure.
(read_binary_journal): Read in the price_db, in order to throw away
the cache if it has changed.  (write_binary_journal): Removed unused
"files" parameter.  Changed logic for writing out files list.  Also,
write out the prices database that was used.
(py_write_binary_journal): Removed "files" argument.
2008-04-13 02:40:52 -04:00
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