From 09853fd0509e194c937c04345fcffe7fd51e5337 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sat, 21 Mar 1998 06:53:27 +0000 Subject: [PATCH] name change of some routines git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@685 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/Account.c | 12 ++++++------ src/engine/Account.h | 4 ++-- src/engine/FileIO.c | 10 +++++----- src/engine/Group.c | 2 +- src/engine/QIFIO.c | 14 +++++++------- src/engine/Transaction.c | 8 ++++---- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/engine/Account.c b/src/engine/Account.c index 6f4688fb19..acd6df9f69 100644 --- a/src/engine/Account.c +++ b/src/engine/Account.c @@ -214,7 +214,7 @@ xaccGetAccountID (Account *acc) \********************************************************************/ void -xaccInsertSplit ( Account *acc, Split *split ) +xaccAccountInsertSplit ( Account *acc, Split *split ) { int i,j; int inserted = FALSE; @@ -277,7 +277,7 @@ xaccInsertSplit ( Account *acc, Split *split ) \********************************************************************/ void -xaccRemoveSplit ( Account *acc, Split *split ) +xaccAccountRemoveSplit ( Account *acc, Split *split ) { int i,j; @@ -459,8 +459,8 @@ xaccCheckDateOrder (Account * acc, Split *split ) /* take care of re-ordering, if necessary */ if( outOfOrder ) { - xaccRemoveSplit( acc, split ); - xaccInsertSplit( acc, split ); + xaccAccountRemoveSplit( acc, split ); + xaccAccountInsertSplit( acc, split ); return 1; } return 0; @@ -594,8 +594,8 @@ xaccMoveFarEnd (Split *split, Account *new_acc) /* remove the partner split from the old account */ acc = (Account *) (partner_split->acc); if (acc != new_acc) { - xaccRemoveSplit (acc, partner_split); - xaccInsertSplit (new_acc, partner_split); + xaccAccountRemoveSplit (acc, partner_split); + xaccAccountInsertSplit (new_acc, partner_split); } } } diff --git a/src/engine/Account.h b/src/engine/Account.h index 2b29998216..ea3bec4c46 100644 --- a/src/engine/Account.h +++ b/src/engine/Account.h @@ -70,8 +70,8 @@ void xaccAccountCommitEdit (Account *); int xaccGetAccountID (Account *); -void xaccInsertSplit (Account *, Split *); -void xaccRemoveSplit (Account *, Split *); +void xaccAccountInsertSplit (Account *, Split *); +void xaccAccountRemoveSplit (Account *, Split *); /* the following recompute the partial balances (stored with the transaction) * and the total balance, for this account */ diff --git a/src/engine/FileIO.c b/src/engine/FileIO.c index c850fc351b..6235f5ecb2 100644 --- a/src/engine/FileIO.c +++ b/src/engine/FileIO.c @@ -659,7 +659,7 @@ readTransaction( int fd, Account *acc, int token ) /* insert the split part of the transaction into * the credited account */ - if (peer_acc) xaccInsertSplit( peer_acc, &(trans->source_split) ); + if (peer_acc) xaccAccountInsertSplit( peer_acc, &(trans->source_split) ); /* next read the debit account number */ err = read( fd, &acc_id, sizeof(int) ); @@ -677,7 +677,7 @@ readTransaction( int fd, Account *acc, int token ) split = xaccMallocSplit (); xaccTransAppendSplit (trans, split); split -> acc = (struct _account *) peer_acc; - xaccInsertSplit (peer_acc, split); + xaccAccountInsertSplit (peer_acc, split); /* duplicate many of the attributes in the credit split */ split->damount = -num_shares; @@ -692,7 +692,7 @@ readTransaction( int fd, Account *acc, int token ) } else { /* Version 1 files did not do double-entry */ - xaccInsertSplit( acc, &(trans->source_split) ); + xaccAccountInsertSplit( acc, &(trans->source_split) ); } } else { /* else, read version-5 files */ Split *split; @@ -708,7 +708,7 @@ readTransaction( int fd, Account *acc, int token ) trans->source_split.parent = trans; /* then wire it into place */ - xaccInsertSplit( ((Account *) (trans->source_split.acc)), &(trans->source_split) ); + xaccAccountInsertSplit( ((Account *) (trans->source_split.acc)), &(trans->source_split) ); /* free the thing that the read returned */ split->acc = NULL; @@ -729,7 +729,7 @@ readTransaction( int fd, Account *acc, int token ) split = readSplit (fd, token); split->parent = trans; xaccTransAppendSplit( trans, split); - xaccInsertSplit( ((Account *) (split->acc)), split); + xaccAccountInsertSplit( ((Account *) (split->acc)), split); } } diff --git a/src/engine/Group.c b/src/engine/Group.c index 1c87178389..69baca579b 100644 --- a/src/engine/Group.c +++ b/src/engine/Group.c @@ -539,7 +539,7 @@ xaccMergeAccounts (AccountGroup *grp) acc_b->splits[k] = NULL; if (acc_b == (Account *) split->acc) split->acc = (struct _account *) acc_a; - xaccInsertSplit (acc_a, split); + xaccAccountInsertSplit (acc_a, split); } /* free the account structure itself */ diff --git a/src/engine/QIFIO.c b/src/engine/QIFIO.c index 54baf8ec69..136c153aa4 100644 --- a/src/engine/QIFIO.c +++ b/src/engine/QIFIO.c @@ -803,10 +803,10 @@ char * xaccReadQIFTransaction (int fd, Account *acc) * was specified. */ if (xfer_acc) { split->acc = (struct _account *) xfer_acc; - xaccInsertSplit (xfer_acc, split); + xaccAccountInsertSplit (xfer_acc, split); } else { split->acc = (struct _account *) acc; - xaccInsertSplit (acc, split); + xaccAccountInsertSplit (acc, split); } /* normally, the security account is pointed at by @@ -814,7 +814,7 @@ char * xaccReadQIFTransaction (int fd, Account *acc) * But, just in case its missing, avoid a core dump */ if (sub_acc) { trans->source_split.acc = (struct _account *) sub_acc; - xaccInsertSplit (sub_acc, split); + xaccAccountInsertSplit (sub_acc, split); } } else { @@ -826,10 +826,10 @@ char * xaccReadQIFTransaction (int fd, Account *acc) * main account gets it */ if (xfer_acc) { trans->source_split.acc = (struct _account *) xfer_acc; - xaccInsertSplit (xfer_acc, &(trans->source_split)); + xaccAccountInsertSplit (xfer_acc, &(trans->source_split)); } else { trans->source_split.acc = (struct _account *) acc; - xaccInsertSplit (acc, &(trans->source_split)); + xaccAccountInsertSplit (acc, &(trans->source_split)); } } @@ -842,12 +842,12 @@ char * xaccReadQIFTransaction (int fd, Account *acc) xaccTransAppendSplit (trans, split); } split->acc = (struct _account *) xfer_acc; - xaccInsertSplit (xfer_acc, split); + xaccAccountInsertSplit (xfer_acc, split); } /* the transaction itself appears as a credit */ trans->source_split.acc = (struct _account *) acc; - xaccInsertSplit (acc, &(trans->source_split)); + xaccAccountInsertSplit (acc, &(trans->source_split)); } return qifline; diff --git a/src/engine/Transaction.c b/src/engine/Transaction.c index e2bc8d2baa..3582ba1735 100644 --- a/src/engine/Transaction.c +++ b/src/engine/Transaction.c @@ -503,8 +503,8 @@ xaccTransSetDate (Transaction *trans, int day, int mon, int year) split = &(trans->source_split); acc = (Account *) split->acc; - xaccRemoveSplit (acc, split); - xaccInsertSplit (acc, split); + xaccAccountRemoveSplit (acc, split); + xaccAccountInsertSplit (acc, split); xaccRecomputeBalance (acc); if (trans->dest_splits) { @@ -512,8 +512,8 @@ xaccTransSetDate (Transaction *trans, int day, int mon, int year) split = trans->dest_splits[i]; while (split) { acc = (Account *) split->acc; - xaccRemoveSplit (acc, split); - xaccInsertSplit (acc, split); + xaccAccountRemoveSplit (acc, split); + xaccAccountInsertSplit (acc, split); xaccRecomputeBalance (acc); i++;