name change of some routines

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@685 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-03-21 06:53:27 +00:00
parent 520a16a54a
commit 09853fd050
6 changed files with 25 additions and 25 deletions

View File

@ -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);
}
}
}

View File

@ -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 */

View File

@ -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);
}
}

View File

@ -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 */

View File

@ -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;

View File

@ -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++;