From 54be97345b98da11676985db38b4eecbe6a556ef Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 19 May 2002 16:32:59 +0000 Subject: [PATCH] fix various tab->3 spaces, tab->8 spaces indentation problems git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6879 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/Account.c | 22 +++++++++++----------- src/engine/GNCId.h | 22 +++++++++++----------- src/engine/Transaction.c | 28 ++++++++++++++-------------- src/engine/gnc-book-p.h | 2 +- src/engine/gnc-book.c | 12 ++++++------ 5 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/engine/Account.c b/src/engine/Account.c index cb5b577503..afa5629645 100644 --- a/src/engine/Account.c +++ b/src/engine/Account.c @@ -993,10 +993,10 @@ xaccAccountRemoveSplit (Account *acc, Split *split) xaccTransBeginEdit (trans); xaccSplitSetAccount(split, NULL); - if (split->lot) - { - gnc_lot_remove_split (split->lot, split); - } + if (split->lot) + { + gnc_lot_remove_split (split->lot, split); + } xaccTransCommitEdit (trans); mark_account (acc); @@ -2053,15 +2053,15 @@ xaccAccountTypesCompatible (GNCAccountType parent_type, case RECEIVABLE: case PAYABLE: compatible = ((child_type == BANK) || - (child_type == CASH) || - (child_type == ASSET) || - (child_type == STOCK) || - (child_type == MUTUAL) || - (child_type == CURRENCY) || + (child_type == CASH) || + (child_type == ASSET) || + (child_type == STOCK) || + (child_type == MUTUAL) || + (child_type == CURRENCY) || (child_type == CREDIT) || (child_type == LIABILITY)|| (child_type == RECEIVABLE)|| - (child_type == PAYABLE)); + (child_type == PAYABLE)); break; case INCOME: case EXPENSE: @@ -2483,7 +2483,7 @@ xaccAccountSetReconcileChildrenStatus(Account *account, gboolean status) frame = kvp_frame_get_frame (account->kvp_data, "reconcile-info", NULL); kvp_frame_set_slot_nc (frame, - "include-children", + "include-children", status ? kvp_value_new_gint64 (status) : NULL); account->core_dirty = TRUE; xaccAccountCommitEdit (account); diff --git a/src/engine/GNCId.h b/src/engine/GNCId.h index b59b91b5ec..72ea4c7cb2 100644 --- a/src/engine/GNCId.h +++ b/src/engine/GNCId.h @@ -49,17 +49,17 @@ typedef const char * GNCIdType; typedef const char * GNCIdTypeConst; -#define GNC_ID_NONE NULL -#define GNC_ID_ACCOUNT "Account" -#define GNC_ID_BOOK "Book" -#define GNC_ID_FREQSPEC "FreqSpec" -#define GNC_ID_LOT "Lot" -#define GNC_ID_NULL "null" -#define GNC_ID_PRICE "Price" -#define GNC_ID_SPLIT "Split" -#define GNC_ID_SCHEDXACTION "SchedXaction" -#define GNC_ID_SESSION "Session" -#define GNC_ID_TRANS "Trans" +#define GNC_ID_NONE NULL +#define GNC_ID_ACCOUNT "Account" +#define GNC_ID_BOOK "Book" +#define GNC_ID_FREQSPEC "FreqSpec" +#define GNC_ID_LOT "Lot" +#define GNC_ID_NULL "null" +#define GNC_ID_PRICE "Price" +#define GNC_ID_SPLIT "Split" +#define GNC_ID_SCHEDXACTION "SchedXaction" +#define GNC_ID_SESSION "Session" +#define GNC_ID_TRANS "Trans" /* Return the type of an identifier. */ GNCIdType xaccGUIDType (const GUID * guid, GNCBook *book); diff --git a/src/engine/Transaction.c b/src/engine/Transaction.c index 129a4be1a3..6631f225ff 100644 --- a/src/engine/Transaction.c +++ b/src/engine/Transaction.c @@ -75,7 +75,7 @@ const char *void_former_val_str = "void-former-value"; #define PRICE_SIGFIGS 6 #define ISO_DATELENGTH 30 /* length of an iso 8601 date string. - * not sure, can't be bothered counting :) */ + * not sure, can't be bothered counting :) */ /* This static indicates the debugging module that this .o belongs to. */ static short module = MOD_ENGINE; @@ -2009,7 +2009,7 @@ xaccSplitDestroy (Split *split) xaccTransRemoveSplit (trans, split); } - /* Note: split is removed from lot when its removed from accoount */ + /* Note: split is removed from lot when its removed from accoount */ xaccAccountRemoveSplit (xaccSplitGetAccount(split), split); xaccAccountRecomputeBalance (xaccSplitGetAccount(split)); @@ -2215,18 +2215,18 @@ get_corr_account_split(Split *sa, Split **retval) current_value = xaccSplitGetValue(current_split); current_value_positive = gnc_numeric_positive_p(current_value); if((sa_value_positive && !current_value_positive) || - (!sa_value_positive && current_value_positive)) + (!sa_value_positive && current_value_positive)) { - if(seen_different) - { - *retval = NULL; - return TRUE; - } - else - { - seen_different = TRUE; - *retval = current_split; - } + if(seen_different) + { + *retval = NULL; + return TRUE; + } + else + { + seen_different = TRUE; + *retval = current_split; + } } } } @@ -2942,7 +2942,7 @@ xaccIsPeerSplit (Split *sa, Split *sb) void xaccTransVoid(Transaction *transaction, - const char *reason) + const char *reason) { kvp_frame *frame; kvp_value *val; diff --git a/src/engine/gnc-book-p.h b/src/engine/gnc-book-p.h index 7b06c8ee7d..40a8ecf5dd 100644 --- a/src/engine/gnc-book-p.h +++ b/src/engine/gnc-book-p.h @@ -47,7 +47,7 @@ struct gnc_book_struct /* The entity table associates the GUIDs of all the objects * belonging to this book, with their pointers to the respective - * objects. This allows a lookup of objects based on thier guid. + * objects. This allows a lookup of objects based on thier guid. */ GNCEntityTable *entity_table; diff --git a/src/engine/gnc-book.c b/src/engine/gnc-book.c index 2a7a9b9893..2025407fa4 100644 --- a/src/engine/gnc-book.c +++ b/src/engine/gnc-book.c @@ -320,8 +320,8 @@ book_sxns_mark_saved(GNCBook *book) { book->sx_notsaved = FALSE; g_list_foreach(gnc_book_get_schedxactions(book), - mark_sx_clean, - NULL); + mark_sx_clean, + NULL); return; } @@ -369,10 +369,10 @@ gnc_book_not_saved(GNCBook *book) return(xaccGroupNotSaved(book->topgroup) || gnc_pricedb_dirty(book->pricedb) - || - book_sxlist_notsaved(book) - || - gncObjectIsDirty (book)); + || + book_sxlist_notsaved(book) + || + gncObjectIsDirty (book)); } /* ====================================================================== */