From f5f8fb2c91673152b657bd30d91500d43ecfe016 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Wed, 2 Jan 2002 03:05:53 +0000 Subject: [PATCH] misc cleanup git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6467 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/postgres/PostgresBackend.h | 2 +- src/backend/postgres/account.c | 2 +- src/backend/postgres/account.h | 2 +- src/backend/postgres/checkpoint.h | 2 +- src/backend/postgres/events.h | 2 +- src/backend/postgres/price.c | 11 ++++------- src/backend/postgres/price.h | 2 +- src/backend/postgres/putil.h | 2 +- src/backend/postgres/txn.c | 2 +- src/backend/postgres/txn.h | 2 +- src/backend/postgres/txnmass.c | 2 +- src/backend/postgres/txnmass.h | 2 +- 12 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/backend/postgres/PostgresBackend.h b/src/backend/postgres/PostgresBackend.h index 244df3008d..0a25319294 100644 --- a/src/backend/postgres/PostgresBackend.h +++ b/src/backend/postgres/PostgresBackend.h @@ -27,7 +27,7 @@ * Implements the callbacks for the postgres backend. * * HISTORY: - * Copyright (c) 2000, 2001 Linas Vepstas + * Copyright (c) 2000, 2001 Linas Vepstas */ diff --git a/src/backend/postgres/account.c b/src/backend/postgres/account.c index 37473a6a2e..4d203ac839 100644 --- a/src/backend/postgres/account.c +++ b/src/backend/postgres/account.c @@ -1,6 +1,6 @@ /********************************************************************\ * account.c -- implements account handling for postgres backend * - * Copyright (c) 2000, 2001 Linas Vepstas * + * Copyright (c) 2000, 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * diff --git a/src/backend/postgres/account.h b/src/backend/postgres/account.h index 47944caa70..9c3838be09 100644 --- a/src/backend/postgres/account.h +++ b/src/backend/postgres/account.h @@ -1,6 +1,6 @@ /********************************************************************\ * account.h -- implements accounts for postgres backend * - * Copyright (c) 2000, 2001 Linas Vepstas * + * Copyright (c) 2000, 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * diff --git a/src/backend/postgres/checkpoint.h b/src/backend/postgres/checkpoint.h index 0803fa595a..0a22945be2 100644 --- a/src/backend/postgres/checkpoint.h +++ b/src/backend/postgres/checkpoint.h @@ -27,7 +27,7 @@ * Defines balance checkpoints * * HISTORY: - * Copyright (c) 2001 Linas Vepstas + * Copyright (c) 2001 Linas Vepstas */ diff --git a/src/backend/postgres/events.h b/src/backend/postgres/events.h index 2c0414aa15..3f0dec836b 100644 --- a/src/backend/postgres/events.h +++ b/src/backend/postgres/events.h @@ -27,7 +27,7 @@ * Implements the event handling callbacks for the postgres backend. * * HISTORY: - * Copyright (c) 2001 Linas Vepstas + * Copyright (c) 2001 Linas Vepstas */ diff --git a/src/backend/postgres/price.c b/src/backend/postgres/price.c index 6dc52596df..2112a2e78a 100644 --- a/src/backend/postgres/price.c +++ b/src/backend/postgres/price.c @@ -1,6 +1,6 @@ /********************************************************************\ * price.c -- implements price handling for the postgres backend * - * Copyright (c) 2001 Linas Vepstas * + * Copyright (c) 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * @@ -215,11 +215,8 @@ pgendStorePriceDBNoLock (PGBackend *be, GNCPriceDB *prdb) gnc_commodity_table *comtab; comtab = gnc_book_get_commodity_table (be->book); -printf ("duude comtab=%p book=%p session=%p sess-boo=%p\n", -comtab, be->book, be->session, -gnc_session_get_book(be->session)); - /* clear the marks on commodities -- we use this to mark + /* Clear the marks on commodities -- we use this to mark * the thing as 'already stored', avoiding redundant stores */ gnc_commodity_table_foreach_commodity (comtab, commodity_mark_cb, 0); @@ -236,7 +233,7 @@ pgendStorePriceDB (PGBackend *be, GNCPriceDB *prdb) ENTER ("be=%p, prdb=%p", be, prdb); if (!be || !prdb) return; - /* lock it up so that we store atomically */ + /* Lock it up so that we store atomically */ p = "BEGIN;\n" "LOCK TABLE gncPrice IN EXCLUSIVE MODE;\n"; SEND_QUERY (be,p, ); @@ -272,7 +269,7 @@ get_price_cb (PGBackend *be, PGresult *result, int j, gpointer data) gnc_commodity * modity; - /* first, lets see if we've already got this one */ + /* First, lets see if we've already got this one */ string_to_guid (DB_GET_VAL ("priceGuid", j), &guid); pr = gnc_price_lookup (&guid, be->book); diff --git a/src/backend/postgres/price.h b/src/backend/postgres/price.h index 5e98dc8af0..bfd18941b9 100644 --- a/src/backend/postgres/price.h +++ b/src/backend/postgres/price.h @@ -1,6 +1,6 @@ /********************************************************************\ * price.h -- implements price & commodity handling for pg backend * - * Copyright (c) 2000, 2001 Linas Vepstas * + * Copyright (c) 2000, 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * diff --git a/src/backend/postgres/putil.h b/src/backend/postgres/putil.h index 7d307158f5..b364ddc963 100644 --- a/src/backend/postgres/putil.h +++ b/src/backend/postgres/putil.h @@ -27,7 +27,7 @@ * Postgres backend utility macros * * HISTORY: - * Copyright (c) 2000, 2001 Linas Vepstas + * Copyright (c) 2000, 2001 Linas Vepstas * */ diff --git a/src/backend/postgres/txn.c b/src/backend/postgres/txn.c index 44165ad940..486204e216 100644 --- a/src/backend/postgres/txn.c +++ b/src/backend/postgres/txn.c @@ -1,6 +1,6 @@ /********************************************************************\ * txn.c -- implements transaction handlers for postgres backend * - * Copyright (c) 2000, 2001 Linas Vepstas * + * Copyright (c) 2000, 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * diff --git a/src/backend/postgres/txn.h b/src/backend/postgres/txn.h index e11b8588e9..a79b00832e 100644 --- a/src/backend/postgres/txn.h +++ b/src/backend/postgres/txn.h @@ -27,7 +27,7 @@ * Implements the transaction handling callbacks for the postgres backend. * * HISTORY: - * Copyright (c) 2000, 2001 Linas Vepstas + * Copyright (c) 2000, 2001 Linas Vepstas */ diff --git a/src/backend/postgres/txnmass.c b/src/backend/postgres/txnmass.c index 7061deed64..d0cb40c438 100644 --- a/src/backend/postgres/txnmass.c +++ b/src/backend/postgres/txnmass.c @@ -1,6 +1,6 @@ /********************************************************************\ * txnmass.c -- implements mass transaction fetch * - * Copyright (c) 2000, 2001 Linas Vepstas * + * Copyright (c) 2000, 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * diff --git a/src/backend/postgres/txnmass.h b/src/backend/postgres/txnmass.h index 4ef111e85b..f809ab5034 100644 --- a/src/backend/postgres/txnmass.h +++ b/src/backend/postgres/txnmass.h @@ -1,6 +1,6 @@ /********************************************************************\ * txnmass.h -- transaction mass retreival for the postgres backend * - * Copyright (c) 2001 Linas Vepstas * + * Copyright (c) 2001 Linas Vepstas * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as *