summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | The entry command no longer inherits item stateJohn Wiegley2009-02-221-17/+1
| | | | | |
* | | | | | Fixed bug: -- was not stopping option processingJohn Wiegley2009-02-221-3/+5
| | | | | |
* | | | | | Updated manpage about the new --exchange changesJohn Wiegley2009-02-221-5/+4
| | | | | |
* | | | | | README updateJohn Wiegley2009-02-221-2/+2
| | | | | |
* | | | | | included gettextJohn Wiegley2009-02-221-3/+3
| | | | | |
* | | | | | Accept #ARG or "code ARG" as a report query termJohn Wiegley2009-02-221-0/+8
| | | | | |
* | | | | | --exchange option now accepts multiple commoditiesJohn Wiegley2009-02-228-91/+43
| | | | | | | | | | | | | | | | | | | | | | | | They must be separated by a comma, and all whitespace is ignored.
* | | | | | By default, build Ledger with the included gettextJohn Wiegley2009-02-221-1/+1
| | | | | |
* | | | | | Renamed acconf.h to config.h, for included gettextJohn Wiegley2009-02-224-4/+5
| | | | | |
* | | | | | Correctly accept "false" as a keywordJohn Wiegley2009-02-221-2/+2
| | | | | |
* | | | | | Added --exchange (-x) optionJohn Wiegley2009-02-2215-76/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* | | | | | Fixed the way values are justified for printingJohn Wiegley2009-02-226-42/+54
| | | | | |
* | | | | | Allow balances to be rounded and unroundedJohn Wiegley2009-02-221-0/+4
| | | | | |
* | | | | | Changed --colors to --color, to match GitJohn Wiegley2009-02-223-16/+16
| | | | | |
* | | | | | Added more option baseline testsJohn Wiegley2009-02-223-1/+308
| | | | | |
* | | | | | Restored the --invert optionJohn Wiegley2009-02-225-36/+15
| | | | | |
* | | | | | Fix for systems that don't build with gettextJohn Wiegley2009-02-222-1/+2
| | | | | |
* | | | | | Removed unused --totals optionJohn Wiegley2009-02-223-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | This option was for outputting <total> elements in 2.x's XML output.
* | | | | | Added more option baseline testsJohn Wiegley2009-02-213-0/+56
| | | | | |
* | | | | | Added a new --colors option, for terminal funJohn Wiegley2009-02-213-21/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following colors are applied in the balance and register reports: GREEN To a date, if it occurs in the future BOLD If a payee name relates to an uncleared entry BLUE For account names RED For negative values
* | | | | | Allow balance values to be compared < or > 0John Wiegley2009-02-211-0/+42
| | | | | |
* | | | | | Fixed a bug with interactive_t's arg validationJohn Wiegley2009-02-211-1/+1
| | | | | |
* | | | | | Fixed an accumulator bug that was mangling errorsJohn Wiegley2009-02-211-1/+5
| | | | | |
* | | | | | Removed a bash-ism from acprepJohn Wiegley2009-02-211-1/+1
| | | | | |
* | | | | | And more README updatesJohn Wiegley2009-02-212-20/+8
| | | | | |
* | | | | | More README updatesJohn Wiegley2009-02-211-16/+20
| | | | | |
* | | | | | Updated dependencies in the READMEJohn Wiegley2009-02-211-10/+18
| | | | | |
* | | | | | Added excludes necessary for tools/pre-commitJohn Wiegley2009-02-212-1/+4
| | | | | |
* | | | | | Added variant baseline tests relating to --emptyJohn Wiegley2009-02-215-8/+426
| | | | | |
* | | | | | Added support for using GNU gettextJohn Wiegley2009-02-217-5/+307
| | | | | |
* | | | | | Use a "format accumulator" for error stringsJohn Wiegley2009-02-215-4/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to internationalize strings while still using I/O streams. For example: std::cout << ACCUM(_("Hello to %1 and %2!") << "me" << "you") << std::endl;
* | | | | | Added a new --raw option, for use with printJohn Wiegley2009-02-216-32/+67
| | | | | |
* | | | | | Removed an unused class: format_entriesJohn Wiegley2009-02-214-60/+4
| | | | | |
* | | | | | Fixes to tools/myacprepJohn Wiegley2009-02-211-2/+4
| | | | | |
* | | | | | Use more general scrub valexpr function in formatsJohn Wiegley2009-02-212-42/+46
| | | | | |
* | | | | | Bury the report buffer after quitting.Jesse Alama2009-02-211-2/+3
| | | | | |
* | | | | | Create a new interactive_t helper classJohn Wiegley2009-02-2111-152/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this class is much like Emacs' (interactive) form: it allows a value expression function to declare exactly how many arguments, and of what type, it intends to receive. It then offers type-safe access to theese arguments in a consistent manner. An example value expression function definition in C++: value_t fn_foo(call_scope_t& scope) { // We expect a string, an integer, and an optional date interactive_t args(scope, "sl&d"); std::cout << "String = " << args.get<string>(0) << "Integer = " << args.get<long>(1) << std::endl; if (args.has(2)) // was a date provided? std::cout << "Date = " << args.get<date_t>(2) << std::endl; return NULL_VALUE; } There is also an in_context_t<T> template, which finds the context type T in the current scope hierarchy. The in_context_t then also acts as a smart pointer to reference this context object, in addition to serving the same duty as interactive_t. This combination of intent is solely for the sake of brevity. value_t fn_bar(call_scope_t& scope) { in_context_t<account_t> env(scope, "sl&d"); std::cout << "Account name = " << env->fullname() << "String arg = " << env.get<string>(0) << std::endl; return NULL_VALUE; } As you can see here, 'env' acts as a smart pointer to the required context, and an object to extract the typed arguments.
* | | | | | Added all current value expressions to man pageJohn Wiegley2009-02-211-42/+94
| | | | | |
* | | | | | Fixed a script typoJohn Wiegley2009-02-211-1/+1
| | | | | |
* | | | | | acprep --gprof now passes -g -pg to the linkerJohn Wiegley2009-02-211-0/+1
| | | | | |
* | | | | | Tools changes to build for multiple targetsJohn Wiegley2009-02-214-13/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easier for me to build a version of ledger with optimizations, one for coverage analysis, one for profiling, etc.
* | | | | | Improved the pre-commit hookJohn Wiegley2009-02-211-7/+5
| | | | | |
* | | | | | The --help (-h, -H) options now visit the man pageJohn Wiegley2009-02-217-273/+36
| | | | | |
* | | | | | Added an automake rule for installing the man pageJohn Wiegley2009-02-211-2/+3
| | | | | |
* | | | | | Made --leeway a synonym for --price-expJohn Wiegley2009-02-211-0/+1
| | | | | |
* | | | | | Began creation of an Nroff-formatted man pageJohn Wiegley2009-02-211-0/+267
| | | | | |
* | | | | | Run regression and baseline tests using --verifyJohn Wiegley2009-02-211-4/+5
| | | | | |
* | | | | | Fixed another memory bug in by_payee_xactsJohn Wiegley2009-02-213-20/+21
| | | | | |
* | | | | | Fixed a memory leak in value_t::storage_tJohn Wiegley2009-02-212-14/+18
| | | | | |
* | | | | | Added several more baseline testsJohn Wiegley2009-02-2110-0/+1766
| | | | | |