r14704 - gnucash/branches/remove-group - Mark a couple of functions as static.

David Hampton hampton at cvs.gnucash.org
Mon Aug 21 22:43:22 EDT 2006


Author: hampton
Date: 2006-08-21 22:43:21 -0400 (Mon, 21 Aug 2006)
New Revision: 14704
Trac: http://svn.gnucash.org/trac/changeset/14704

Modified:
   gnucash/branches/remove-group/ChangeLog
   gnucash/branches/remove-group/src/engine/Account.c
   gnucash/branches/remove-group/src/engine/Account.h
   gnucash/branches/remove-group/src/engine/SX-book-p.h
   gnucash/branches/remove-group/src/engine/SX-book.c
   gnucash/branches/remove-group/src/engine/SX-book.h
Log:
Mark a couple of functions as static.


Modified: gnucash/branches/remove-group/ChangeLog
===================================================================
--- gnucash/branches/remove-group/ChangeLog	2006-08-22 00:38:10 UTC (rev 14703)
+++ gnucash/branches/remove-group/ChangeLog	2006-08-22 02:43:21 UTC (rev 14704)
@@ -1,5 +1,9 @@
 2006-08-21  David Hampton  <hampton at employees.org>
 
+	* src/engine/Account.[ch]:
+	* src/engine/SX-book.[ch]:
+	* src/engine/SX-book-p.h: Mark a couple of functions as static.
+
 	* numerous: Initial removal of the engine Group.h, GroupP.h, and
 	Group.c files.  This completely removes the AccountGroup data
 	structure.

Modified: gnucash/branches/remove-group/src/engine/Account.c
===================================================================
--- gnucash/branches/remove-group/src/engine/Account.c	2006-08-22 00:38:10 UTC (rev 14703)
+++ gnucash/branches/remove-group/src/engine/Account.c	2006-08-22 02:43:21 UTC (rev 14704)
@@ -152,14 +152,14 @@
 /********************************************************************\
 \********************************************************************/
 
-Account * 
+static Account * 
 gnc_coll_get_root_account (QofCollection *col)
 {
   if (!col) return NULL;
   return qof_collection_get_data (col);
 }
 
-void
+static void
 gnc_coll_set_root_account (QofCollection *col, Account *root)
 {
   Account *old_root;

Modified: gnucash/branches/remove-group/src/engine/Account.h
===================================================================
--- gnucash/branches/remove-group/src/engine/Account.h	2006-08-22 00:38:10 UTC (rev 14703)
+++ gnucash/branches/remove-group/src/engine/Account.h	2006-08-22 02:43:21 UTC (rev 14704)
@@ -212,8 +212,6 @@
 gunichar gnc_get_account_separator (void);
 void gnc_set_account_separator (const gchar *separator);
 
-Account *gnc_coll_get_root_account(QofCollection *col);
-void gnc_coll_set_root_account(QofCollection *col, Account *root);
 Account *gnc_book_get_root_account(QofBook *book);
 void gnc_book_set_root_account(QofBook *book, Account *root);
 

Modified: gnucash/branches/remove-group/src/engine/SX-book-p.h
===================================================================
--- gnucash/branches/remove-group/src/engine/SX-book-p.h	2006-08-22 00:38:10 UTC (rev 14703)
+++ gnucash/branches/remove-group/src/engine/SX-book-p.h	2006-08-22 02:43:21 UTC (rev 14704)
@@ -49,7 +49,6 @@
 
 /* Associate the given template root account with a book */
 void gnc_book_set_template_root (QofBook *book, Account *templateRoot);
-void gnc_collection_set_template_root (QofCollection *col, Account *templateRoot);
 
 
 

Modified: gnucash/branches/remove-group/src/engine/SX-book.c
===================================================================
--- gnucash/branches/remove-group/src/engine/SX-book.c	2006-08-22 00:38:10 UTC (rev 14703)
+++ gnucash/branches/remove-group/src/engine/SX-book.c	2006-08-22 02:43:21 UTC (rev 14704)
@@ -52,7 +52,7 @@
 
 /* ====================================================================== */
 
-Account *
+static Account *
 gnc_collection_get_template_root( const QofCollection *col )
 {
   return qof_collection_get_data (col);
@@ -67,7 +67,7 @@
   return gnc_collection_get_template_root (col);
 }
 
-void
+static void
 gnc_collection_set_template_root (QofCollection *col,
                                   Account *templateRoot)
 {

Modified: gnucash/branches/remove-group/src/engine/SX-book.h
===================================================================
--- gnucash/branches/remove-group/src/engine/SX-book.h	2006-08-22 00:38:10 UTC (rev 14703)
+++ gnucash/branches/remove-group/src/engine/SX-book.h	2006-08-22 02:43:21 UTC (rev 14704)
@@ -49,7 +49,6 @@
 
 /** Returns the template group from the book. **/
 Account *gnc_book_get_template_root(QofBook *book);
-Account *gnc_collection_get_template_root(const QofCollection *col);
 
 /** @return The list of SXes which reference the given Account. Caller should free this list. **/
 GList* gnc_sx_get_sxes_referencing_account(QofBook *book, Account *acct);



More information about the gnucash-changes mailing list