r20343 - gnucash/trunk/src - Re-indentation of source code.
Christian Stimming
cstim at code.gnucash.org
Sat Feb 26 09:04:34 EST 2011
Author: cstim
Date: 2011-02-26 09:04:34 -0500 (Sat, 26 Feb 2011)
New Revision: 20343
Trac: http://svn.gnucash.org/trac/changeset/20343
Modified:
gnucash/trunk/src/app-utils/gnc-ui-util.c
gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c
gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c
gnucash/trunk/src/core-utils/gnc-main.c
gnucash/trunk/src/gnome-utils/dialog-totd.c
gnucash/trunk/src/gnome-utils/gnc-main-window.c
gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c
gnucash/trunk/src/libqof/qof/qofsession.c
Log:
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
Modified: gnucash/trunk/src/app-utils/gnc-ui-util.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-ui-util.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/app-utils/gnc-ui-util.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -485,15 +485,15 @@
return NULL;
/* tax_related && !code */
else
- /* Translators: This and the following strings appear on
- * the account tab if the Tax Info column is displayed,
- * i.e. if the user wants to record the tax form number
- * and location on that tax form which corresponds to this
- * gnucash account. For the US Income Tax support in
- * gnucash, each tax code that can be assigned to an
- * account generally corresponds to a specific line number
- * on a paper form and each form has a unique
- * identification (e.g., Form 1040, Schedule A). */
+ /* Translators: This and the following strings appear on
+ * the account tab if the Tax Info column is displayed,
+ * i.e. if the user wants to record the tax form number
+ * and location on that tax form which corresponds to this
+ * gnucash account. For the US Income Tax support in
+ * gnucash, each tax code that can be assigned to an
+ * account generally corresponds to a specific line number
+ * on a paper form and each form has a unique
+ * identification (e.g., Form 1040, Schedule A). */
return g_strdup (_("Tax-related but has no tax code"));
}
else /* with tax code */
@@ -676,8 +676,8 @@
* on a paper form and each form has a unique
* identification (e.g., Form 1040, Schedule A). */
return (sub_acct_tax_number == 0) ? g_strdup ("") :
- g_strdup_printf (_("(Tax-related subaccounts: %d)"),
- sub_acct_tax_number);
+ g_strdup_printf (_("(Tax-related subaccounts: %d)"),
+ sub_acct_tax_number);
}
else
return g_strdup ("");
Modified: gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c
===================================================================
--- gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -2890,8 +2890,8 @@
dbi_result_free( result );
g_ascii_dtostr( doublestr, sizeof(doublestr), testdouble );
querystr = g_strdup_printf( "INSERT INTO numtest VALUES (%" G_GINT64_FORMAT
- ", %" G_GUINT64_FORMAT ", %s)",
- testlonglong, testulonglong, doublestr );
+ ", %" G_GUINT64_FORMAT ", %s)",
+ testlonglong, testulonglong, doublestr );
result = dbi_conn_query( conn, querystr );
g_free( querystr );
if ( result == NULL )
Modified: gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c
===================================================================
--- gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -335,7 +335,7 @@
qof_session_ensure_all_data_loaded( sess );
err = qof_session_pop_error( sess );
do_test( err == ERR_SQL_DB_TOO_NEW, "DB Failed to flag too new" );
- cleanup:
+cleanup:
qbe = qof_session_get_backend( sess );
book = qof_session_get_book( sess );
qof_book_begin_edit( book );
Modified: gnucash/trunk/src/core-utils/gnc-main.c
===================================================================
--- gnucash/trunk/src/core-utils/gnc-main.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/core-utils/gnc-main.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -92,8 +92,8 @@
guint
gnc_get_long_version()
{
-return GNUCASH_MAJOR_VERSION * 1000000 +
- GNUCASH_MINOR_VERSION * 10000 +
- GNUCASH_MICRO_VERSION * 100 +
- GNUCASH_NANO_VERSION;
+ return GNUCASH_MAJOR_VERSION * 1000000 +
+ GNUCASH_MINOR_VERSION * 10000 +
+ GNUCASH_MICRO_VERSION * 100 +
+ GNUCASH_NANO_VERSION;
}
Modified: gnucash/trunk/src/gnome-utils/dialog-totd.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-totd.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/gnome-utils/dialog-totd.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -106,7 +106,7 @@
{
tip = g_strdup("");
}
- else
+ else
{
/* Use printf to do the substitution. Note that if there is no |
* in the tip, tip_components[1] will be the terminating NULL,
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -1921,7 +1921,7 @@
main_window_find_tab_event(window, page, &event_box);
if (old_page_long_name && old_page_name
- && g_strrstr(old_page_long_name, old_page_name) != NULL)
+ && g_strrstr(old_page_long_name, old_page_name) != NULL)
{
gchar *new_page_long_name;
gint string_position;
Modified: gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -295,7 +295,7 @@
{
log_gwen_gui =
#ifdef USING_GWENHYWFAR_GTK2_GUI
- Gtk2_Gui_new()
+ Gtk2_Gui_new()
#else
GWEN_Gui_new()
#endif
Modified: gnucash/trunk/src/libqof/qof/qofsession.c
===================================================================
--- gnucash/trunk/src/libqof/qof/qofsession.c 2011-02-26 13:04:37 UTC (rev 20342)
+++ gnucash/trunk/src/libqof/qof/qofsession.c 2011-02-26 14:04:34 UTC (rev 20343)
@@ -1114,8 +1114,8 @@
/* Check to see if this session is already open */
if (session->book_id)
{
- if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
- qof_session_push_error (session, ERR_BACKEND_LOCKED, NULL);
+ if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
+ qof_session_push_error (session, ERR_BACKEND_LOCKED, NULL);
LEAVE("push error book is already open ");
return;
}
@@ -1123,8 +1123,8 @@
/* seriously invalid */
if (!book_id)
{
- if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
- qof_session_push_error (session, ERR_BACKEND_BAD_URL, NULL);
+ if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
+ qof_session_push_error (session, ERR_BACKEND_BAD_URL, NULL);
LEAVE("push error missing book_id");
return;
}
@@ -1152,7 +1152,7 @@
g_free(session->book_id);
session->book_id = NULL;
if (ERR_BACKEND_NO_ERR == qof_session_get_error(session))
- qof_session_push_error (session, ERR_BACKEND_BAD_URL, NULL);
+ qof_session_push_error (session, ERR_BACKEND_BAD_URL, NULL);
LEAVE (" BAD: no backend: sess=%p book-id=%s",
session, book_id ? book_id : "(null)");
return;
@@ -1404,11 +1404,11 @@
}
if (!session->backend)
{
- if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
- {
- msg = g_strdup_printf("failed to load backend");
- qof_session_push_error(session, ERR_BACKEND_NO_HANDLER, msg);
- }
+ if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
+ {
+ msg = g_strdup_printf("failed to load backend");
+ qof_session_push_error(session, ERR_BACKEND_NO_HANDLER, msg);
+ }
goto leave;
}
}
@@ -1446,11 +1446,11 @@
}
else
{
- if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
- {
- msg = g_strdup_printf("failed to load backend");
- qof_session_push_error(session, ERR_BACKEND_NO_HANDLER, msg);
- }
+ if (ERR_BACKEND_NO_ERR != qof_session_get_error(session))
+ {
+ msg = g_strdup_printf("failed to load backend");
+ qof_session_push_error(session, ERR_BACKEND_NO_HANDLER, msg);
+ }
}
LEAVE("error -- No backend!");
leave:
More information about the gnucash-changes
mailing list