summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused macros HAVE_ACCESS and HAVE_REALPATHTim Landscheidt2019-01-122-8/+2
|
* Don't attempt to invert a value if it's already zero (#1703)John Wiegley2019-01-111-1/+3
|
* Merge remote-tracking branch 'origin/master' into nextJohn Wiegley2018-07-194-4/+11
|\
| * Ensure that parse errors produce useful RuntimeErrors for Python code.Manuel Amador (Rudd-O)2016-02-064-4/+11
| |
* | fix regression of test 1147_aPascal Fleury2018-07-171-17/+18
| |
* | amount_t -> balance_t.Pascal Fleury2018-07-171-13/+30
| |
* | Unbreak with boost 1.68Jan Beich2018-07-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | In file included from src/main.cc:34: In file included from src/global.h:41: In file included from src/option.h:45: In file included from src/scope.h:45: In file included from src/op.h:45: In file included from src/expr.h:45: In file included from src/exprbase.h:57: src/utils.h:47:10: fatal error: 'boost/uuid/sha1.hpp' file not found #include <boost/uuid/sha1.hpp> ^
* | Revert "Use an std::set instead of an std::list to store the the journal ↵John Wiegley2018-06-182-4/+4
| | | | | | | | | | | | | | | | file paths" This reverts commit 3364850cc7cf73fc67af1ea6cd9a65a32e336623. Fixes #559
* | Fix garbled dates when using --date-formatTommi Komulainen2018-06-131-1/+3
| | | | | | | | | | | | | | | | Capture the `std::string` value from options in a local variable that lives as long as the `c_str()` taken from it to ensure it does not get freed prematurely. Fixes: #546
* | Remove TOK_A_YEAR tokenChristoph Dittmann2018-06-101-23/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes #1626. The tokenizer eagerly classifies 4-digit integers as TOK_A_YEAR tokens. In some contexts such as "every 1000 years", this causes errors. I think the tokenizer does not have enough information available to distinguish between integers and years. After this patch, the tokenizer will always classify integers as TOK_INT tokens. The "has 4 digits" heuristic to determine if an integer is a year is moved to the place where it's actually needed (and it can be slightly more generic there, too).
* | Make automated transactions work with assertionsChristoph Dittmann2018-06-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes issue #1127. In my understanding, PR #552 was meant to fix this, but was incomplete. Without this patch, automated transactions are invisible to assertions. This patch fixes this by adding a flag to the account to tell it that there is a new posting, analogous to the behavior of finalize(). I dug up issue #1127 too late to find that this is the same solution proposed by @tbm. Although I wrote this independently, credit goes to Martin Michlmayr (@tbm).
* | budget_posts: Keep pending items until the last day they applysmr8942018-04-041-8/+17
| |
* | Fix auto xact posts not getting applied to account total durring journal parseDJ Edmonson2018-03-231-3/+6
| |
* | Add (currently undocumented) function 'clear_commodity'John Wiegley2018-02-162-0/+10
| |
* | Merge pull request #519 from mbudde/accounts-prepend-formatJohn Wiegley2018-01-271-0/+15
|\ \ | | | | | | Add support for --prepend-format in accounts command
| * | Add support for --prepend-format in accounts commandMichael Budde2018-01-251-0/+15
| | | | | | | | | | | | | | | Add support for the `--prepend-format` and `--prepend-width` options in the `accounts` command.
* | | Merge pull request #521 from mbudde/fix-trimAlexis Hildebrandt2018-01-271-7/+4
|\ \ \ | | | | | | | | Fix handling of edge cases in trim function
| * | | Fix handling of edge cases in trim functionMichael Budde2018-01-251-7/+4
| |/ / | | | | | | | | | Fixes #520
* / / [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-27126-127/+127
|/ / | | | | | | [ci skip]
* | journal: Expose register_account to PythonKyle Fuller2018-01-231-0/+9
| |
* | Transfer null_post flags to generated postingsAaron Lindsay2018-01-091-1/+1
| | | | | | Resolve issue where generated balanced postings would become real when the original null post was virtual.
* | Fix segfault when using --market with --group-byMichael Budde2018-01-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | `changed_value_posts::create_accounts()` reuses the `<Revalued>` account from `display_filter`, but when clearing `changed_value_posts` `create_accounts()` would be called before the account had been recreated by `display_filter_posts`. This results in a segfault when using the --group-by option. I'm not sure if `display_filter_posts` has the same problem but I reordered the calls there too for good measure.
* | Use amount_width variable for budget reportPaulo Flabiano Smorigo2018-01-031-5/+5
| | | | | | | | | | Instead of using a "magic" value (12), use the proper variable to set the width.
* | The "format" directive for commodities now disables "style observation"John Wiegley2018-01-013-1/+5
| |
* | Initialize field in constructorMichael Budde2018-01-011-2/+5
| | | | | | | | | | Should fix problem with garbage being read from this field causing some test failures on my machine.
* | Be a bit more defensive when calculating the budgetJohn Wiegley2017-12-301-2/+2
| |
* | don't add paths to files, if there is already a path that points to the same ↵Johannes Loher2017-12-291-1/+11
| | | | | | | | file
* | Use an std::set instead of an std::list to store the the journal file pathsJohannes Loher2017-12-292-4/+4
| |
* | Expose journal expand_aliases to PythonKyle Fuller2017-12-241-0/+4
| |
* | account to return the depth of its last displayed parentJakob Demler2017-11-021-0/+16
| |
* | Strip annotation before adding exchange valueIsmaël Bouya2017-10-301-0/+3
| |
* | Merge pull request #494 from jjlee/fix-totalJohn Wiegley2017-10-261-0/+13
|\ \ | | | | | | Fix bug where .total used in value exprs breaks totals
| * | Fix bug where .total used in value exprs breaks totalsJohn Lee2017-10-261-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Re-initialize (to VOID) totals for the account and its ancestors on adding postings. Otherwise the cache intended for use by recursive calls of C++ function total() in computing family (i.e. account hierarchy) totals is incorrectly retained from one top-level call to the next, causing inconsistent and broken behaviour. * Re-initialize (to false) calculated and gathered. Otherwise we won't e.g. recalculate stale totals for ancestor accounts (e.g. won't recalculate Assets:Savings total if Assets:Savings changes via a posting). Although the value expression total function is used by ledger itself in computing totals, this bug would only appear on use of .total in user-supplied value expressions computed *during parsing* of ledger files, rather than after parsing (I believe ledger only ever calls it for internal purposes after parsing is complete). It is possible this bug also affected other functions than total (perhaps even in circumstances other than analagous to that described in the preceding paragraph). I have not checked that.
* | | Merge pull request #484 from mk12/bug-1182-ptrJohn Wiegley2017-10-261-0/+3
|\ \ \ | | | | | | | | Fix Bug 1182: Error message for parse failure after '='
| * | | Print error message if parsing predicate after '='Mitchell Kember2016-12-201-0/+3
| | | |
* | | | Merge pull request #482 from AndrewSav/nextJohn Wiegley2017-10-261-0/+2
|\ \ \ \ | | | | | | | | | | Fix MSVC build
| * | | | Fix MSVC buildAndrew Savinykh2016-11-171-0/+2
| |/ / /
* | | | Merge pull request #490 from sunny256/fix-braces-warningJohn Wiegley2017-10-261-12/+13
|\ \ \ \ | | | | | | | | | | Remove compiler warning about missing braces
| * | | | Remove compiler warning about missing bracesØyvind A. Holm2017-04-171-12/+13
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the following warning from gcc 5.4.0: "[...]/src/output.cc:335:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]". Instead of adding braces around the whole function body, return early if item.metadata is 0.
* / | | src/global.cc: do not parse user-specified init-file twiceIvy Foster2017-10-261-3/+1
|/ / /
* | | [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-05126-127/+127
| | | | | | | | | | | | [ci skip]
* | | Item sorting should have access to the report scopeJohn Wiegley2017-01-049-37/+69
|/ /
* | Further simplifications src/CMakeLists.txtJohn Wiegley2016-11-131-5/+3
| |
* | Disable #pragma messages from ClangJohn Wiegley2016-11-131-0/+1
| |
* | Escape ++ in cmake matchesJohn Wiegley2016-11-131-1/+1
| |
* | Don't use -isystem with g++ anymoreJohn Wiegley2016-11-131-1/+1
| |
* | Change src/CMakeLists.txt to notice c++ as g++John Wiegley2016-11-131-14/+19
| |
* | Fix 1043John Wiegley2016-11-122-10/+18
| |
* | Make bool implicitly convertible in Python to value_tJohn Wiegley2016-11-121-0/+1
| |
* | Add new reporting function quoted_rfc4180John Wiegley2016-11-122-0/+20
| |