John Wiegley
71d0033b6f
Corrected several compile and link problems
2012-03-06 23:04:27 -06:00
John Wiegley
02ffa7a515
Changed the category of a few DEBUG statements
2012-03-06 02:00:36 -06:00
John Wiegley
b6adc8f460
Use unique_ptr instead of std::auto_ptr
2012-03-05 17:46:42 -06:00
John Wiegley
8d6bf11334
All tests are working again but one
2012-03-05 05:03:52 -06:00
John Wiegley
e2afc783db
Increased file copyrights to 2012
2012-02-29 22:32:23 -06:00
John Wiegley
c3a9a7d2c5
Fixed many Clang type conversion warnings with static_cast
2012-02-17 15:17:52 -06:00
John Wiegley
f4e22cf7cb
Fixes for variable shadowing (5/28)
2012-02-17 15:06:02 -06:00
John Wiegley
24ae4bac7f
Fixes for variable shadowing (4/28)
2012-02-17 15:06:01 -06:00
John Wiegley
f9613fe1de
Fixes for variable shadowing (3/28)
2012-02-17 15:05:59 -06:00
John Wiegley
d493f79651
Use GMP_* macros instead of MPFR_*
2011-11-05 01:49:25 -05:00
John Wiegley
fc67484a21
amount_t::in_place_floor should round toward zero
2011-10-11 15:31:00 -05:00
John Wiegley
f0791bbd72
Cleanup whitespace
2011-08-18 14:48:38 -04:00
John Wiegley
add6f6ca2a
Removed unused variables
2011-08-18 14:46:36 -04:00
John Wiegley
2208ac1226
Fixes for compilation as C++0x code
2011-02-04 22:39:41 -05:00
John Wiegley
e162455ebb
Minor simplifications to valexpr parser
...
The most significant change is the way CONS sequences are parsed, and
that now instead of =/:=, the operators are ==/=.
2010-09-05 01:38:47 -04:00
John Wiegley
9ce498f890
Added debug print for commodity.prices.find
2010-06-20 17:10:50 -04:00
John Wiegley
627162acc0
Made amount_t::value a bit safer
2010-06-19 13:34:15 -04:00
John Wiegley
dea2aed0b5
Untabified all source files
2010-06-11 17:02:25 -04:00
John Wiegley
8637dd6ccf
New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES
...
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
2010-06-09 06:45:07 -04:00
John Wiegley
be6cef93c4
A further simplification of -V and -X
...
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.
2010-06-07 09:49:17 -04:00
John Wiegley
c85cf0d810
Fixed the way prices and costs are print'd
2010-06-07 08:32:14 -04:00
John Wiegley
a4d4f99794
amount_t::print and value_t::print now use flags
2010-06-07 08:32:13 -04:00
John Wiegley
b848ace768
Allow opt -NDEBUG build to complete without warnings
2010-06-04 06:02:00 -04:00
John Wiegley
f76b271d24
Removed a redundant check
2010-06-03 23:18:18 -04:00
John Wiegley
e8bf3da053
Short-circuit annotated commodity valuation
2010-06-03 17:59:43 -04:00
John Wiegley
0f1afdb3a7
Minor optimization of amount_t::operator*
2010-06-03 05:47:12 -04:00
John Wiegley
3324e3472d
Removed some debug code
2010-06-03 00:54:10 -04:00
John Wiegley
cbc0a125c0
Correct display of amounts with keep_precision
...
Fixes #167 / 1D275740-D1A6-42B7-BDE4-F2F85E30CE8E
2010-06-02 06:24:25 -04:00
John Wiegley
75363003bd
Throw an exception if mpfr_asprintf fails
2010-06-02 04:01:16 -04:00
John Wiegley
038c24357e
Changed --european option to --decimal-comma
...
Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
2010-06-01 17:56:41 -04:00
John Wiegley
04461f49fd
Optimized amount_t::in_place_truncate
2010-05-26 00:58:04 -06:00
John Wiegley
ab416f759f
Updated copyrights to 2003-2010
2010-03-05 22:14:10 -05:00
John Wiegley
4e30fcdf40
Many improvements to Ledger's Python bindings
2009-11-19 22:24:24 -05:00
John Wiegley
20c725df93
Made the amount_t::bigint_t refcount holder 32-bits
...
It was overflowing on a full register report of just 3M of data.
2009-11-14 06:25:27 -05:00
John Wiegley
afe87280e0
Added floored() and in_place_floor() methods
2009-11-11 03:39:53 -05:00
John Wiegley
acb69193d8
Added a few missing explicit instantiations
2009-11-10 20:57:08 -05:00
John Wiegley
687c71c71d
Improved the numerical parser for basic amounts
...
1,00,000 now causes an error, for example, whereas before the commas
were largely ignored.
2009-11-10 00:10:25 -05:00
John Wiegley
6cdb79e2a6
XML reporting now works via the "xml" command
2009-11-09 03:42:35 -05:00
John Wiegley
2c80227339
Added basic foundation for XML reporting
2009-11-09 02:17:26 -05:00
John Wiegley
523d4243e8
Made --european more pervasive in its effect
2009-11-08 18:30:35 -05:00
John Wiegley
690e46117e
Added Python interface for commodity_t
2009-11-02 21:55:53 -05:00
John Wiegley
3f8c126c79
Use is_annotated() method rather than "annotated"
2009-11-02 16:57:53 -05:00
John Wiegley
a757b19f51
Added serialization methods for most type
...
This allows journal_t objects to be completed serialized to disk and
deserialized.
2009-10-30 18:06:37 -04:00
John Wiegley
20a6d51cf1
Renamed bigint_t::refc, for consistency with value_t
2009-10-29 05:37:39 -04:00
John Wiegley
a3a40994d2
Added some whitespace for clarity
2009-10-28 01:58:41 -04:00
John Wiegley
588f2ef2f5
Fixed many compiler warnings from g++ 4.4
2009-10-25 05:01:39 -04:00
John Wiegley
2ef1934bb0
Restored --price option, added baseline test
...
This option reports only in terms of the annotated price of the
commodities involved, otherwise it reports the amounts themselves. It
can be used in conjunction with other reports, as it applies to the
displayed amounts, not the actual amounts being calculated.
2009-06-26 17:15:35 +01:00
John Wiegley
1fad2ec7c1
More refactoring for --download
2009-06-24 18:08:56 +01:00
John Wiegley
991e3a3eaf
Split commodity.h/cc into three files
...
commodity.h - code for commodity_t
annotate.h - commodity annotations
pool.h - commodity pool management
2009-06-24 16:43:46 +01:00
John Wiegley
f83a1c8873
Restored --unround, added baseline test
2009-06-21 18:37:39 +01:00