Commit graph

87 commits

Author SHA1 Message Date
John Wiegley
52fc9f2e44 Brought in the final round of 3.0 code, although it does not compile yet:
report, session, parts of xpath, main, journal, option.
2008-07-20 05:03:54 -04:00
John Wiegley
150abce0db Commented out code that's not being used yet. 2008-07-19 21:02:58 -04:00
John Wiegley
d159501993 The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
John Wiegley
b45037e334 Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
John Wiegley
5a93d4819e Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
John Wiegley
a5aff9eee9 Several fixes to lot price handling. 2008-04-13 02:41:31 -04:00
John Wiegley
32bdfe20d9 Tons of corrections and fixes to value expressions and lot figures. 2008-04-13 02:41:31 -04:00
John Wiegley
9800e3febc *** empty log message *** 2008-04-13 02:41:31 -04:00
John Wiegley
82d0ee869b Added --ansi and --ansi-invert options. 2008-04-13 02:41:30 -04:00
John Wiegley
e32d9e64a7 Added much better error location. 2008-04-13 02:41:29 -04:00
John Wiegley
d02f74efea *** empty log message *** 2008-04-13 02:41:29 -04:00
John Wiegley
7acc1306d9 *** empty log message *** 2008-04-13 02:41:29 -04:00
John Wiegley
96d6d62ad9 Began support for improved commodity handling. 2008-04-13 02:41:28 -04:00
John Wiegley
cf773a5a12 *** empty log message *** 2008-04-13 02:41:28 -04:00
John Wiegley
0c55a5ee1b (read_binary_journal): Fixed a tiny memory leak when reading from a
binary cache.
2008-04-13 02:41:28 -04:00
John Wiegley
9db08c4c7d (read_binary_journal): Fixed a tiny memory leak when reading from a
binary cache.
2008-04-13 02:41:28 -04:00
John Wiegley
a2423f99db *** empty log message *** 2008-04-13 02:41:27 -04:00
John Wiegley
7901598f1d Checked in all major updates. 2008-04-13 02:41:27 -04:00
John Wiegley
224273fa54 *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
5a8d1fc8ea *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
f4e4cd2db8 *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
f2a167e0ed *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
2df14a5b86 Transactions now track their beginning and ending position, as do
entries.  The new format strings %xB %xE %xb %xe can be used to
display those values relative to a transaction.  The Emacs module now
relies on this support to exactly determine where a transaction is,
rather than the Elisp logic it relied on previously.
2008-04-13 02:41:24 -04:00
John Wiegley
4aea9709bb Made several changes to the parsing infrastructure to allow passing
the "config_t" object around.  This is needed for parsing option
settings in the initialization file.
2008-04-13 02:41:23 -04:00
John Wiegley
6cee916e04 Added in.clear() before resetting I/Os streams. Again, thanks to the
list.
2008-04-13 02:41:22 -04:00
John Wiegley
a8012940f4 Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
c482e8a317 *** empty log message *** 2008-04-13 02:41:21 -04:00
John Wiegley
19fdcce1c6 *** empty log message *** 2008-04-13 02:41:19 -04:00
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