r15936 - gnucash/trunk/src/engine - Replace a function name mapping with the real function call.
David Hampton
hampton at cvs.gnucash.org
Thu Apr 19 01:09:35 EDT 2007
Author: hampton
Date: 2007-04-19 01:09:34 -0400 (Thu, 19 Apr 2007)
New Revision: 15936
Trac: http://svn.gnucash.org/trac/changeset/15936
Modified:
gnucash/trunk/src/engine/AccountP.h
gnucash/trunk/src/engine/Period.c
gnucash/trunk/src/engine/cap-gains.c
gnucash/trunk/src/engine/test-core/test-engine-stuff.c
Log:
Replace a function name mapping with the real function call.
Modified: gnucash/trunk/src/engine/AccountP.h
===================================================================
--- gnucash/trunk/src/engine/AccountP.h 2007-04-19 04:19:03 UTC (rev 15935)
+++ gnucash/trunk/src/engine/AccountP.h 2007-04-19 05:09:34 UTC (rev 15936)
@@ -40,8 +40,6 @@
#define XACC_ACCOUNT_P_H
#include "Account.h"
-#include "gnc-commodity.h"
-#include "gnc-engine.h"
/** STRUCTS *********************************************************/
@@ -69,9 +67,4 @@
/* Register Accounts with the engine */
gboolean xaccAccountRegister (void);
-/** killed for now, need to resurect this or something similar
- * * for transactional/dirty kvp. Later. Right now a place holder
- * */
-#define xaccAccountSetSlots_nc(A,S) qof_instance_set_slots(QOF_INSTANCE(A),S)
-
#endif /* XACC_ACCOUNT_P_H */
Modified: gnucash/trunk/src/engine/Period.c
===================================================================
--- gnucash/trunk/src/engine/Period.c 2007-04-19 04:19:03 UTC (rev 15935)
+++ gnucash/trunk/src/engine/Period.c 2007-04-19 05:09:34 UTC (rev 15936)
@@ -668,7 +668,7 @@
kvp_frame_set_guid (cwd, "/book/prev-acct", xaccAccountGetGUID (candidate));
kvp_frame_set_guid (cwd, "/book/prev-book", qof_book_get_guid(closed_book));
- xaccAccountSetSlots_nc (twin, twin->inst.kvp_data);
+ qof_instance_set_slots(QOF_INSTANCE(twin), twin->inst.kvp_data);
/* -------------------------------- */
/* Add KVP to closed account, indicating where
@@ -678,7 +678,7 @@
kvp_frame_set_guid (cwd, "/book/next-book", qof_book_get_guid(open_book));
kvp_frame_set_guid (cwd, "/book/next-acct", xaccAccountGetGUID (twin));
- xaccAccountSetSlots_nc (candidate, candidate->inst.kvp_data);
+ qof_instance_set_slots(QOF_INSTANCE(candidate), candidate->inst.kvp_data);
/* -------------------------------- */
/* We need to carry a balance on any account that is not
Modified: gnucash/trunk/src/engine/cap-gains.c
===================================================================
--- gnucash/trunk/src/engine/cap-gains.c 2007-04-19 04:19:03 UTC (rev 15935)
+++ gnucash/trunk/src/engine/cap-gains.c 2007-04-19 05:09:34 UTC (rev 15936)
@@ -285,7 +285,7 @@
xaccAccountBeginEdit (acc);
vvv = kvp_value_new_guid (xaccAccountGetGUID (gain_acct));
kvp_frame_set_slot_nc (cwd, cur_name, vvv);
- xaccAccountSetSlots_nc (acc, acc->inst.kvp_data);
+ qof_instance_set_slots(QOF_INSTANCE(acc), acc->inst.kvp_data);
xaccAccountCommitEdit (acc);
}
@@ -352,7 +352,7 @@
vvv = kvp_value_new_guid (xaccAccountGetGUID (gain_acct));
kvp_frame_set_slot_nc (cwd, cur_name, vvv);
- xaccAccountSetSlots_nc (acc, acc->inst.kvp_data);
+ qof_instance_set_slots(QOF_INSTANCE(acc), acc->inst.kvp_data);
xaccAccountCommitEdit (acc);
}
Modified: gnucash/trunk/src/engine/test-core/test-engine-stuff.c
===================================================================
--- gnucash/trunk/src/engine/test-core/test-engine-stuff.c 2007-04-19 04:19:03 UTC (rev 15935)
+++ gnucash/trunk/src/engine/test-core/test-engine-stuff.c 2007-04-19 05:09:34 UTC (rev 15936)
@@ -1200,7 +1200,7 @@
xaccAccountSetCommodity(ret, get_random_commodity(book));
- xaccAccountSetSlots_nc(ret, get_random_kvp_frame());
+ qof_instance_set_slots(QOF_INSTANCE(ret), get_random_kvp_frame());
root = gnc_book_get_root_account (book);
if (!root)
@@ -1233,7 +1233,7 @@
xaccAccountSetCommodity (account, get_random_commodity(book));
- xaccAccountSetSlots_nc (account, get_random_kvp_frame());
+ qof_instance_set_slots(QOF_INSTANCE(account), get_random_kvp_frame());
xaccAccountCommitEdit (account);
}
More information about the gnucash-changes
mailing list