David Seifert
c06bc18dc4
Add missing `#include <cstdint>`
...
* GCC 15 has reduced transitive dependencies between headers.
Bug: https://bugs.gentoo.org/939856
2 years ago
Christopher Lam
ecabcef084
[Account.cpp] small modification xaccAccountSetLastNum
...
if last-num is empty-string, remove the slot. this makes the behaviour
consistent with other slots.
2 years ago
Christopher Lam
ab641b31f8
[gnc-datetime] improve CSV date parser with ICU and boost
...
1. Add dateformat "Locale" with ICU; uses current locale for date
parsing. ICU's locale date parser may parse "3 May 2023" or
"2024年9月13日" (LC_TIME=zh_TW.utf8) and maybe others.
2. Augment d-m-y m-d-y and y-m-d with boost UK/US/ISO parsers. This allows
CSV import of dates with months as words as "30 Sep 2023" or
"May 4, 1978" or "2023-Dec-25". Note boost parser cannot recognise
2-digit years, therefore "30 Sep 24" is invalid.
2 years ago
Christopher Lam
dc84e4d10c
[gnc-pricedb.h] remove unused gnc_pricedb_substitute_commodity
2 years ago
Christopher Lam
1718fa0b6e
[gnc-pricedb.h] remove unused gnc_pricedb_lookup_at_time64
2 years ago
John Ralls
ad7a51a6ef
Merge Chris Lam's 'acc-children-vector' into stable.
2 years ago
Christopher Lam
a6463f9814
[utest-Account] add more balance limit tests
2 years ago
Christopher Lam
119e257146
[Transaction|Split.cpp] Remove Reg2 unused functions
2 years ago
Christopher Lam
6cac9d0ebb
[Account.cpp] priv->children is a vector<Account*>
2 years ago
Geert Janssens
6cd8e4e458
Doxygen - drop obvious cases of deprecated code
2 years ago
Christopher Lam
2817ca195f
[test-commodities.cpp] test stability of c_str names
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
80997ee5b4
[gtest-gnc-euro] add rounding test
2 years ago
John Ralls
9c18bc889c
Don't use Googletest internal API for unused decls.
2 years ago
Christopher Lam
606da28d25
use xaccAccountGetSplitsSize
2 years ago
Christopher Lam
3f7a5a8267
[Account.hpp][API] xaccAccountGetSplits and gnc_account_find_split
2 years ago
Christopher Lam
d100df7ef7
[AccountP.hpp] .h -> .hpp, remove extern "C" {} wrapper
2 years ago
Christopher Lam
dab32807ef
[engine/*.cpp] NULL -> nullptr changes
...
It's the done thing
2 years ago
Christopher Lam
11da03bc67
[gtest-gnc-numeric.cpp] test int64 limits for GncNumeric
2 years ago
John Ralls
226bfea108
Fix a bunch of UB errors from ASAN about mismatched function types.
...
The casts fool the compiler but not the UB sanitizer.
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
783c3df3c0
[Transaction.cpp] convert to cpp
2 years ago
Christopher Lam
fc5d7f872e
[Split.cpp] convert to cpp
2 years ago
Christopher Lam
928f9245e6
[gtest-gnc-numeric] add operator comparisons
...
with example int64 numbers
2 years ago
Christopher Lam
9782918586
[account.cpp] add more account metadata - assoc account
...
the tag denotes the type of associated account eg. "dividend"
"capgains" "cash" "fees"
2 years ago
John Ralls
e22a57ad26
Merge John Ralls's 'asan' into stable.
2 years ago
Sherlock
ae8492d73a
Update test-gnc-date.c
2 years ago
John Ralls
d8dacb86b2
Bug 799143 - FTBFS on 32bit architectures
...
Fix misuse of GUINT_TO_POINTER in 5e09b66 .
2 years ago
John Ralls
dd0b72cdb5
Fix global array index out of range.
...
Tests must set the account type to avoid errors in xaccAccountOrder.
2 years ago
John Ralls
e17ba3cc00
Fix UAF in xaccFreeSplit.
...
xaccSplitComputeCapGains creates gains_split pointers in both the Cap Gains Split and its Income split to the original split, but the original's gains_split pointer can point to only one of them, the Cap Gains split. When the original split is freed both the Cap Gains split's and its Income split need their gains_split pointers NULLed or when it's the Income split's turn to be freed it will try to deref the dangling pointer.
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
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
db77fb81a5
[test-job] plug leaks
3 years ago
Christopher Lam
c45b9736ab
[gnc-numeric.cpp] parse integer + fraction; e.g."10 1/4" == 10.25
3 years ago
Christopher Lam
5e09b662a1
[utest-gnc-pricedb] test gnc_pricedb_foreach_price both stable and unstable
3 years ago
Christopher Lam
d6b49bbc89
[utest-gnc-pricedb.c] tests gnc_pricedb_price_list_insert
...
especially skipping adding duplicate price
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
John Ralls
c5181180ad
Fix GncOptionMultichoiceValue list tests
...
To conform to changes in 84eb084375 .
3 years ago
Richard Cohen
a36844720d
Valgrind: fix "definitely lost" memory from get_random_string() - test-vendor
...
==88804== 8 bytes in 1 blocks are definitely lost in loss record 12 of 479
==88804== at 0x4848A13: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==88804== by 0x503C550: g_malloc0 (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.1)
==88804== by 0x10B5D8: get_random_string_without (test-stuff.c:312)
==88804== by 0x10B655: get_random_string (test-stuff.c:333)
==88804== by 0x10AA92: test_string_fcn (test-vendor.c:138)
==88804== by 0x10A76B: test_vendor (test-vendor.c:88)
==88804== by 0x10AD5A: main (test-vendor.c:246)
+ 3 more
3 years ago