misc cleanup

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6467 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2002-01-02 03:05:53 +00:00
parent 2f1fd70039
commit f5f8fb2c91
12 changed files with 15 additions and 18 deletions

View File

@ -27,7 +27,7 @@
* Implements the callbacks for the postgres backend. * Implements the callbacks for the postgres backend.
* *
* HISTORY: * HISTORY:
* Copyright (c) 2000, 2001 Linas Vepstas * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org>
*/ */

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* account.c -- implements account handling for postgres backend * * account.c -- implements account handling for postgres backend *
* Copyright (c) 2000, 2001 Linas Vepstas * * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* account.h -- implements accounts for postgres backend * * account.h -- implements accounts for postgres backend *
* Copyright (c) 2000, 2001 Linas Vepstas * * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *

View File

@ -27,7 +27,7 @@
* Defines balance checkpoints * Defines balance checkpoints
* *
* HISTORY: * HISTORY:
* Copyright (c) 2001 Linas Vepstas * Copyright (c) 2001 Linas Vepstas <linas@linas.org>
*/ */

View File

@ -27,7 +27,7 @@
* Implements the event handling callbacks for the postgres backend. * Implements the event handling callbacks for the postgres backend.
* *
* HISTORY: * HISTORY:
* Copyright (c) 2001 Linas Vepstas * Copyright (c) 2001 Linas Vepstas <linas@linas.org>
*/ */

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* price.c -- implements price handling for the postgres backend * * price.c -- implements price handling for the postgres backend *
* Copyright (c) 2001 Linas Vepstas * * Copyright (c) 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * 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; gnc_commodity_table *comtab;
comtab = gnc_book_get_commodity_table (be->book); 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 */ * the thing as 'already stored', avoiding redundant stores */
gnc_commodity_table_foreach_commodity (comtab, commodity_mark_cb, 0); 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); ENTER ("be=%p, prdb=%p", be, prdb);
if (!be || !prdb) return; if (!be || !prdb) return;
/* lock it up so that we store atomically */ /* Lock it up so that we store atomically */
p = "BEGIN;\n" p = "BEGIN;\n"
"LOCK TABLE gncPrice IN EXCLUSIVE MODE;\n"; "LOCK TABLE gncPrice IN EXCLUSIVE MODE;\n";
SEND_QUERY (be,p, ); SEND_QUERY (be,p, );
@ -272,7 +269,7 @@ get_price_cb (PGBackend *be, PGresult *result, int j, gpointer data)
gnc_commodity * modity; 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); string_to_guid (DB_GET_VAL ("priceGuid", j), &guid);
pr = gnc_price_lookup (&guid, be->book); pr = gnc_price_lookup (&guid, be->book);

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* price.h -- implements price & commodity handling for pg backend * * price.h -- implements price & commodity handling for pg backend *
* Copyright (c) 2000, 2001 Linas Vepstas * * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *

View File

@ -27,7 +27,7 @@
* Postgres backend utility macros * Postgres backend utility macros
* *
* HISTORY: * HISTORY:
* Copyright (c) 2000, 2001 Linas Vepstas * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org>
* *
*/ */

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* txn.c -- implements transaction handlers for postgres backend * * txn.c -- implements transaction handlers for postgres backend *
* Copyright (c) 2000, 2001 Linas Vepstas * * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *

View File

@ -27,7 +27,7 @@
* Implements the transaction handling callbacks for the postgres backend. * Implements the transaction handling callbacks for the postgres backend.
* *
* HISTORY: * HISTORY:
* Copyright (c) 2000, 2001 Linas Vepstas * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org>
*/ */

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* txnmass.c -- implements mass transaction fetch * * txnmass.c -- implements mass transaction fetch *
* Copyright (c) 2000, 2001 Linas Vepstas * * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *

View File

@ -1,6 +1,6 @@
/********************************************************************\ /********************************************************************\
* txnmass.h -- transaction mass retreival for the postgres backend * * txnmass.h -- transaction mass retreival for the postgres backend *
* Copyright (c) 2001 Linas Vepstas * * Copyright (c) 2001 Linas Vepstas <linas@linas.org> *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *