Commit Graph

2443 Commits (341f2102635c73858d2abba05ab0e0990c47ecaf)

Author SHA1 Message Date
Geert Janssens 48b9fa80ce Doxygen - strip obsolete info from loans.txt
2 years ago
Geert Janssens 58b4ee35f0 Doxygen - drop several txt files that were included in
2 years ago
Geert Janssens 3c860737f1 Doxygen - fold business.txt file in the respective source files
2 years ago
Christopher Lam 038405b370 Revert "[account.cpp] gnc_account_remove_split searches from the end"
2 years ago
Christopher Lam 5aff4fb57d [account.cpp] gnc_account_remove_split searches from the end
2 years ago
Christopher Lam 370a06fb61 [qofid.cpp] remove unnecessary struct
2 years ago
Christopher Lam fe2cdf42c7 [transaction.cpp] speed up book close
2 years ago
Christopher Lam d21d6f9344 [qofid.cpp] qof_collection_foreach_sorted
2 years ago
Christopher Lam 7b46466ebd [account.cpp] fix regression caused by 3f7a5a8267
2 years ago
Christopher Lam e54e9d8086 [account.cpp] use HashTable for splits
2 years ago
Christopher Lam b28ca9bdb4 use c++ placement new
2 years ago
John Ralls 579da58a10 Merge Gwynn Ciesla's "Allow building with GCC 14.1" into stable.
2 years ago
Christopher Lam 2817ca195f [test-commodities.cpp] test stability of c_str names
2 years ago
Christopher Lam f67233b662 Bug 799305 - Crash when there is more than one unknown quote source for commodities
2 years ago
Christopher Lam d867a9d18a Merge branch 'TransactionP-hpp' into stable #1928
2 years ago
Christopher Lam 9e4b03f71b [SplitP.hpp] rename to .hpp
2 years ago
Christopher Lam 1e1d21b716 [Transaction.hpp] rename to .hpp
2 years ago
Christopher Lam ef8afedd09 [gnc-euro.cpp] use c++isms
2 years ago
Christopher Lam 3bc7ce606d [gnc-euro.cpp] convert to c++
2 years ago
Christopher Lam 80997ee5b4 [gtest-gnc-euro] add rounding test
2 years ago
Christopher Lam 949c9c97c0 Bug 799300 - Nullpointer exception in gnc_quote_source_s
2 years ago
Christopher Lam 87dbbf25f8 [account.cpp] add gnc_account_foreach_until_date
2 years ago
John Ralls 9c18bc889c Don't use Googletest internal API for unused decls.
2 years ago
Bruce P Schuck d01aad68fb Update gnc-commodity.cpp
2 years ago
Bruce Schuck 6696bf0a41 Updated QuoteSourceVec to match F::Q v1.59
2 years ago
Christopher Lam 0f791c474a [Account.cpp][api] gnc_account_foreach_split takes std::function<void(Split*)>
2 years ago
Christopher Lam 871f669a19 [Account.cpp] explicitly destroy priv->splits
2 years ago
Christopher Lam 35b6fb767d [Account.cpp] ensure priv->splits releases memory on shutdown
2 years ago
Christopher Lam 94368f4cb4 [Account.cpp] SplitsVec&, ensure xaccAccountGetSplitList is freed
2 years ago
Christopher Lam 2b71219766 [Account.cpp] remove obsolete comment
2 years ago
Christopher Lam 1b50c6261a g_list_free xaccAccountGetSplitList
2 years ago
Christopher Lam 606da28d25 use xaccAccountGetSplitsSize
2 years ago
Christopher Lam f70ee754fc use xaccAccountGetSplits and gnc_account_find_split
2 years ago
Christopher Lam 3f7a5a8267 [Account.hpp][API] xaccAccountGetSplits and gnc_account_find_split
2 years ago
Christopher Lam a54caaab61 [Account.cpp] GetBalanceAsOfDate gets std::function instead of bool
2 years ago
Christopher Lam cc10b9a0b7 [SX-book.c] tidy for loop
2 years ago
Christopher Lam c1ee59c39b [Account.h] size_t xaccAccountGetSplitsSize returns g_list_length (splits)
2 years ago
Christopher Lam f08e0f5b61 [policy.cpp] rewrite to avoid goto
2 years ago
Christopher Lam 2251bf8966 [Account.hpp] use std::optional for cached values
2 years ago
Sherlock f0d45de642
Resolve test assert.
2 years ago
Sherlock 8d6f748aca
Bug 799281 - Deleting a transaction may trigger a crash
2 years ago
Christopher Lam df0fc05223 Merge branch 'more-engine-cpp' into stable #1889
2 years ago
Christopher Lam 8c94132f13 Bug 799268 - Cannot write a check over $1000
2 years ago
Christopher Lam d100df7ef7 [AccountP.hpp] .h -> .hpp, remove extern "C" {} wrapper
2 years ago
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 6c82a1311b [sixtp-dom-parsers.cpp] use string_to_guint, string_to_guint16
2 years ago
Christopher Lam 249ec9f43a [test-string-converters.cpp] add some string->number tests
2 years ago
Christopher Lam 1f9ea6bc99 [sixtp-utils.cpp] std::from_chars speedup, remove string_to_gint32
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 770045c4a5 [gnc-quotes.cpp] remove sources_as_glist()
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 a301544376 Merge branch 'stock-acct-metadata' into stable #1858
2 years ago
Christopher Lam 688032b590 [app-utils/gnc-ui-balances.cpp] convert to cpp
2 years ago
Christopher Lam 9782918586 [account.cpp] add more account metadata - assoc account
2 years ago
Alex Aycinena 54da44b3ca Update Form/Schedule line references for 2023 for the US Income Tax Report
2 years ago
John Ralls c87d480b0d Move gnc_list_formatter from gnc-date to gnc-ui-util.
2 years ago
John Ralls d52d226e5b Convert gnc-ui-util to C++.
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 fdcb8b46bd [sixtp-dom-generators.cpp] char* must be freed
3 years ago
Christopher Lam 8f7eecd3e9 Merge branch 'icu-list-formatter' into stable #1791
3 years ago
Christopher Lam 9e47c297ba Merge branch 'plug-recurrence-to-string' into stable #1812
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
Adam Wight fbc183a544 Always return an allocated gchar*
3 years ago
John Ralls f67b53a440 Xml backend tests: Use libgnc-backend-xml-utils instead of sources.
3 years ago
John Ralls fa119f8d17 Split test other
3 years ago
John Ralls e17ba3cc00 Fix UAF in xaccFreeSplit.
3 years ago
John Ralls 2234fa433e Add Asan build type that enables the Address and UB sanitizers.
3 years ago
Christopher Lam d617129db8 avoid strlen where possible
3 years ago
Simon Arlott 90c9aaf4cb
Bug 799108 - "Since Last Run" crashes if there are any errors creating a scheduled transaction
3 years ago
John Ralls 4592530318 Bug 799099 - Crash when trying to get quotes
3 years ago
Sherlock 52f1076b30
Bug 799104 - "Asset Chart" broken
3 years ago
John Ralls 44c278a82c Fix GncDateEntry date parsing oddities.
3 years ago
John Ralls a389e0a32e Bug 799092 - GnuCash 5.4 leaves background process running on exit
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
John Ralls 422fd0cab2 Fix misspelled/missing dist files.
3 years ago
John Ralls 776a430734 Bug 798904 - GnuCash on Windows opens a CMD window at startup.
3 years ago
John Ralls 90b9142096 [DBI backend] Change DBI test URLs to environment variables.
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 55b9382ad9 [utest-gnc-backend-sql] properly clean up QofBook
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 a81bc72fb1 [test-sx] plug some leaks
3 years ago
Christopher Lam 94211c2e57 [test-sx] plug some leaks
3 years ago
Christopher Lam 14622e7db6 [test-print-parse-amount] plug leaks
3 years ago
Christopher Lam c44194606a [test-xml-pricedb] free a sixtp parser
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
Christopher Lam 5a03d9798c [gnc-sx-instance-model] g_free char*
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 7ce4198c20 rename string_to_gnc_numeric to gnc_numeric_from_string
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
Mike Alexander 3aa6e60f95 fix debugging output, no functional change.
3 years ago
Christopher Lam f8546dc4da Fix compilation error from 5781f3445b
3 years ago
John Ralls 73dec63d1d Eliminate a frequent exception in guid_from_string
3 years ago
John Ralls 5781f3445b SQLBackend: Use std::optional return value instead of exceptions
3 years ago
John Ralls a5404f6607 Improve reporting when parse_quote throws an exception.
3 years ago
Christopher Lam e91752dba2 [gnc-ui-util.c] plug GList* leak
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
John Ralls 4d46a8191d Merge Simon Arlott's 'test-xml-save' into stable.
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
Simon Arlott 35bee1382d
Test loading and saving XML files with and without compression
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 920f760dd8 Merge Richard Cohen branch 'fix-some-leaks-on-error-path' into stable #1714
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 1943caee55 Fix memory leak on error path in text_to_dom_tree()
3 years ago
Richard Cohen 2640911901 Valgrind: fix "definitely lost/still reachable" memory in test - test-xml2-is-file
3 years ago
Richard Cohen d808fddc95 Valgrind: fix "definitely lost" memory in test - test-userdata-dir-invalid-home
3 years ago
Richard Cohen b7d278556f Valgrind: fix "definitely lost" memory in test - test-string-converters
3 years ago
Richard Cohen 378dc40585 Valgrind: fix "definitely lost" memory in test - test-resolve-file-path
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