Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixes to tools/myacprep | John Wiegley | 2009-02-21 | 1 | -2/+4 |
| | |||||
* | Use more general scrub valexpr function in formats | John Wiegley | 2009-02-21 | 2 | -42/+46 |
| | |||||
* | Bury the report buffer after quitting. | Jesse Alama | 2009-02-21 | 1 | -2/+3 |
| | |||||
* | Create a new interactive_t helper class | John Wiegley | 2009-02-21 | 11 | -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 page | John Wiegley | 2009-02-21 | 1 | -42/+94 |
| | |||||
* | Fixed a script typo | John Wiegley | 2009-02-21 | 1 | -1/+1 |
| | |||||
* | acprep --gprof now passes -g -pg to the linker | John Wiegley | 2009-02-21 | 1 | -0/+1 |
| | |||||
* | Tools changes to build for multiple targets | John Wiegley | 2009-02-21 | 4 | -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 hook | John Wiegley | 2009-02-21 | 1 | -7/+5 |
| | |||||
* | The --help (-h, -H) options now visit the man page | John Wiegley | 2009-02-21 | 7 | -273/+36 |
| | |||||
* | Added an automake rule for installing the man page | John Wiegley | 2009-02-21 | 1 | -2/+3 |
| | |||||
* | Made --leeway a synonym for --price-exp | John Wiegley | 2009-02-21 | 1 | -0/+1 |
| | |||||
* | Began creation of an Nroff-formatted man page | John Wiegley | 2009-02-21 | 1 | -0/+267 |
| | |||||
* | Run regression and baseline tests using --verify | John Wiegley | 2009-02-21 | 1 | -4/+5 |
| | |||||
* | Fixed another memory bug in by_payee_xacts | John Wiegley | 2009-02-21 | 3 | -20/+21 |
| | |||||
* | Fixed a memory leak in value_t::storage_t | John Wiegley | 2009-02-21 | 2 | -14/+18 |
| | |||||
* | Added several more baseline tests | John Wiegley | 2009-02-21 | 10 | -0/+1766 |
| | |||||
* | Fixed the spelling of some option exceptions | John Wiegley | 2009-02-21 | 1 | -4/+4 |
| | |||||
* | Added --start-of-week option, used with --weekly | John Wiegley | 2009-02-21 | 4 | -0/+228 |
| | | | | | For example, --start-of-week=monday can be used to report weeks that begin on Mondays. | ||||
* | Handle reporting widths that are too small | John Wiegley | 2009-02-21 | 2 | -2/+3 |
| | |||||
* | Added a new --exact option | John Wiegley | 2009-02-21 | 6 | -35/+282 |
| | | | | | | | | | The purpose of this option is that usually when you do a --monthly periodic report, you see dates ranges from the first day of each month, to the last day. With --exact, the first day of each range will be the date of the first transaction found in that range, and likewise with the end of the range. Essentially it "contracts" the reported period dates to reflect the exact begin and end dates. | ||||
* | Greatly improved the way "weeks" are iterated | John Wiegley | 2009-02-21 | 4 | -34/+61 |
| | |||||
* | Restored the --deviation option | John Wiegley | 2009-02-21 | 2 | -1/+247 |
| | |||||
* | Justify integers correctly when printing | John Wiegley | 2009-02-21 | 1 | -6/+8 |
| | |||||
* | Don't allow '-' as part of an identifier token | John Wiegley | 2009-02-21 | 1 | -1/+1 |
| | |||||
* | Restored --forecast, now also --forecast-while | John Wiegley | 2009-02-21 | 7 | -13/+318 |
| | |||||
* | Restored the --base option | John Wiegley | 2009-02-20 | 5 | -5/+439 |
| | |||||
* | Restored the --budget option | John Wiegley | 2009-02-20 | 9 | -24/+296 |
| | |||||
* | Added more option baseline tests | John Wiegley | 2009-02-20 | 5 | -0/+332 |
| | |||||
* | Added more option baseline tests, enabled --dow | John Wiegley | 2009-02-20 | 9 | -1/+326 |
| | |||||
* | Enabled --current option | John Wiegley | 2009-02-20 | 4 | -1/+29 |
| | |||||
* | Added more option baseline tests | John Wiegley | 2009-02-20 | 6 | -3/+68 |
| | |||||
* | Strip amounts displayed in the csv report | John Wiegley | 2009-02-20 | 1 | -1/+1 |
| | |||||
* | Allow date and datetime values to be formatted into strings | John Wiegley | 2009-02-20 | 1 | -0/+19 |
| | |||||
* | Added several more option baseline tests | John Wiegley | 2009-02-20 | 24 | -21/+309 |
| | |||||
* | Added more option baseline tests | John Wiegley | 2009-02-20 | 3 | -0/+470 |
| | |||||
* | Removed unused --cache option | John Wiegley | 2009-02-20 | 2 | -3/+2 |
| | |||||
* | Restored the --basis option | John Wiegley | 2009-02-20 | 3 | -7/+44 |
| | |||||
* | Added test for --balance-format | John Wiegley | 2009-02-20 | 1 | -0/+10 |
| | |||||
* | Added --no-total option | John Wiegley | 2009-02-20 | 4 | -12/+12 |
| | | | | This simply omits the final total in the balance report, nothing more. | ||||
* | Added several new regression tests | John Wiegley | 2009-02-20 | 7 | -2/+113 |
| | |||||
* | Added several new baseline tests | John Wiegley | 2009-02-20 | 9 | -7/+318 |
| | |||||
* | Don't use auto-widths for widths explicitly given | John Wiegley | 2009-02-20 | 2 | -31/+60 |
| | |||||
* | Corrected a column-wise formatting issue | John Wiegley | 2009-02-20 | 1 | -2/+2 |
| | |||||
* | Updated the pre-commit hook | John Wiegley | 2009-02-20 | 1 | -6/+25 |
| | | | | | Now it regenerates the build environment if Makefile.am or configure.ac has changed. | ||||
* | Added feature baseline tests | John Wiegley | 2009-02-20 | 3 | -4/+26 |
| | | | | | | These are like regression tests to confirm the basic functionality of every Ledger feature. Also, made the release-distcheck target less sensitive. | ||||
* | When clocking out, call total_seconds() | John Wiegley | 2009-02-20 | 1 | -1/+1 |
| | |||||
* | Rewrote the equity command, which is working again | John Wiegley | 2009-02-20 | 8 | -140/+110 |
| | | | | | | The old implementation used an account formatter, and was very specialized. The new is done as a transaction filter, and works along with everything else, eliminating bugs special to the equity report. | ||||
* | Added a --strict session option | John Wiegley | 2009-02-19 | 7 | -14/+54 |
| | | | | | | | When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item. | ||||
* | Simplify account total values before comparison | John Wiegley | 2009-02-19 | 3 | -5/+16 |
| | | | | | | This way, if two account values are BALANCE types containing only a single AMOUNT, then it will do the sorting comparison of the amounts -- since otherwise balances are ignored for the purposes of sorting. |