summaryrefslogtreecommitdiff
path: root/src/value.cc
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Change compare_by_commodity to return an integerJohn Wiegley2019-03-151-1/+1
|
* Drop conditionals for Boost earlier than 1.49Tim Landscheidt2019-01-171-5/+1
| | | | | | | Ledger requires Boost 1.49 or later and enforces this in CMakeLists.txt. This means BOOST_VERSION will always be 104900 or higher. Also, since Boost 1.46, BOOST_FILESYSTEM_VERSION is 3.
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Merge pull request #317 from tripun/code_coverageJohn Wiegley2015-08-041-0/+4
|\ | | | | Add some unit tests for value_t
| * add case for addition to voidtripun2014-08-181-0/+4
| |
* | Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-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}/"
* Attempt to convert balances to amounts before failing comparisonsJohn Wiegley2014-02-211-0/+12
|
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-10/+10
| | | | | | | | | | | | 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 2013John Wiegley2013-02-181-1/+1
|
* Fix bug 795 858, printing "(null)" instead of empty string ""Craig Earls2013-02-021-1/+1
|
* Bug 634 Added roundto function, optimized floor and ceilingCraig Earls2013-01-301-0/+21
| | | | Fixes Bug634 by adding roundto(amount, places).
* Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-251-0/+23
| | | | This is only a partial fix for 634, since rounding is not fixed.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-2/+2
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-23/+15
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-55/+55
|
* Corrected an error print in value.ccJohn Wiegley2012-03-191-5/+3
|
* Quieted several compiler warnings from ClangJohn Wiegley2012-03-111-1/+1
|
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-8/+8
|
* Allow balances to be passed to nail_downJohn Wiegley2012-03-111-1/+1
| | | | Fixes #679
* Allow conversion of negative values with int()John Wiegley2012-03-101-1/+1
|
* Improved the behavior of -XJohn Wiegley2012-03-091-13/+88
|
* Allow valuation of sequencesJohn Wiegley2012-03-091-4/+9
|
* Whitespace fixJohn Wiegley2012-03-081-2/+2
|
* Removed value_t::price and balance_t::priceJohn Wiegley2012-03-071-12/+0
|
* Fixes to value_t to Python conversionJohn Wiegley2012-03-011-0/+10
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Corrected behavior of >= and <=John Wiegley2012-02-281-2/+2
|
* Introduced a new SCOPE expression terminalJohn Wiegley2012-02-201-1/+1
|
* Removed unneeded default casesJohn Wiegley2012-02-171-19/+1
|
* Removed unneeded break statementsJohn Wiegley2012-02-171-6/+0
|
* Added a missing case clauseJohn Wiegley2012-02-171-0/+1
|
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* value_t::print uses an output buffer nowJohn Wiegley2011-07-171-1/+5
| | | | This is so that it plays nicely with straccstream.
* Correct argument order for several exceptionsJohn Wiegley2011-07-171-9/+9
|
* Balances and sequences can be compared to amountsJohn Wiegley2010-06-221-16/+4
|
* For value_t, use boost::any to refer to objectsJohn Wiegley2010-06-131-25/+20
|
* Moved value_t::label() to value.ccJohn Wiegley2010-06-131-0/+39
|
* Improved support for value_t::in_place* functionsJohn Wiegley2010-06-131-36/+26
|
* Untabified all source filesJohn Wiegley2010-06-111-180/+180
|
* Use ptr_deque for value_t::sequence_tJohn Wiegley2010-06-101-3/+3
| | | | | | | | | This is to work around undefined behavior according to the Standard, [lib.res.on.functions]/2: "In particular, the effects are undefined in the following cases: [..] - if an incomplete type (3.9) is used as a template argument when instantiating a template component."
* Errors involving value objects provide more contextJohn Wiegley2010-06-101-9/+40
|
* In value_t::print, pass along display flagsJohn Wiegley2010-06-091-1/+1
|
* A further simplification of -V and -XJohn Wiegley2010-06-071-5/+4
| | | | | | | | 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.
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-16/+14
|
* Value expression sequences are now comparableJohn Wiegley2010-06-051-0/+28
| | | | Fixes #228 / ED9388D7-E523-40EB-841B-9AE9BAA70329