Commit Graph

1280 Commits (341f2102635c73858d2abba05ab0e0990c47ecaf)

Author SHA1 Message Date
Christopher Lam a67e4651c3 [Query.cpp] convert to cpp
2 years ago
Christopher Lam 4d9836aac2 [TransLog.cpp] convert to cpp
2 years ago
Christopher Lam 093781c018 [policy.cpp] convert to cpp
2 years ago
Christopher Lam f913bed7e6 [gnc-engine.cpp] convert to cpp
2 years ago
Christopher Lam 96f041a1d6 [cap-gains.cpp] convert to cpp
2 years ago
Christopher Lam 79b7267cdd [cashobjects.cpp] convert to cpp
2 years ago
Christopher Lam 67d024c11f [Scrub3.cpp] convert to cpp
2 years ago
Christopher Lam 6b5a4d7c11 [Scrub2.cpp] convert to cpp
2 years ago
Christopher Lam ddfa664601 [Scrub.cpp] convert to cpp
2 years ago
Christopher Lam dab32807ef [engine/*.cpp] NULL -> nullptr changes
2 years ago
Christopher Lam 9a85eb4a2a [engine/*.h] add extern "C" {} wrappers
2 years ago
Gwyn Ciesla 5132476a2f Allow building with c++20 and greater/
2 years ago
Christopher Lam 4945db6b7d [AccountP.h] remove struct members obsolete with 76014f18a0
2 years ago
Christopher Lam ba403e4a7c [guid.hpp] GUID::from_string and is_valid_string takes a const char*
2 years ago
Christopher Lam cba7da30fd [gnc-date.cpp] specialise iso-8601 parsing where TZ=+0000
2 years ago
Christopher Lam 27c16517e9 [gnc-numeric.cpp] shortcut parsing num/denom as gnc_numeric
2 years ago
Christopher Lam 11da03bc67 [gtest-gnc-numeric.cpp] test int64 limits for GncNumeric
2 years ago
John Ralls af18ea598e Bug 799093 - Cannot reconcile since v5.4
2 years ago
John Ralls 2db6988e25 Remove bogus include.
2 years ago
John Ralls 8ebac5b596 Bug 799213 - SIGSEGV caused by revising an auto completed transaction
2 years ago
Christopher Lam 229d9300cf [engine-helpers.h] key is a const char*
2 years ago
Christopher Lam c345fc9d3c add #ifdef __cplusplus extern "C" {} wrappers to .h files
2 years ago
Christopher Lam 6cb2eeeaa8 Merge branch 'more-engine-cpp' into stable #1866
2 years ago
John Ralls 226bfea108 Fix a bunch of UB errors from ASAN about mismatched function types.
2 years ago
John Ralls 7bd97f15d0 Fix transaction delete use-after-free, take 2.
2 years ago
John Ralls 8546aa975e Revert "Fix two use-after-free issues found by address sanitizer."
2 years ago
John Ralls 4dbf803041 Fix two use-after-free issues found by address sanitizer.
2 years ago
Christopher Lam 28cc26f207 [gnc-commodities.cpp] gnc_new_iso_codes is a std::unordered_map
2 years ago
Geert Janssens 00640f9ded Replace naked for loops with C++ algorithms
2 years ago
Geert Janssens 0732436e44 A few NULL/nullptr related cleanups
2 years ago
Christopher Lam 17f422f97c [gnc-commodity.cpp] convert quote_sources to vector
2 years ago
John Ralls 266ae2a931 Bug 798946 - start/end of current/last quarter have off-by-one error
2 years ago
Christopher Lam 164453a858 [gnc-commodity.cpp] gnc_quote_source_get_index searches index
2 years ago
Christopher Lam 5d16d025a6 [gnc-commodity.cpp] gnc_quote_source_s is a cpp class
2 years ago
Christopher Lam 346499ae04 [gnc-commodity.cpp] gnc_quote_source_set_fq_installed takes a StrVec
2 years ago
Christopher Lam 47a1a56f16 [gnc-commodity.cpp] fq_version is a std::string
2 years ago
Christopher Lam f49c2735e3 [gnc-commodity.cpp] initialize quote_sources at compile-time
2 years ago
Christopher Lam d488faacb2 [gnc-commodity.cpp] Convert to cpp
2 years ago
Vincent Lucarelli f5b7bf3401 removed old_internal_name from gnc_quote_source_s (deprecated)
2 years ago
Christopher Lam 9035391907 [test-commodities.cpp] add some tests for gnc_quote_sources
2 years ago
Christopher Lam 03c5309666 [gnc-lot.cpp] convert to cpp
2 years ago
Christopher Lam 7d8d8f83be [Recurrence.cpp] convert to cpp
2 years ago
Christopher Lam 783c3df3c0 [Transaction.cpp] convert to cpp
2 years ago
Christopher Lam fc5d7f872e [Split.cpp] convert to cpp
2 years ago
Christopher Lam 698cc23051 Add #ifdef __cplusplus extern "C" {} wrappers to .h files
2 years ago
Christopher Lam 928f9245e6 [gtest-gnc-numeric] add operator comparisons
2 years ago
Christopher Lam 9782918586 [account.cpp] add more account metadata - assoc account
2 years ago
John Ralls c87d480b0d Move gnc_list_formatter from gnc-date to gnc-ui-util.
2 years ago
John Ralls b2fa3ef106 Bug 799210 - Bad encoding of accented chars in account names in...
2 years ago
John Ralls e22a57ad26 Merge John Ralls's 'asan' into stable.
2 years ago
John Ralls 6834cb5025 Implement coverage option
2 years ago
John Ralls 6bc12898a8 GncDate: Remove now-superfluous base parameter.
2 years ago
John Ralls 1e289cb2b8 GncDate: Remove pointless normalize_month function.
2 years ago
John Ralls 966cef19aa Bug 799156 - normalize_struct_tm() does not normalize seconds,...
2 years ago
John Ralls 5005c3cac8 Merge Sherlock's 'bug799151' into stable.
2 years ago
Sherlock ae8492d73a Update test-gnc-date.c
2 years ago
Sherlock 5a7b6e9814 Bug 799151 - gnc_date_get_last_mday () does not account for,,,
2 years ago
Sherlock 07e94b4222 Bug 799152 - normalize_reldate_tm() does not handle dates with...
2 years ago
John Ralls d8dacb86b2 Bug 799143 - FTBFS on 32bit architectures
2 years ago
John Ralls 92de074e49 Bug 799144 - Date Completion is broken after 5.4 upgrade
2 years ago
John Ralls ed4921271c Bug 799134 - Fails to build with GCC 14 (‘find_if’ is not a member...
2 years ago
Christopher Lam 1d26d99ddb [gnc-budget] use std::optional<gnc_numeric> instead of bool+gnc_numeric
2 years ago
John Ralls dd0b72cdb5 Fix global array index out of range.
2 years ago
Christopher Lam 8f7eecd3e9 Merge branch 'icu-list-formatter' into stable #1791
3 years ago
Christopher Lam 6940488d2d recurrencePeriodTypeToString and recurrenceWeekendAdjustToString g_strdup only when necessary
3 years ago
Christopher Lam 12f4233396 recurrencePeriodTypeToString and recurrenceWeekendAdjustToString g_strdup only when necessary
3 years ago
John Ralls fa119f8d17 Split test other
3 years ago
John Ralls e17ba3cc00 Fix UAF in xaccFreeSplit.
3 years ago
Sherlock 52f1076b30
Bug 799104 - "Asset Chart" broken
3 years ago
John Ralls 44c278a82c Fix GncDateEntry date parsing oddities.
3 years ago
Christopher Lam ab7ead39ca use icu::ListFormatter to combine a list strings into a string
3 years ago
Christopher Lam d1b2368f4d Merge Yongun Seong's branch 'utest-gnc-pricedb-types' into stable #1784
3 years ago
Yongun Seong 0bd556c581
[utest-gnc-pricedb] fix test failure due to callback type mismatch
3 years ago
Christopher Lam 550c43d13a Merge branch 'free-guid-string' into stable #1777
3 years ago
John Ralls a49fd0bc09 [c++options] Correctly implement handling Fancy Date Format.
3 years ago
Christopher Lam 8e21d3328f guid_to_string should be freed.
3 years ago
Christopher Lam d21698f7cf [gnc-option-impl] don't leak char*
3 years ago
Christopher Lam 01f27e9c53 [test-commodities] clean up commodities
3 years ago
Christopher Lam fccf0b48c4 [utest-Account] g_free char*
3 years ago
Christopher Lam c074b82224 [test-qofsession] plugs Account* leak
3 years ago
Christopher Lam 1ddee7dc3f [test-qofbook] plugs Account* leak
3 years ago
Christopher Lam 34564ef6d0 [test-qofobject] plug some leaks
3 years ago
Christopher Lam 8277f4d559 [test-qofbook] plug leaks
3 years ago
Christopher Lam 0056e5f091 [gtest-import-map] plug leaks
3 years ago
Christopher Lam 235e24a055 [account.cpp] ~GncImapInfo = gnc_account_imap_info_destroy
3 years ago
Christopher Lam db77fb81a5 [test-job] plug leaks
3 years ago
Christopher Lam a8dffb8559 [gnc-date.cpp] don't alloc tm* unless GncDateTime() succeeds
3 years ago
John Ralls 16c9957cac Bug 798925 - Python bindings: "invalid unclassed pointer...
3 years ago
John Ralls 89360252fb Bug 798983 - Empty Orphan account appears after entering transactions in 5.3
3 years ago
Christopher Lam c45b9736ab [gnc-numeric.cpp] parse integer + fraction; e.g."10 1/4" == 10.25
3 years ago
Geert Janssens e2f8233e1e Bug 798950 - Bug Report: Incorrect Currency Conversion and Provider Invoice Payment Recording
3 years ago
John Ralls 73dec63d1d Eliminate a frequent exception in guid_from_string
3 years ago
Christopher Lam fc21c55a0b [gnc-pricedb.cpp] more glib g_list uses
3 years ago
Christopher Lam d89544563d Revert "[gnc-pricedb.cpp] use std::pair instead of a struct for PriceTuple"
3 years ago
Christopher Lam 2d730e38d5 [gnc-pricedb.cpp] use std::pair instead of a struct for PriceTuple
3 years ago
Christopher Lam 6b741ddf32 [gnc-pricedb.cpp] use forloop instead of do..while and while
3 years ago
Christopher Lam 79c0fe4724 [gnc-pricedb.cpp] convert hash_table_to_list to hash_table_to_vector
3 years ago
Christopher Lam 5e09b662a1 [utest-gnc-pricedb] test gnc_pricedb_foreach_price both stable and unstable
3 years ago
Christopher Lam 040ccb79b6 [gnc-pricedb.cpp] rewrite price_list_insert more efficiently
3 years ago
Christopher Lam d6b49bbc89 [utest-gnc-pricedb.c] tests gnc_pricedb_price_list_insert
3 years ago
John Ralls dee01706eb Merge John Ralls's 'bug798958' into stable.
3 years ago
John Ralls cbe765c6d9 Bug 798958 - gncScrubLotLinks will infinite loop in some conditions
3 years ago
Christopher Lam 867867da53 Merge Richard Cohen branch 'fix-leaks-in-tests' into stable #1713
3 years ago
Christopher Lam cdc5b6a796 Merge Richard Cohen branch 'fix-test-leaks-from-get-random-string' into stable #1715
3 years ago
Christopher Lam e841ceaaa1 [gnc-pricedb.cpp] convert to cpp
3 years ago
John Ralls c5181180ad Fix GncOptionMultichoiceValue list tests
3 years ago
Richard Cohen a36844720d Valgrind: fix "definitely lost" memory from get_random_string() - test-vendor
3 years ago
Richard Cohen 30b47d1669 Valgrind: fix "definitely lost" memory from get_random_string() - test-job
3 years ago
Richard Cohen 49240e9b5a Valgrind: fix "definitely lost" memory from get_random_string() - test-employee
3 years ago
Richard Cohen 2f0c045187 Valgrind: fix "definitely lost" memory from get_random_string() - test-customer
3 years ago
Richard Cohen 394823a734 Valgrind: fix "definitely lost" memory from get_random_string() - test-commodities
3 years ago
Richard Cohen 47f76fcf03 Valgrind: fix "definitely lost" memory from get_random_string() - test-address
3 years ago
Richard Cohen 69df6ea57d Valgrind: fix "definitely lost" memory in test - test-qofquerycore
3 years ago
Richard Cohen f1e889dbcb Valgrind: fix "definitely lost" memory in test - test-lots
3 years ago
John Ralls 741ce55b7a Merge Richard Cohen's 'use-g-assert-true-in-tests' into stable.
3 years ago
Richard Cohen 66c5e398ae Change g_assert() -> g_assert_true() in tests
3 years ago
Christopher Lam fde47d1c7f Merge Simon Arlott branch 'gnc-numeric-to-string-leaks'into stable #1695
3 years ago
Christopher Lam d326cca065 Bug 798998 - Job Report Not Working
3 years ago
John Ralls a222efbdf3 GncOption debug messages should be in engine not app-utils.
3 years ago
Simon Arlott 663dfadb90
Fix memory leaks logging with gnc_numeric_to_string()
3 years ago
Simon Arlott dbf8f93be4
Fix assumption in gnc_num_dbg_to_string()
3 years ago
Simon Arlott 069eb61a3f
Avoid the potential negative left shift in test_xaccAccountType_Compatibility()
3 years ago
John Ralls e98d3534ce Bug 798901 - Wrong value for very small prices from Finance::Quote.
3 years ago
John Ralls 4c67cc09a6 Merge Richard Cohen's 'valgrind-test-fixes' into stable.
3 years ago
Richard Cohen fa0824e903 Valgrind: fix "Invalid read" - test-vendor
3 years ago
Richard Cohen 2168c6f301 Valgrind: fix "Invalid read" - test-employee
3 years ago
Richard Cohen a5513b45d5 Valgrind: fix "Invalid read" - test-customer
3 years ago
Richard Cohen a1893ef51b Valgrind: fix "Invalid read" - test-kvp-value
3 years ago
Richard Cohen 46e6477f88 Refactor: use common code to free the list of guids
3 years ago
Richard Cohen f1a3f2a8c8 Valgrind: fix "Mismatched free/delete" - test-scm-query etc.
3 years ago
John Ralls b041a76690 [c++options]Dirty and changed are different.
3 years ago
Vincent Dawans b514245c22 Bug 798952 - Unable to set day threshold or counters in properties
3 years ago
Richard Cohen e5a26e3c77 Valgrind: fix "Mismatched free/delete" - test-query
3 years ago
Richard Cohen 4018ff1722 Valgrind: fix "Mismatched free/delete" - test-kvp-frames etc.
3 years ago
John Ralls 241aa1d2eb Merge Richard Cohen's 'remove-unneeded-memcpy' into stable.
3 years ago
John Ralls aae568eca6 Add comment explaining "option.template get_value<int>()".
3 years ago
John Ralls 4dc8a7ee0d Bug 798952 - Unable to set day threshold or counters in properties
3 years ago
Richard Cohen 3abc9a5558 Refactor: Remove some unnecessary uses of memcpy
3 years ago
Christopher Lam 4a60e01fcd bugfix xaccTransGetTxnType: avoid returning TXN_TYPE_LINK incorrectly
3 years ago
John Ralls 0d1ba1ebe7 Merge Richard Cohen's 'y2038-fixes' into stable.
3 years ago
Christopher Lam 8ec6a4cb12 [Scrub.c] 8628ca8715 rewritten to avoid QofQuery
3 years ago
Richard Cohen 7d26b8c05f Fail the test if still using 32bit time_t in 2038
3 years ago
Richard Cohen d63248dad2 Update Y2038 comments
3 years ago
John Ralls a5ff19b62a Merge Richard Cohen's 'fix-incorrect-logging-after-fallthrough' into stable.
3 years ago
Richard Cohen 6e5c525f77 Use gnc_time() instead of time()
3 years ago
Richard Cohen fde90c4c99 Restore test-gnc-option
3 years ago
Richard Cohen a0fd9af394 Fix incorrect logging after switch fallthrough
3 years ago
Christopher Lam ccc75cfc88 Merge branch 'scrub-optimize' into stable
3 years ago
Christopher Lam 81902ba8bb [scrub.c] xaccTransScrubSplits calls Begin/Commit only if required
3 years ago
Christopher Lam 872e20c555 move xaccTransScrubSplits to Scrub.c
3 years ago
Christopher Lam 9047156017 [Scrub.c] refactor xaccAccountTreeScrubOrphans
3 years ago
Christopher Lam 8628ca8715 [Scrub.c] refactor xaccAccountTreeScrubImbalance
3 years ago
Christopher Lam d214b2f05d Merge Vincent Dawans' branch 'bug798879' into stable #1617
3 years ago
Vincent Dawans 1c04e744d3 [trep-engine.scm] Rename "Totals" option to "Grand Total"
3 years ago
John Ralls 6111184c73 Ensure incorrectly coded counter KVP is read correctly.
3 years ago
John Ralls 7d5663899c Bug 798930 - invoices wont sequence to the next number
3 years ago
John Ralls 3d30e5978a Merge Richard Cohen's 'define-boxed' into stable.
3 years ago
Richard Cohen ae9304efb0 Remove unused boxed type gnc_value_list
3 years ago
Richard Cohen f9efbf86c6 Remove unused Qofbook::ab-templates property
3 years ago
Mike Alexander 6bdaa161eb Redo 71afa3e0 and 71afa3e0 so powten(max_leg_digits) is 1e18
3 years ago
Richard Cohen eb2d5df778 Refactor: DEFINE_BOXED GncGUID
3 years ago
Richard Cohen c514f61a7a Refactor: DEFINE_BOXED Time64
3 years ago
Richard Cohen 14f2efcfb7 Refactor: DEFINE_BOXED gnc_numeric
3 years ago
John Ralls bba49a6d09 Fix test-gnc-euro failure.
3 years ago
Mike Alexander 71afa3e0fc Make the GncNumeric string constructtor work for long decimal numbers.
3 years ago
John Ralls 8ccc6da87e Merge Richard Cohen's 'fix-test-engine-crash' into stable.
3 years ago
John Ralls 26162da450 Merge Richard Cohen's 'cleanup-build' into stable.
3 years ago
Richard Cohen 81fba56bbb Initialise guids in test-engine-kvp-properties.c
3 years ago
Richard Cohen bed43c7f3b Fix potential crash in test-engine
3 years ago
Richard Cohen dc62959553 Fix crash in test-engine on Arch
3 years ago
Richard Cohen 80e9d9c35d scanf supports %lld since C++11, C99
3 years ago
Richard Cohen 3957272ef0 Fix some typos in comments
3 years ago
John Ralls bb423e4484 Merge CrfzdPQM6's 'b_betterCurrencyBudgetReporting' into stable.
3 years ago
Daniel Johnson 04b0317119 Demonstrate fx handling in budget report
3 years ago
John Ralls df878c6a3d Merge Maarten Bosmans's 'memleak-fixes' into stable.
3 years ago
Maarten Bosmans 6be682b645 Store allocated temporaries in a variable so they can be freed
3 years ago
Christopher Lam 1a7fcb69c0 [gnc-features.cpp] remove_if requires <algorithm>
3 years ago
John Ralls 8481f062d4 Create obsolete features list with first member book_currency.
3 years ago
John Ralls 0d175dce12 Refactor gnc-features.
3 years ago
John Ralls e8c80f2f5c Restore existence, but not implementation, of GNC_FEATURE_BOOK_CURRENCY.
3 years ago
Muhammadyusuf 02e24ccf96
edit: use &apos; instead of ` symbol
3 years ago
Muhammadyusuf dca596ac84
edit: Fix local symbol of uzbek sum
3 years ago
Vincent Dawans 761d7f29a5 Bug 765920 - Running balance not accurate when sorted different ways
3 years ago
John Ralls 4a5b897d89 Bug 798863 - Crash on clicking Settings button second time
3 years ago
John Ralls f4f481fe38 Bug 798812 - crashes after I open a customer report and select…
3 years ago
Robert Fewell 0d84506a5e Bug 798851 - Account Balance 'include subaccounts' not saved
3 years ago
Maarten Bosmans 0d86be6d2a [test] Properly destroy resources on end of tests
3 years ago
Maarten Bosmans ed3fe00880 [test] Use test fixture to initialize and destroy resources
3 years ago
Maarten Bosmans 35aeed45ec [engine] Remove two replace functions from KvpValue
3 years ago
Richard Cohen 6ba5bb326a Fix dereference of expired temporaries.
3 years ago
Richard Cohen 9fa2a48fe1 Fix build on gcc-8 & 9.
3 years ago
John Ralls 00c560d8f5 Move operator==(const GncGUID&, const GncGUID&) to guid.[ch]pp.
3 years ago
John Ralls 352ab8a0e5 Merge Richard Cohen's 'minor-options-fixes' into master.
3 years ago
Richard Cohen 24f52d9b17 Remove incorrect operator!= for GncItem
3 years ago
Richard Cohen b5f3f99035 Fix incorrect use of remove_if()
3 years ago
John Ralls b4b8431984 Bug 798778 - GnuCashquits abruptly when attempting to edit options…
3 years ago
John Ralls a44b3664e2 [c++options] Implement GncOptionGncOwnerValue class.
3 years ago
John Ralls 8db8105850 [c++options] Warn when an option variant type's set_value isn't found.
3 years ago
John Ralls 83829e6513 Merge branch 'maint'
3 years ago
John Ralls 1020bde89c Fix crashes in test-engine on Arch Linux.
3 years ago