mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Get gnucash to build properly with the new QOF changes (0.6.4+)
* src/backend/file/sixtp-utils.c: use QOF_SCANF_LLD to read 64-bit numbers. * src/gnome-utils/QuickFill.c: * src/engine/gnc-pricedb.c: * src/engine/Transaction.c: * src/engine/gnc-commodity.c: convert gnc_string_cache* APIs to CACHE_* APIs. * src/engine/Account.c: Properly convert usage of SAFE_STRCMP() to safe_strcmp() * src/engine/kvp-scm.c: #include <qof.h> instead of <kvp_frame.h> * src/engine/gnc-engine.c: Update the method used to shutdown QOF. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13765 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -242,8 +242,8 @@ xaccInitTransaction (Transaction * trans, QofBook *book)
|
||||
{
|
||||
ENTER ("trans=%p", trans);
|
||||
/* Fill in some sane defaults */
|
||||
trans->num = gnc_string_cache_insert("");
|
||||
trans->description = gnc_string_cache_insert("");
|
||||
trans->num = CACHE_INSERT("");
|
||||
trans->description = CACHE_INSERT("");
|
||||
|
||||
trans->common_currency = NULL;
|
||||
trans->splits = NULL;
|
||||
@@ -358,8 +358,8 @@ xaccDupeTransaction (const Transaction *t)
|
||||
|
||||
trans = g_new0 (Transaction, 1);
|
||||
|
||||
trans->num = gnc_string_cache_insert (t->num);
|
||||
trans->description = gnc_string_cache_insert (t->description);
|
||||
trans->num = CACHE_INSERT (t->num);
|
||||
trans->description = CACHE_INSERT (t->description);
|
||||
|
||||
trans->splits = g_list_copy (t->splits);
|
||||
for (node = trans->splits; node; node = node->next)
|
||||
@@ -405,8 +405,8 @@ xaccTransClone (const Transaction *t)
|
||||
|
||||
trans->date_entered = t->date_entered;
|
||||
trans->date_posted = t->date_posted;
|
||||
trans->num = gnc_string_cache_insert (t->num);
|
||||
trans->description = gnc_string_cache_insert (t->description);
|
||||
trans->num = CACHE_INSERT (t->num);
|
||||
trans->description = CACHE_INSERT (t->description);
|
||||
trans->common_currency = t->common_currency;
|
||||
trans->version = t->version;
|
||||
trans->version_check = t->version_check;
|
||||
@@ -458,8 +458,8 @@ xaccFreeTransaction (Transaction *trans)
|
||||
trans->splits = NULL;
|
||||
|
||||
/* free up transaction strings */
|
||||
gnc_string_cache_remove(trans->num);
|
||||
gnc_string_cache_remove(trans->description);
|
||||
CACHE_REMOVE(trans->num);
|
||||
CACHE_REMOVE(trans->description);
|
||||
|
||||
/* Just in case someone looks up freed memory ... */
|
||||
trans->num = (char *) 1;
|
||||
|
||||
Reference in New Issue
Block a user