summaryrefslogtreecommitdiff
path: root/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
* (parse_conversion): When defining a commodity conversion, always markJohn Wiegley2008-04-131-1/+2
| | | | | the larger unit as having no market value (the market price is determined by looking up the base commodity and then multiplying).
* (value): Use `std::map<>::lower_bound' to search for the nearest priceJohn Wiegley2008-04-131-6/+11
| | | | | item in a commodity's history list. This is much more efficient than doing a reverse linear search.
* *** empty log message ***John Wiegley2008-04-131-4/+4
|
* (parse): A fix to the way commodity flags are applied to newly parsedJohn Wiegley2008-04-131-7/+26
| | | | | commodities. This was needing for an edge-case involving commodities that first appears as part of the cost (@ SPEC) of a transaction.
* Changes to support building with gcc 2.95.John Wiegley2008-04-131-0/+11
|
* (AMOUNT_CMP_AMOUNT): Fixed a very serious error in basic amount math,John Wiegley2008-04-131-1/+1
| | | | when lhs is zero.
* Added preliminary support for OFX, using libofx. Needs muchJohn Wiegley2008-04-131-3/+3
| | | | real-world testing.
* (operator/): Added a more complete divide-by-zero check.John Wiegley2008-04-131-1/+1
|
* Added commodity_t::default_commodity. Initialize the same.John Wiegley2008-04-131-2/+4
|
* *** empty log message ***John Wiegley2008-04-131-12/+10
|
* updated to 2.02John Wiegley2008-04-131-0/+3
|
* updated to version 2.0John Wiegley2008-04-131-412/+1117
|
* changesJohn Wiegley2008-04-131-915/+417
|
* fixed several segfaults (using new option-scrambler test harness)John Wiegley2004-09-271-2/+4
|
* made several of the buffers used non-staticJohn Wiegley2004-09-261-6/+5
|
* fixed printing of amounts that have a null commodity (was always precision 0)John Wiegley2004-09-241-4/+14
|
* improved error checking in parser, in case parts of an amount are missingJohn Wiegley2004-09-241-8/+12
|
* fixed a rather obscure memory bug, which also simplified some codeJohn Wiegley2004-09-241-29/+8
|
* fixed several issues in value_t's coreJohn Wiegley2004-09-211-46/+3
|
* improvements to python exposure of commodity_tJohn Wiegley2004-09-111-5/+25
|
* change commodity->symbol to const, and added set_symbolJohn Wiegley2004-09-101-4/+2
|
* the amount/balance/value logic is now a library, completely separate from ledgerJohn Wiegley2004-08-291-82/+121
|
* redid the way amount_t::commodity is handled; no more direct accessJohn Wiegley2004-08-291-102/+65
|
* a bit of a reorg; still much more to goJohn Wiegley2004-08-291-1/+1
|
* ledger.so (the python module) now builds based on autoconf discoveryJohn Wiegley2004-08-281-3/+3
|
* added (disabled) code for Boost.PythonJohn Wiegley2004-08-271-2/+113
|
* read all binary data in at one go; gains 33%John Wiegley2004-08-261-2/+34
|
* don't placement new() amount_t in binary.cc when it isn't necessaryJohn Wiegley2004-08-261-6/+4
|
* added usual operatorJohn Wiegley2004-08-251-5/+6
|
* fixed two memory corruption bugsJohn Wiegley2004-08-251-31/+57
|
* added asserts to, and proof-read, amount.ccJohn Wiegley2004-08-251-210/+188
|
* Bulk alloc bigints in the binary reader; this gains another 20%John Wiegley2004-08-251-13/+24
|
* cleanup; fully switched to autoconf -- use scripts/acprepJohn Wiegley2004-08-241-36/+54
|
* a little cleanup; reversed the meaning of -z and -p (to be more mnemonic)John Wiegley2004-08-231-11/+8
|
* Removed dependency on libgmpxx.aJohn Wiegley2004-08-231-17/+7
|
* simplified some codeJohn Wiegley2004-08-221-6/+4
|
* a little more reorganizing, but only fractionally faster. diminishing returns!John Wiegley2004-08-221-5/+8
|
* use value_t instead of balance_pair_t; gains for 10% binary, 2% textualJohn Wiegley2004-08-211-35/+8
|
* fixes so that ledger will build optimizedJohn Wiegley2004-08-211-0/+1
|
* only compute the cost when it differs from the amountJohn Wiegley2004-08-211-3/+3
|
* tracked down a tricky memory leak in value.hJohn Wiegley2004-08-211-50/+68
|
* more cleanupJohn Wiegley2004-08-211-125/+126
|
* moved some debug code aroundJohn Wiegley2004-08-211-16/+19
|
* fixes to how commodities are looked up using quotes.ccJohn Wiegley2004-08-211-1/+2
|
* add copy-on-write semantics to amount.cc; cuts object creation by 5xJohn Wiegley2004-08-211-96/+192
|
* support arbitrary precision after the decimal point; increase speed 0-10%John Wiegley2004-08-211-216/+198
|
* fixes to quote downloadingJohn Wiegley2004-08-191-3/+3
|
* fix to textual parsing, and a bit of reconstruction in main.ccJohn Wiegley2004-08-191-19/+57
|
* speed improvements; my "bal" script is cut to a thirdJohn Wiegley2004-08-171-17/+75
|
* fixesJohn Wiegley2004-08-171-11/+1
|