Commit graph

1522 commits

Author SHA1 Message Date
John Wiegley
08bc27ff0d Removed commodity_pool_t's use of boost::multi_index_container, and also its
used of the ident membe, which was only ever used by the binary cache code.
2009-02-07 18:41:45 -04:00
John Wiegley
f4c7f86e21 Removed unnused account_t::ident. 2009-02-07 18:41:06 -04:00
John Wiegley
336cd5ef35 Removed include path reference to libofx. 2009-02-07 18:40:33 -04:00
John Wiegley
767014cb9f Fixed a problem with -E wasn't displaying the final transaction. 2009-02-07 17:46:10 -04:00
John Wiegley
96e11c5937 Don't allow regexps to be evaluated in a boolean context. 2009-02-07 17:45:57 -04:00
John Wiegley
589eabd8e6 Threw away the "multiple parser" infrastructure. 2009-02-07 17:45:48 -04:00
John Wiegley
9380d73646 The "note" expressions returns an empty string if there is no note. 2009-02-07 05:53:40 -04:00
John Wiegley
df6b02b3ef Renamed escape to quoted, and fixed up the csv report. 2009-02-07 05:53:22 -04:00
John Wiegley
ea9330adae Allow value expressions to gain access to option settings.
For example, "ledger eval options.limit" prints 0 (for false), but:
"ledger -l hello eval options.limit" print "hello"s, since the value of
options.limit, once set to a value, is that string.  For flag options,
such as -Y, eval prints 0 if unset, and 1 if set.

This feature allows value expressions to be conditionalized based on the
presence of user options.
2009-02-07 05:47:21 -04:00
John Wiegley
66d007db9d Fixed the way that --limit, --only and --display are handled. 2009-02-07 04:55:51 -04:00
John Wiegley
71258f1fe9 Fixed a problem that was causing -l EXPR to trigger on assertion. 2009-02-07 04:55:42 -04:00
John Wiegley
011f35b730 Implemented expr_context. 2009-02-07 04:27:28 -04:00
John Wiegley
19694cf2a2 Use seekg, in place of multiple ungets. 2009-02-07 04:27:14 -04:00
John Wiegley
682544ef17 Refer to empty expression operators as simply NULL. 2009-02-07 04:27:04 -04:00
John Wiegley
eb98e0da8b More revision to the way options are handled; reworked CSV command. 2009-02-07 04:26:30 -04:00
John Wiegley
17c7037da9 Correction to debug output. 2009-02-07 00:08:08 -04:00
John Wiegley
47725095da Allow regular expressions to be "printed". 2009-02-07 00:04:43 -04:00
John Wiegley
72b04f69e5 Corrected parsing of ) in command arg predicate expressions. 2009-02-07 00:04:33 -04:00
John Wiegley
e5befb0102 Fixed the debug output of the pre-command "args". 2009-02-07 00:04:19 -04:00
John Wiegley
b4ae22b237 Removed an unnecessary variable setting in the Makefile. 2009-02-07 00:04:07 -04:00
John Wiegley
e8d2409430 Removed --reconcile and --reconcile-date. 2009-02-07 00:03:58 -04:00
John Wiegley
1b9e7fa7be When in the REPL, consider each new command a new "command-line". 2009-02-06 23:39:04 -04:00
John Wiegley
fdc8e401bf Don't push and pop reports unless at a REPL. 2009-02-06 23:38:51 -04:00
John Wiegley
234304e3a3 Added some stub options, for --help and friends. 2009-02-06 23:38:37 -04:00
John Wiegley
c1bf4bdf69 Moved the --abbrev-len option to report_t. 2009-02-06 23:38:12 -04:00
John Wiegley
aea84dd9c5 Added two comments, to remind myself to check something. 2009-02-06 23:37:25 -04:00
John Wiegley
cdcd52dbaf Removed the nearly unknown --descend and --descend-if options. 2009-02-06 23:36:32 -04:00
John Wiegley
909f7b1aa3 Fixed a command-line parsing bug with "account not account". 2009-02-06 23:19:24 -04:00
John Wiegley
03dcc07089 Fixed two improper uses of @example{} (should have been @code{}). 2009-02-06 22:39:21 -04:00
John Wiegley
8f883b463d Change "@begin enumerate" to "@enumerate". 2009-02-06 22:33:35 -04:00
John Wiegley
8c3369b8ab Fixed the use of --effective when an entry has no especial effective date. 2009-02-06 22:20:56 -04:00
John Wiegley
182d5df307 Extended Ledger's font-lock expression, based on code from Timothy Stotts. 2009-02-06 15:20:06 -04:00
John Wiegley
7c77a1af31 Added skeletons for new chapters to the Ledger documentation.
They still need finishing, and some of them may eventually replace some
existing chapters.
2009-02-06 14:32:29 -04:00
John Wiegley
68d5bc1f32 Added #if 0'd Python stub code from 2.x days. It needs to be ported. 2009-02-06 14:31:38 -04:00
John Wiegley
ff2f3d23d4 Added stubs for all the Python integration classes. 2009-02-06 14:26:51 -04:00
John Wiegley
0bd232bb23 Corrected a mispelled #define. 2009-02-06 14:12:10 -04:00
John Wiegley
54d5d8ada4 Removed the now unused pushvar.h file. 2009-02-06 13:45:26 -04:00
John Wiegley
cf6babcf90 Restored all the option handlers from 2.6.2, but not the options themselves. 2009-02-06 03:31:41 -04:00
John Wiegley
ecc5a1aab5 Whitespace fix. 2009-02-06 03:30:53 -04:00
John Wiegley
a085f8e9ad Only initialize the amount_t module if it hasn't been already. 2009-02-06 03:30:45 -04:00
John Wiegley
b4662911cc Added note about the dependency on graphviz for building docs. 2009-02-06 00:46:50 -04:00
John Wiegley
6aedbf4743 Removed use of sudo in the Makefile. 2009-02-06 00:46:41 -04:00
John Wiegley
d853a58f5f Moved --pager handler back into report_t. 2009-02-05 21:54:46 -04:00
John Wiegley
408b819c6e Greatly simplified the way option and command handlers are defined. 2009-02-05 21:20:09 -04:00
John Wiegley
7b24e8f8e3 Moved some files around. 2009-02-05 21:18:25 -04:00
John Wiegley
29814cfa7c Removed debugging code from the Makefile. 2009-02-05 04:36:26 -04:00
John Wiegley
edb9cff4a2 Moved work.cc and global_scope_t into a new global.cc file. 2009-02-05 04:20:49 -04:00
John Wiegley
87cfef221a Quiet down the python module build. 2009-02-05 04:20:31 -04:00
John Wiegley
0e2a3a9c00 Moved much of the main.cc code into a new global_scope_t class. 2009-02-05 04:06:58 -04:00
John Wiegley
37006741d6 Support using Ledger as a script interpretor.
The file must begin with '#!/usr/bin/env ledger --script'.  You can add a -f
option to the options, but it must come before --script.
2009-02-05 03:49:49 -04:00