Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright year | Alexis Hildebrandt | 2023-02-02 | 1 | -1/+1 |
| | | | | [skip ci] | ||||
* | Update copyright statement for 2022 | Alexis Hildebrandt | 2022-07-02 | 1 | -1/+1 |
| | |||||
* | Remove some UTF-8 code that was having no effect | kanreki | 2022-04-14 | 1 | -38/+5 |
| | | | | Fixes #2061. | ||||
* | Use correct int return type for stream input operations | kanreki | 2021-12-08 | 1 | -15/+14 |
| | | | | | | | | This makes it safe to compare results to -1 to indicate EOF, regardless of whether char is considered signed or unsigned; and so eliminates compiler warnings on platforms such as ARM. Fixes bug #2058. | ||||
* | compare_by_commodity: Always return the result of the recursive call | Christoph Dittmann | 2021-01-30 | 1 | -6/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | Commit 501fbc08ae5493db77bb34f4c4fbe1f3a3bc14e3 changed the behavior of this function to not return the "equal" result (==0) from the recursive call. Previously, the function returned the result of the recursive call unconditionally. The current behavior causes an assertion error for certain postings. The regression test added in this commit shows such a posting. I found through Travis CI that the old behavior was incomplete and caused unstable orderings, so reverting to the old behavior doesn't work. Instead, this change adds a fallback: If the recursive call that compares the prices numerically returns "equal", then compare the prices with their original commodity as a tie breaker. This commit does not change any existing ordering, it only adds deterministic ordering in a case that currently triggers an assertion error. This fixes issue #1998. | ||||
* | Change compare_by_commodity to return an integer | John Wiegley | 2019-03-15 | 1 | -76/+101 |
| | |||||
* | Further improvements to commodity sorting | John Wiegley | 2019-03-15 | 1 | -4/+6 |
| | |||||
* | Add more debugging information to compare_by_commodity | John Wiegley | 2019-03-15 | 1 | -13/+41 |
| | |||||
* | Drop support for gcc 2 and earlier | Tim Landscheidt | 2019-01-25 | 1 | -2/+2 |
| | |||||
* | [misc] Update year in copyright notice to 2017 | Alexis Hildebrandt | 2018-01-27 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | [misc] Update year in copyright notice to 2017 | Alexis Hildebrandt | 2017-01-05 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | [misc] Update year in copyright notice to 2016 | Alexis Hildebrandt | 2016-01-02 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Bump copyright notice to 2015 | Alexis Hildebrandt | 2014-12-27 | 1 | -1/+1 |
| | | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/" | ||||
* | Bump copyright information to 2014 | Alexis Hildebrandt | 2014-02-02 | 1 | -1/+1 |
| | |||||
* | fix ledger xml output, remove ledger json command | Johann Klähn | 2013-03-08 | 1 | -4/+2 |
| | | | | | | | | | | | | As the format used by property trees to represent valid JSON and that for valid XML is too different and given that there are more requests for valid XML output I decided to pursue a quick fix and remove the json command in favor of a working xml command. See bug #782, #909, recent discussion on mailing list. JSON support is postponed until I or someone else finds time to work on this or the python bindings are more stable. | ||||
* | Bump copyright information to 2013 | John Wiegley | 2013-02-18 | 1 | -1/+1 |
| | |||||
* | Add --time-colon option | Alexis Hildebrandt | 2012-11-10 | 1 | -0/+1 |
| | | | | | | | | | The --time-colon option will display the value for a seconds based commodity as real hours and minutes. For example 8100 seconds by default will be displayed as 2.25 whereas with the --time-colon option they will be displayed as 2:15. | ||||
* | Converted the Ledger build system to use CMake | John Wiegley | 2012-05-20 | 1 | -1/+1 |
| | |||||
* | Switched to Boost.PropertyTree for XML generation | John Wiegley | 2012-05-18 | 1 | -19/+12 |
| | |||||
* | Never price commodities using annotated commodities | John Wiegley | 2012-03-30 | 1 | -9/+8 |
| | |||||
* | Improved some error messages | John Wiegley | 2012-03-29 | 1 | -1/+1 |
| | |||||
* | Fix problems with <Adjustment> postings | John Wiegley | 2012-03-20 | 1 | -0/+2 |
| | |||||
* | Extend commodity_t::compare_by_commodity::operator() | John Wiegley | 2012-03-19 | 1 | -0/+9 |
| | |||||
* | Don't map_prices if price commodity matches source | John Wiegley | 2012-03-15 | 1 | -2/+4 |
| | | | | Fixes #680 | ||||
* | Tighten up argument passing related to fn_market() | John Wiegley | 2012-03-11 | 1 | -40/+38 |
| | |||||
* | Use Boost.Tuple | John Wiegley | 2012-03-09 | 1 | -7/+7 |
| | |||||
* | Added nail_down() for pinning market value exprs | John Wiegley | 2012-03-08 | 1 | -0/+9 |
| | |||||
* | Corrected calculation of market valuation expressions | John Wiegley | 2012-03-08 | 1 | -6/+12 |
| | |||||
* | Added "value" sub-directive for commodity directive | John Wiegley | 2012-03-06 | 1 | -0/+26 |
| | |||||
* | Changed the category of a few DEBUG statements | John Wiegley | 2012-03-06 | 1 | -2/+4 |
| | |||||
* | All tests are working again but one | John Wiegley | 2012-03-05 | 1 | -13/+41 |
| | |||||
* | Implemented first cut at price conversion logic | John Wiegley | 2012-03-05 | 1 | -1/+3 |
| | |||||
* | Changes to get all the code to compile | John Wiegley | 2012-03-05 | 1 | -22/+32 |
| | |||||
* | Switched to using Boost.Graph for commodity pricing | John Wiegley | 2012-03-05 | 1 | -403/+39 |
| | |||||
* | Increased file copyrights to 2012 | John Wiegley | 2012-02-29 | 1 | -1/+1 |
| | |||||
* | Fixed many Clang type conversion warnings with static_cast | John Wiegley | 2012-02-17 | 1 | -2/+2 |
| | |||||
* | Fixes for variable shadowing (6/28) | John Wiegley | 2012-02-17 | 1 | -1/+1 |
| | |||||
* | Cleanup whitespace | John Wiegley | 2011-08-18 | 1 | -2/+2 |
| | |||||
* | Fixes for compilation as C++0x code | John Wiegley | 2011-02-04 | 1 | -1/+0 |
| | |||||
* | Based symbol_needs_quotes an invalid_chars (#386) | John Wiegley | 2010-07-29 | 1 | -32/+32 |
| | |||||
* | Don't elide quotes for all-digit commodities | John Wiegley | 2010-06-14 | 1 | -3/+7 |
| | |||||
* | Untabified all source files | John Wiegley | 2010-06-11 | 1 | -161/+161 |
| | |||||
* | New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES | John Wiegley | 2010-06-09 | 1 | -0/+11 |
| | | | | | | | | This is used by reports like register and balance so that separated commodities without spaces in them needed be surrounded by quotes. It will still occur in most other places. Fixes #200 / F82CF11F-BFD9-4512-A562-202B04B68051 | ||||
* | A further simplification of -V and -X | John Wiegley | 2010-06-07 | 1 | -6/+1 |
| | | | | | | | | With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity. | ||||
* | Corrected a verification test | John Wiegley | 2010-06-05 | 1 | -1/+3 |
| | |||||
* | commodity_t::find_price now uses memoization | John Wiegley | 2010-06-04 | 1 | -11/+100 |
| | | | | | This reduces the slowdown of using -V and -X from 36x in some cases down to around 4-5x (for a debug build). | ||||
* | any and all do not need to be reserved tokens | John Wiegley | 2010-06-04 | 1 | -3/+1 |
| | |||||
* | More debug code cleanup | John Wiegley | 2010-06-04 | 1 | -25/+25 |
| | |||||
* | Made the behavior of -V a bit more rational | John Wiegley | 2010-06-04 | 1 | -0/+4 |
| | | | | It now only values non-primary commodities in terms of primary ones. | ||||
* | Reorganized some debug code | John Wiegley | 2010-06-04 | 1 | -17/+20 |
| |