Commit graph

924 commits

Author SHA1 Message Date
John Wiegley
8601a2a8bf Added back the --version option, and changed acprep so that it hacks on the
generated Makefile to greatly reduce unneeded verbosity.
2008-07-21 19:03:26 -04:00
John Wiegley
ac5cc7796f Merged in from master. 2008-07-21 17:34:39 -04:00
John Wiegley
b1370b654d More copyright date updates. 2008-07-21 06:29:40 -04:00
John Wiegley
0c800d968c A patch from Juergen Daubert, which fixes the output from --version. 2008-07-21 06:22:03 -04:00
John Wiegley
0a1bce0f80 Re-enabled almost all of the code in main.cc. 2008-07-20 23:28:29 -04:00
John Wiegley
d86a91d45b The new XPath parser has been integrated, although I have removed the
XML-related bits -- I just wanted the better infrastructure that had been
created during the rewrite.  It doesn't work, but it compiles and links now.
This means that all of the previous 3.0 code has been moved over, although
there are still snippets of code in pending/old that need to be restored.
2008-07-20 23:12:04 -04:00
John Wiegley
689df61077 Changed the target directory within ~/Products. 2008-07-20 21:17:49 -04:00
John Wiegley
219cc71bb0 Things are at least compiling and linking again, but we're still far from
having a functional binary.
2008-07-20 21:17:26 -04:00
John Wiegley
025c9acda9 When using the "entry" command with an unknown payee, get the draw account
correct if one is specified.  Fixes #203.
2008-07-20 20:31:53 -04:00
John Wiegley
00a47a38f6 Corrected the copyright date in ledger.el. 2008-07-20 20:31:20 -04:00
John Wiegley
b85e9ba95f Everything but main.cc is compiling again (but with much #if 0'd code). 2008-07-20 06:00:06 -04:00
John Wiegley
20e35aa6f5 I have walked further along the road less compiled by... 2008-07-20 05:32:09 -04:00
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
59f6ffb863 Added a tracing statement. 2008-07-19 23:28:54 -04:00
John Wiegley
88634973a2 Some basic fixes to get things almost running, although we still can't parse
my personal ledger file yet.
2008-07-19 23:10:37 -04:00
John Wiegley
d568319495 Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
John Wiegley
8e49f5242f Erroneously compared a character position to NUL, rather than setting it. 2008-07-19 21:31:36 -04:00
John Wiegley
150abce0db Commented out code that's not being used yet. 2008-07-19 21:02:58 -04:00
John Wiegley
931e5aa12d Don't remove pre-existing build directories when running acprep 2008-07-19 21:00:46 -04:00
John Wiegley
911b866230 When converting datetime_t to a long, I now need to directly access the 'when'
member, otherwise C++ chooses the bool conversion, which is always wrong.
2008-07-19 16:52:16 -04:00
John Wiegley
2aeee0bb64 Merged over changes from the newer ledger.el that was in my FTP directory.
C-c C-c will no longer destroy information if the amount is too close to the
account name.

C-c C-e will clear a whole entry; TAB and C-TAB now perform completion; the
reporting infrastructure has been improved (thanks to a contributor); and
other small improvements.
2008-07-18 02:28:43 -04:00
John Wiegley
899f79d032 Reconciling using ledger.el is now line-based, instead of character based, due
to problems with UTF-8 characters.
2008-07-17 23:42:19 -04:00
John Wiegley
0f7776f7af Updated the version number to 2.6.1. 2008-07-17 23:28:05 -04:00
John Wiegley
41e8d1871e Changes to allow DATETIME values to be negated, for the purposes of reverse
sorting.
2008-07-17 22:23:14 -04:00
John Wiegley
3d1ab0e4e7 Changed the default value of ledger-binary-path to just "ledger", since
there's no need to require an absolute pathname.
2008-07-17 22:09:26 -04:00
John Wiegley
a7377e4581 The "entry" command now correctly allows for a "draw account". 2008-07-17 22:04:41 -04:00
John Wiegley
76b58dc413 Corrected a mis-type in the NEWS file. 2008-07-17 21:40:45 -04:00
John Wiegley
56cfd84576 Disabled an error check that has no real value in 2.6. 2008-07-17 21:37:19 -04:00
John Wiegley
b2258cedd1 slanack: The problem was that <split:quantity> received the `transaction
commodity' instead of the correct `account commodity'.  There should really be
a check if the account commodity has been defined.
2008-07-17 21:26:41 -04:00
John Wiegley
30fb235841 Added helper methods for comparing a balance to a balance_pair. 2008-07-17 21:22:24 -04:00
John Wiegley
6cb519231f If AMOUNT_PARSE_NO_MIGRATE is set, do not set a commodity's precision even if
this is the first time a commodity is being seen.  The reason is that it's
quite possible (especially in bug reports) for the cost of a priced
transaction to contain the first occurrence of a commodity.
2008-07-17 20:55:15 -04:00
John Wiegley
c673b96691 Round unbalanced remainders before reporting them, because that will make a
whole lot more sense to the user, rather than reporting the internal
precision.
2008-07-17 20:55:15 -04:00
John Wiegley
595452e332 Protect against a case where xact->entry may legitimately be NULL. 2008-07-17 20:55:15 -04:00
John Wiegley
5f472969cd Moved an auto_ptr up into main, since the memory it governs must still be
available to the exception handlers that come immediately after it.
2008-07-17 20:55:15 -04:00
John Wiegley
d0669f8402 Removed implicit conversions from ledger::date_t to std::time_t, since this
operator was never been chosen over operator bool (and hence, all times
appeared as either 0 or 1).
2008-07-17 20:55:11 -04:00
John Wiegley
ed0deb95c2 Strip \r from all lines read. 2008-07-17 18:31:36 -04:00
John Wiegley
a210e8ba56 Fixed several issues with clocking out in a timelog, which was leading to an
invalid memory access.
2008-07-17 18:08:22 -04:00
John Wiegley
78813fc616 Rather than just aborting, report an intelligent error if the comma operator
is missing one of its operands in a value expression.  This kind of reporting
still needs to be done for all the other operators as well.
2008-07-17 17:49:08 -04:00
John Wiegley
6815aac361 Removed unnecessary assert. 2008-07-17 17:44:26 -04:00
John Wiegley
a2e16273f6 Check whether this_bal actually finds a matching commodity value, otherwise
it's a divide by zero.
2008-07-17 17:37:03 -04:00
John Wiegley
95f323f137 Added several more date/time fixes from Nathan Jones. Fixes #49. 2008-07-17 06:19:40 -04:00
John Wiegley
f482d120fd Correct several glaring issues with interval_t and the date parser, which has
all but entirely ruined Ledger's date handling capabilities.
2008-07-17 06:12:32 -04:00
John Wiegley
0f83b9f0c3 Moved the sequencing of a call to node.reset, since the intervening expression
can throw an exception which would leave us with an unexpected NULL pointer.
2008-07-17 06:12:04 -04:00
John Wiegley
45f6aa3f93 Reverted changes to option.cc in commit 2bdafd71, since I do not want to
change the exclusive (as opposed to inclusive) behavior of -e DATE.
2008-07-17 05:02:36 -04:00
John Wiegley
4eaad4f332 Removed incorrect statement about there being no Emacs mode for Ledger. Fixes
#10.
2008-07-16 03:59:49 -04:00
John Wiegley
f3b182ca80 Patch from Nathan Jones so that trailing whitespace after account names in a
transaction with no amount is not parsed as a special name.  Fixes #3.
2008-07-16 03:54:50 -04:00
John Wiegley
0e54ef9c08 Added COPYING and TAGS to the ignore list. 2008-07-13 22:50:33 -04:00
John Wiegley
7ddb1415b6 Added #include lines for building on Debian lenny. 2008-07-13 22:50:21 -04:00
Nathan Jones
885355f367 Fix compile errors with gcc 4.3 2008-05-23 01:29:12 -06:00
Nathan Jones
780135281d Fix compile errors with gcc 4.3 2008-05-20 17:13:34 -06:00