Commit graph

176 commits

Author SHA1 Message Date
John Wiegley
9039e728b2 All system headers (except Boost) now included through system.hh;
also, added support for pre-compiled headers since I'm now using a
centralized resource for system headers.
2008-04-13 03:38:31 -04:00
John Wiegley
6853db57e6 All tests now working again. Reduced size of entity_t and
transaction_t considerably.
2008-04-13 03:38:30 -04:00
John Wiegley
c30f520900 Decreased memory usage considerably 2008-04-13 03:38:29 -04:00
John Wiegley
b84f676946 Did some optimization and memory cleanup 2008-04-13 03:38:28 -04:00
John Wiegley
539370ff1b More refactoring 2008-04-13 03:38:28 -04:00
John Wiegley
0a6b5726ec Made the amount/balance/value interface a bit more rational; added
back a useless version of the register command (just to prove the
 command sequence); and added smart XML semantics to the XPath
 implementation so that nodes can be coerced to values.
2008-04-13 03:38:28 -04:00
John Wiegley
c6d896f735 make distcheck now works. 2008-04-13 03:35:34 -04:00
John Wiegley
e65c62d5a4 Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
John Wiegley
42f43b7686 Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
John Wiegley
04dfda2282 Made separate modules for the csv command, since the prior method was
not fully correct.
2008-04-13 02:41:33 -04:00
John Wiegley
5a93d4819e Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
John Wiegley
c3c401ac0f *** empty log message *** 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
49ae3b65d5 *** empty log message *** 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
b737cd8e6d Added a DATETIME value type. 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
7d3e45958e *** empty log message *** 2008-04-13 02:41:28 -04:00
John Wiegley
7901598f1d Checked in all major updates. 2008-04-13 02:41:27 -04:00
John Wiegley
e75bb1f71f *** 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
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
a8012940f4 Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
2d7d6c6f15 Added support for outputting to CSV format. 2008-04-13 02:41:21 -04:00
John Wiegley
d021582d28 (parse_and_report): Set ledger::terminus in main.cc, instead of
relying on static initialization of valexpr.cc.
2008-04-13 02:41:21 -04:00
John Wiegley
f691735c6c Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build
process by default (for the sake of speed).
2008-04-13 02:41:21 -04:00
John Wiegley
348349f98c (parse_and_report): Added a check for HAVE_EXPAT in addition to
HAVE_XMLPARSE, which was causing the xml/gnucash parsers not to be
registered!
2008-04-13 02:41:19 -04:00
John Wiegley
b462a8bf50 *** empty log message *** 2008-04-13 02:41:18 -04:00
John Wiegley
69881ae385 (chain_xact_handlers): When budgeting and forecasting are being used,
never update the binary cache (and don't create one if none was
there).  This is because certain intermediary accounts get created
during generation of these reports, which should never be recorded in
the cache as actual accounts.  Also, run the account filter both
before and after the budgeting and forecasting filters, to ensure that
only the accounts the user is interested in get included in the
report.
2008-04-13 02:41:12 -04:00
John Wiegley
ecee0bc921 *** empty log message *** 2008-04-13 02:41:06 -04:00
John Wiegley
ba8981a3f6 Removed the --reconcilable option, since the pending flag is now being
used.
2008-04-13 02:41:05 -04:00
John Wiegley
25655cf91a (main): Do not sync I/O streams with stdio, since I do not use stdin,
stdout or stderr.
2008-04-13 02:41:04 -04:00
John Wiegley
cd339f9ddc (parse_and_report): If XML support was not compiled in, generate an
error when the "xml" command is used.
2008-04-13 02:41:04 -04:00
John Wiegley
48cb87b8bd formatting changes 2008-04-13 02:41:04 -04:00
John Wiegley
2d3e852d30 (chain_xact_handlers): Chain the reconcile_transactions handler the
same way as everything else.
2008-04-13 02:41:02 -04:00
John Wiegley
74456d89b5 (parse_and_report): Rearranged some code for efficiency's sake. 2008-04-13 02:41:01 -04:00
John Wiegley
d0997fa821 Changed truncate_entries so that --head and --tail can be used at the
same time.
2008-04-13 02:41:00 -04:00
John Wiegley
8fd5f4ee57 Added support for "--pager PROGRAM". A likely way to define it in
your login file would be: "export LEDGER_PAGER=$PAGER".
2008-04-13 02:41:00 -04:00
John Wiegley
962e17c1a9 (chain_xact_handlers): Added head or tail handlers, using the
transaction handler `truncate_entries'.
2008-04-13 02:41:00 -04:00
John Wiegley
4ed59bcf8c Fixed a Gnucash problem. 2008-04-13 02:40:58 -04:00
John Wiegley
88042027e7 *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
9618057215 Added an Emacs formatter, accessible with the new "emacs" command. 2008-04-13 02:40:56 -04:00
John Wiegley
4ca26fbd73 *** empty log message *** 2008-04-13 02:40:56 -04:00
John Wiegley
f3c736006c *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
193a801c03 Added preliminary support for OFX, using libofx. Needs much
real-world testing.
2008-04-13 02:40:55 -04:00
John Wiegley
d8f35f3152 (parse_and_report): Added new "reconcile" and "output" commands.
Likely not to be documented, as these are intended primarily for
future GUI development.
2008-04-13 02:40:54 -04:00
John Wiegley
2cc62a4f76 (parse_and_report): Removed "files" argument. 2008-04-13 02:40:53 -04:00