mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Re-indentation of source code.
This re-indentation was done using astyle-1.24 using the following options: astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19907 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
40c293bd24
commit
6dfd0f28f4
@ -46,7 +46,8 @@
|
||||
#define TABLE_NAME "slots"
|
||||
#define TABLE_VERSION 3
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
FRAME,
|
||||
LIST
|
||||
} context_t;
|
||||
@ -54,13 +55,16 @@ typedef enum {
|
||||
typedef struct
|
||||
{
|
||||
/*@ dependent @*/ GncSqlBackend* be;
|
||||
/*@ dependent @*/ const GncGUID* guid;
|
||||
/*@ dependent @*/
|
||||
const GncGUID* guid;
|
||||
gboolean is_ok;
|
||||
/*@ dependent @*/ KvpFrame* pKvpFrame;
|
||||
/*@ dependent @*/
|
||||
KvpFrame* pKvpFrame;
|
||||
KvpValueType value_type;
|
||||
GList *pList;
|
||||
context_t context;
|
||||
/*@ dependent @*/ KvpValue* pKvpValue;
|
||||
/*@ dependent @*/
|
||||
KvpValue* pKvpValue;
|
||||
GString* path;
|
||||
} slot_info_t;
|
||||
|
||||
|
@ -116,7 +116,8 @@ gnc_payment_dialog_invoice_changed(PaymentWindow *pw)
|
||||
* previously selected owner, make sure the right owner is
|
||||
* selected. */
|
||||
owner = gncOwnerGetEndOwner (gncInvoiceGetOwner (pw->invoice));
|
||||
if (pw->owner.owner.undefined == NULL || pw->owner.owner.undefined != owner->owner.undefined) {
|
||||
if (pw->owner.owner.undefined == NULL || pw->owner.owner.undefined != owner->owner.undefined)
|
||||
{
|
||||
gnc_payment_set_owner (pw, owner);
|
||||
}
|
||||
}
|
||||
@ -138,7 +139,8 @@ gnc_payment_dialog_owner_changed(PaymentWindow *pw)
|
||||
|
||||
/* The selected invoice has a different owner than the newly
|
||||
* selected owner, reset it */
|
||||
if (pw->invoice != NULL && !gncOwnerEqual(gncOwnerGetEndOwner(gncInvoiceGetOwner(pw->invoice)), &pw->owner)) {
|
||||
if (pw->invoice != NULL && !gncOwnerEqual(gncOwnerGetEndOwner(gncInvoiceGetOwner(pw->invoice)), &pw->owner))
|
||||
{
|
||||
pw->invoice = NULL;
|
||||
gnc_invoice_set_invoice(pw->invoice_choice, NULL);
|
||||
}
|
||||
|
@ -958,7 +958,8 @@ xaccTransFindOldCommonCurrency (Transaction *trans, QofBook *book)
|
||||
* it, or NULL if there is no currency more common than the
|
||||
* others -- or none at all.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
gnc_commodity *commodity;
|
||||
unsigned int count;
|
||||
} CommodityCount;
|
||||
|
@ -281,7 +281,8 @@ gboolean gnc_price_list_equal(PriceList *prices1, PriceList *prices2);
|
||||
typedef struct gnc_price_db_s GNCPriceDB;
|
||||
|
||||
/** return the pricedb associated with the book */
|
||||
/*@ dependent @*/ GNCPriceDB * gnc_pricedb_get_db(QofBook *book);
|
||||
/*@ dependent @*/
|
||||
GNCPriceDB * gnc_pricedb_get_db(QofBook *book);
|
||||
GNCPriceDB * gnc_collection_get_pricedb(QofCollection *col);
|
||||
|
||||
/** gnc_pricedb_destroy - destroy the given pricedb and unref all of
|
||||
|
@ -1025,7 +1025,8 @@ gnc_file_do_export(const char * filename)
|
||||
|
||||
io_err = qof_session_get_error (new_session);
|
||||
/* If the file exists and would be clobbered, ask the user */
|
||||
if (ERR_BACKEND_STORE_EXISTS == io_err) {
|
||||
if (ERR_BACKEND_STORE_EXISTS == io_err)
|
||||
{
|
||||
const char *format = _("The file %s already exists. "
|
||||
"Are you sure you want to overwrite it?");
|
||||
|
||||
@ -1241,7 +1242,8 @@ gnc_file_do_save_as (const char* filename)
|
||||
io_err = qof_session_get_error (new_session);
|
||||
|
||||
/* If the file exists and would be clobbered, ask the user */
|
||||
if (ERR_BACKEND_STORE_EXISTS == io_err) {
|
||||
if (ERR_BACKEND_STORE_EXISTS == io_err)
|
||||
{
|
||||
const char *format = _("The file %s already exists. "
|
||||
"Are you sure you want to overwrite it?");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user