[Gnucash-changes] r14170 - gnucash/branches/misc-backend/src -
Trivial comments/cleanups.
Chris Shoemaker
chris at cvs.gnucash.org
Tue May 23 23:55:36 EDT 2006
Author: chris
Date: 2006-05-23 23:55:35 -0400 (Tue, 23 May 2006)
New Revision: 14170
Trac: http://svn.gnucash.org/trac/changeset/14170
Modified:
gnucash/branches/misc-backend/src/backend/postgres/Makefile.am
gnucash/branches/misc-backend/src/backend/postgres/PostgresBackend.c
gnucash/branches/misc-backend/src/engine/Account.c
gnucash/branches/misc-backend/src/engine/gnc-commodity.h
Log:
Trivial comments/cleanups.
Modified: gnucash/branches/misc-backend/src/backend/postgres/Makefile.am
===================================================================
--- gnucash/branches/misc-backend/src/backend/postgres/Makefile.am 2006-05-24 03:53:52 UTC (rev 14169)
+++ gnucash/branches/misc-backend/src/backend/postgres/Makefile.am 2006-05-24 03:55:35 UTC (rev 14170)
@@ -2,8 +2,17 @@
lib_LTLIBRARIES = libgnc-backend-postgres.la
+AM_CFLAGS = \
+ -I.. -I../.. \
+ -I../../engine \
+ -I${srcdir}/../.. \
+ -I${top_srcdir}/src/backend \
+ -I${top_srcdir}/src/engine \
+ ${PGSQL_CFLAGS} \
+ ${QOF_CFLAGS} \
+ ${GLIB_CFLAGS}
+
libgnc_backend_postgres_la_LDFLAGS = -module
-
libgnc_backend_postgres_la_LIBADD = ${PGSQL_LIBS} -lpq \
${top_builddir}/src/engine/libgncmod-engine.la \
${QOF_LIBS} \
@@ -91,14 +100,6 @@
SUFFIXES = .sql
-AM_CFLAGS = \
- -I.. -I${srcdir}/.. \
- -I../.. -I${srcdir}/../.. \
- -I../../engine -I${srcdir}/../../engine \
- ${PGSQL_CFLAGS} \
- ${QOF_CFLAGS} \
- ${GLIB_CFLAGS}
-
$(M4_SRC): table.m4
%-autogen.c: %-objects.m4 table.m4
Modified: gnucash/branches/misc-backend/src/backend/postgres/PostgresBackend.c
===================================================================
--- gnucash/branches/misc-backend/src/backend/postgres/PostgresBackend.c 2006-05-24 03:53:52 UTC (rev 14169)
+++ gnucash/branches/misc-backend/src/backend/postgres/PostgresBackend.c 2006-05-24 03:55:35 UTC (rev 14170)
@@ -253,7 +253,7 @@
/* This routine finds the commodity by parsing a string
* of the form NAMESPACE::MNEMONIC
*/
-
+/* FIXME: replace w/ gnc_commodity_table_lookup_unique */
gnc_commodity *
gnc_string_to_commodity (const char *str, QofBook *book)
{
@@ -264,7 +264,7 @@
comtab = gnc_book_get_commodity_table (book);
space = g_strdup(str);
- name = strchr (space, ':');
+ name = strchr (space, ':'); /* BUG */
if (!name)
{
Modified: gnucash/branches/misc-backend/src/engine/Account.c
===================================================================
--- gnucash/branches/misc-backend/src/engine/Account.c 2006-05-24 03:53:52 UTC (rev 14169)
+++ gnucash/branches/misc-backend/src/engine/Account.c 2006-05-24 03:55:35 UTC (rev 14170)
@@ -348,7 +348,7 @@
xaccAccountCommitEdit (Account *acc)
{
g_return_if_fail(acc);
- if(!qof_commit_edit(&acc->inst)) { return;}
+ if (!qof_commit_edit(&acc->inst)) return;
/* If marked for deletion, get rid of subaccounts first,
* and then the splits ... */
@@ -385,7 +385,7 @@
qof_collection_foreach(col, destroy_pending_splits_for_account, acc);
/* the lots should be empty by now */
- for (lp=acc->lots; lp; lp=lp->next)
+ for (lp = acc->lots; lp; lp = lp->next)
{
GNCLot *lot = lp->data;
gnc_lot_destroy (lot);
Modified: gnucash/branches/misc-backend/src/engine/gnc-commodity.h
===================================================================
--- gnucash/branches/misc-backend/src/engine/gnc-commodity.h 2006-05-24 03:53:52 UTC (rev 14169)
+++ gnucash/branches/misc-backend/src/engine/gnc-commodity.h 2006-05-24 03:55:35 UTC (rev 14170)
@@ -34,7 +34,7 @@
handling and identification system (GUID's, Entities, etc.)
that the other parts of GnuCash use. The API really should be
ported over. This would allow us to get rid of the
- commodity table reoutines defined below.
+ commodity table routines defined below.
@{ */
/** @file gnc-commodity.h
More information about the gnucash-changes
mailing list