Geert Janssens
6cd8e4e458
Doxygen - drop obvious cases of deprecated code
2 years ago
Geert Janssens
d8ac86afd7
Integrate callgrind documentation into Hacking
2 years ago
Geert Janssens
cf7ff07624
Move libgnucash/doc/xml to libgnucash/backend/xml/DTD
2 years ago
Geert Janssens
da12a212c3
Drop old migration script to split qof from engine
2 years ago
Geert Janssens
891b921c81
Update doxygen.cnf file to more recent release
2 years ago
Geert Janssens
005112954c
Some cleanup of the doxygen main page
2 years ago
Geert Janssens
39aa5f9c09
Remove texi design document in engine
...
It's extremely out of date and we no longer use it to keep track
of our design decisions and suggestions.
Only a section on KVP policy has been move into kvp_doc.txt
as it may make sense there.
2 years ago
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
...
docygen_mainpage.c
None of them had useful information describing actual
implementation concepts or details.
2 years ago
Geert Janssens
3c860737f1
Doxygen - fold business.txt file in the respective source files
...
The file mostly had short descriptions that were very similar
to the descriptions of business objects it referred to. The
exception was an explanation of how the billing terms and
tax tables handled their immutable copies. That bit has been
moved to its own group under the Business group and is referenced
from the BillTerm and TaxTables group.
This commit also fixes rendering of the Address doxygen info
and expands the BillTerm info to explain how proximo due dates
work.
2 years ago
Christopher Lam
038405b370
Revert "[account.cpp] gnc_account_remove_split searches from the end"
...
This reverts commit 5aff4fb57d . Was not
tested properly...
2 years ago
Christopher Lam
5aff4fb57d
[account.cpp] gnc_account_remove_split searches from the end
...
because removing the latest split is far more common (e.g. from ui or
during book shutdown) than removing an early split.
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
...
whereby deleting an account and moving all splits to another account
would segfault. make a copy of priv->splits and work on the copy
rather than the original.
2 years ago
Christopher Lam
e54e9d8086
[account.cpp] use HashTable for splits
...
reduces xml loading time from 3.5s to 3.1s, i.e. 11% improvement
2 years ago
Christopher Lam
b28ca9bdb4
use c++ placement new
...
to initialize non-c++ object members
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
...
instead of vector which requires reallocation, use a c++ linked list.
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
...
avoids constructing std::string with nullptr
2 years ago
Christopher Lam
87dbbf25f8
[account.cpp] add gnc_account_foreach_until_date
...
- uses binary search to find first split after date
- for_each from earliest split to (but excluding) the above first split
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
...
Fool.pm not working. Removed references to it from sources JSON structures.
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
...
better than 35b6fb767d
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
...
because splits will need to be g_list_free in a future commit
2 years ago
Christopher Lam
c1ee59c39b
[Account.h] size_t xaccAccountGetSplitsSize returns g_list_length (splits)
...
which is easily replaced with vector.size()
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
...
whereby {} denotes uncached values
2 years ago
Sherlock
f0d45de642
Resolve test assert.
2 years ago
Sherlock
8d6f748aca
Bug 799281 - Deleting a transaction may trigger a crash
...
Update qof_collection_lookup_entity() to prevent returning instances marked to be destroyed.
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
...
this is caused by d52d226e5b which caused log_val, pow_val, this_part
to be kept as float instead of the original algorithm which required
casting to int.
2 years ago