Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Restore expr context after calc, #2330 #2343 | Tavis Ormandy | 2024-07-08 | 1 | -2/+3 |
| | | | | | | | Part of the expr_t::compile() process is to store the current scope, but In post_t::add_to_value that scope is temporary and on the stack. Restore the original context after that process is complete. | ||||
* | Fix Query Parser for Automated Transactions (#1) | Igbanam Ogbuluijah | 2024-06-25 | 2 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add failing test for use case TBH I don't know what I'm doing here, but this seems to fail for the right reasons enough to reflect the parser bug here. * Append to the ident on a closing brace ')' When parsing the automated rule, a scanner reads the line left-to-right char-by-char. The default behaviour is to append the char under the cursor to some `ident` string. When the cursor is on a ')', it skips the default handling and switches into some special handling: it tries to test the string it's reading if it's one of the keywords it knows, to select which type of token just got scanned. If what was scanned is not a known token, it defaults to `token_t::TERM` and returns a new token with the currently accumulated `ident` as a `token_t::TERM`. Issue is, since it skipped the appending to do some custom handling, the `token_t::TERM` will always be without its closing brace. The scanner needs to append the character under the cursor if it's falling through to default processing. * fix test case - ensure proper spacing for the posting to have an amount - ensure the posting balances against an account - the meaning of the number after `->` is the exit code * undo wrong approach * consume_next if unbalanced_braces * how this can be extended | ||||
* | Fix build with Boost 1.85.0 | Michael Cho | 2024-04-25 | 1 | -1/+0 |
| | | | | Signed-off-by: Michael Cho <michael@michaelcho.dev> | ||||
* | Expand the size of an arbitrary safety limit | John Wiegley | 2024-01-19 | 1 | -1/+1 |
| | |||||
* | Change an assertion into an if test | John Wiegley | 2024-01-19 | 1 | -1/+2 |
| | |||||
* | Fix compiler warning about std::binary_function | Alexis Hildebrandt | 2023-12-12 | 3 | -2/+8 |
| | | | | being deprecated as of C++11 | ||||
* | Fix =regex note query syntax | Gwyneth Morgan | 2023-10-12 | 1 | -0/+4 |
| | | | | | | | | | | | | The manpage documents `=regex` as equivalent to the `note regex` query syntax, but the former does not actually work as the parser only handles an equals sign in the case of `tag type=dining` syntax, and doesn't handle the case where an equals sign starts a note query. Fixing this does break queries like `tag type = dining` with spaces around the equals sign, but that syntax was not intended or documented. Closes: #2275 | ||||
* | include zero-amounts in balance_t::map_sorted_amounts | dbear496 | 2023-07-16 | 2 | -2/+5 |
| | |||||
* | Merge pull request #2260 from afh/modernize-cmake | Alexis Hildebrandt | 2023-06-10 | 1 | -3/+3 |
|\ | | | | | cmake: Replace add_defitions with superseding alternatives | ||||
| * | cmake: Replace add_defitions with superseding alternatives | Alexis Hildebrandt | 2023-06-07 | 1 | -3/+3 |
| | | |||||
* | | Merge pull request #2259 from afh/afh-readline | Alexis Hildebrandt | 2023-06-10 | 2 | -4/+8 |
|\ \ | | | | | | | Improve support for libedit and readline | ||||
| * | | Add build support readline | Alexis Hildebrandt | 2023-06-07 | 2 | -4/+8 |
| |/ | |||||
* | | Merge pull request #2261 from afh/bsd-pic | Alexis Hildebrandt | 2023-06-10 | 1 | -0/+2 |
|\ \ | | | | | | | cmake: Add -fPIC to compile flags | ||||
| * | | cmake: Add -fPIC to compile flags | Alexis Hildebrandt | 2023-06-07 | 1 | -0/+2 |
| |/ | | | | | | | | | | | when building ledger cli. Fixes #1913 | ||||
* | | Merge pull request #2250 from afh/fix-no-assert | Alexis Hildebrandt | 2023-06-10 | 1 | -1/+2 |
|\ \ | |/ |/| | Fix compilation errors with NO_ASSERT | ||||
| * | Fix compilation errors with NO_ASSERT | Alexis Hildebrandt | 2023-04-25 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #2248 from afh/improve-web-docs | Alexis Hildebrandt | 2023-04-26 | 4 | -3/+22 |
|\ \ | |/ |/| | Improve web docs | ||||
| * | doc: Generate Ledger Python module documentation | Alexis Hildebrandt | 2023-04-25 | 4 | -3/+22 |
| | | | | | | | | using pydoc when building web docs. | ||||
* | | boost: Fix compilation warnings | Alexis Hildebrandt | 2023-04-25 | 6 | -1/+10 |
|/ | | | | Closes #2227 | ||||
* | Merge pull request #2245 from taviso/master | Alexis Hildebrandt | 2023-04-19 | 2 | -1/+2 |
|\ | | | | | Fix bucket transactions with reg --related | ||||
| * | fix #2220, bucket transactions ignored with reg --related | Tavis Ormandy | 2023-04-18 | 2 | -1/+2 |
| | | | | | | | | | | | | This adds a new item flag, `ITEM_INFERRED`, that differentiates generated items from bucket items. This makes them show up as related items in reports. | ||||
* | | Merge pull request #2238 from afh/cleanup-system-defines | Alexis Hildebrandt | 2023-04-19 | 12 | -113/+123 |
|\ \ | |/ |/| | Cleanup system defines | ||||
| * | Remove unused REVERSE_PREDECESSOR_MAP guarded code | Alexis Hildebrandt | 2023-04-19 | 1 | -23/+0 |
| | | |||||
| * | Reorder system.hh includes | Alexis Hildebrandt | 2023-04-19 | 1 | -15/+12 |
| | | |||||
| * | Move app defines into ledger.hh.in | Alexis Hildebrandt | 2023-04-19 | 2 | -3/+3 |
| | | |||||
| * | Introduce ledger.hh | Alexis Hildebrandt | 2023-04-16 | 5 | -34/+76 |
| | | |||||
| * | Move DEBUG_MODE related defines to system.hh.in | Alexis Hildebrandt | 2023-04-15 | 2 | -25/+23 |
| | | |||||
| * | Use #cmakedefine01 for system capability checks | Alexis Hildebrandt | 2023-04-15 | 8 | -35/+35 |
| | | | | | | | | and reply #ifdev HAVE_ with #if HAVE_ | ||||
| * | Modernize system.hh.in | Alexis Hildebrandt | 2023-04-15 | 1 | -5/+1 |
| | | |||||
* | | gpgme: Remove obsoleted rewind wrapper function | Alexis Hildebrandt | 2023-04-18 | 1 | -6/+2 |
| | | | | | | | | kudos to @spacefrogg | ||||
* | | gpgme: Remove code handling versions prior to required version | Alexis Hildebrandt | 2023-04-18 | 1 | -10/+0 |
| | | |||||
* | | Clean-up doxygen modules | Alexis Hildebrandt | 2023-04-16 | 7 | -7/+11 |
|/ | |||||
* | Refactor python related types into ledger::python namespace | Alexis Hildebrandt | 2023-04-12 | 15 | -54/+65 |
| | |||||
* | Refactor basic_flags_t to ledger::flags::basic_t | Alexis Hildebrandt | 2023-04-12 | 13 | -27/+32 |
| | |||||
* | Refactor flag and pstream related types into ledger namespace | Alexis Hildebrandt | 2023-04-12 | 3 | -1/+8 |
| | |||||
* | Merge branch 'master' into pragma-once | Alexis Hildebrandt | 2023-04-11 | 6 | -5/+62 |
|\ | |||||
| * | Merge pull request #2228 from afh/api-documentation | Alexis Hildebrandt | 2023-04-11 | 6 | -4/+63 |
| |\ | | | | | | | Fix generation of API documentation and prepare for publishing on ledger-cli.org | ||||
| | * | Update api docs | Alexis Hildebrandt | 2023-04-10 | 3 | -1/+41 |
| | | | |||||
| | * | doc: Minor clean-up | Alexis Hildebrandt | 2023-04-10 | 3 | -3/+22 |
| | | | |||||
| * | | Fix typo | Alexis Hildebrandt | 2023-04-11 | 1 | -1/+1 |
| |/ | |||||
* / | Use #pragma once | Alexis Hildebrandt | 2023-04-10 | 57 | -228/+57 |
|/ | |||||
* | Bump required Boost version to 1.72 | Alexis Hildebrandt | 2023-03-24 | 4 | -25/+0 |
| | |||||
* | Change a use of is_realzero to just is_zero | John Wiegley | 2023-03-23 | 1 | -1/+1 |
| | | | | This is needed to avoid a possible divide by zero. | ||||
* | Increase string size limit in src/unistring.h assert | John Wiegley | 2023-03-08 | 1 | -1/+2 |
| | |||||
* | Do not perform commodity reduction when parsing a format directive | John Wiegley | 2023-03-03 | 1 | -3/+5 |
| | |||||
* | Enforce use of non-deprecated boost::filesystem API | Alexis Hildebrandt | 2023-02-20 | 1 | -0/+1 |
| | | | | For details see https://www.boost.org/doc/libs/1_81_0/libs/filesystem/doc/deprecated.html | ||||
* | Fix compiler warnings | Alexis Hildebrandt | 2023-02-20 | 2 | -1/+5 |
| | | | | minimizing use of deprecated API where possible. | ||||
* | Remove unused server related code | Alexis Hildebrandt | 2023-02-20 | 2 | -44/+0 |
| | |||||
* | Add info about compile features to --version | Alexis Hildebrandt | 2023-02-14 | 1 | -0/+9 |
| | |||||
* | When a post has no date at all, default to the current date | John Wiegley | 2023-02-06 | 1 | -2/+4 |
| |