r15172 - gnucash/branches/2.0 - Replace 'static inline' by 'static' for functions that are used by

Derek Atkins warlord at cvs.gnucash.org
Sat Dec 2 21:02:14 EST 2006


Author: warlord
Date: 2006-12-02 21:02:11 -0500 (Sat, 02 Dec 2006)
New Revision: 15172
Trac: http://svn.gnucash.org/trac/changeset/15172

Modified:
   gnucash/branches/2.0/
   gnucash/branches/2.0/ChangeLog
   gnucash/branches/2.0/src/backend/file/gnc-transaction-xml-v2.c
   gnucash/branches/2.0/src/business/business-core/file/gnc-invoice-xml-v2.c
   gnucash/branches/2.0/src/business/business-core/file/gnc-order-xml-v2.c
   gnucash/branches/2.0/src/business/business-core/gncBillTerm.c
   gnucash/branches/2.0/src/business/business-core/gncCustomer.c
   gnucash/branches/2.0/src/business/business-core/gncEmployee.c
   gnucash/branches/2.0/src/business/business-core/gncEntry.c
   gnucash/branches/2.0/src/business/business-core/gncInvoice.c
   gnucash/branches/2.0/src/business/business-core/gncJob.c
   gnucash/branches/2.0/src/business/business-core/gncOrder.c
   gnucash/branches/2.0/src/business/business-core/gncTaxTable.c
   gnucash/branches/2.0/src/business/business-core/gncVendor.c
   gnucash/branches/2.0/src/engine/Account.c
   gnucash/branches/2.0/src/engine/SchedXaction.c
   gnucash/branches/2.0/src/engine/gnc-budget.c
   gnucash/branches/2.0/src/engine/gnc-commodity.c
   gnucash/branches/2.0/src/engine/gnc-lot.c
   gnucash/branches/2.0/src/engine/gnc-pricedb.c
Log:
	Replace 'static inline' by 'static' for functions that are used by
	function pointers.  Fixes some compiler issues when building without
	certain optimizations.

Merge from r15161



Property changes on: gnucash/branches/2.0
___________________________________________________________________
Name: svk:merge
   - 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:13656
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282
   + 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:13657
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282

Modified: gnucash/branches/2.0/ChangeLog
===================================================================
--- gnucash/branches/2.0/ChangeLog	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/ChangeLog	2006-12-03 02:02:11 UTC (rev 15172)
@@ -1,3 +1,9 @@
+2006-11-29  Christian Stimming  <stimming at tuhh.de>
+
+	Replace 'static inline' by 'static' for functions that are used by
+	function pointers.  Fixes some compiler issues when building without
+	certain optimizations.
+
 2006-11-20  Derek Atkins  <derek at ihtfp.com>
 
 	* src/import-export/qif-import/qif-parse.scm:

Modified: gnucash/branches/2.0/src/backend/file/gnc-transaction-xml-v2.c
===================================================================
--- gnucash/branches/2.0/src/backend/file/gnc-transaction-xml-v2.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/backend/file/gnc-transaction-xml-v2.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -444,7 +444,7 @@
     return TRUE;
 }
 
-static inline gboolean
+static gboolean
 trn_id_handler(xmlNodePtr node, gpointer trans_pdata)
 {
     struct trans_pdata *pdata = trans_pdata;

Modified: gnucash/branches/2.0/src/business/business-core/file/gnc-invoice-xml-v2.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/file/gnc-invoice-xml-v2.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/file/gnc-invoice-xml-v2.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -191,7 +191,7 @@
   return TRUE;
 }
 
-static inline gboolean
+static gboolean
 invoice_guid_handler (xmlNodePtr node, gpointer invoice_pdata)
 {
     struct invoice_pdata *pdata = invoice_pdata;

Modified: gnucash/branches/2.0/src/business/business-core/file/gnc-order-xml-v2.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/file/gnc-order-xml-v2.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/file/gnc-order-xml-v2.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -137,7 +137,7 @@
   return TRUE;
 }
 
-static inline gboolean
+static gboolean
 order_guid_handler (xmlNodePtr node, gpointer order_pdata)
 {
     struct order_pdata *pdata = order_pdata;

Modified: gnucash/branches/2.0/src/business/business-core/gncBillTerm.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncBillTerm.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncBillTerm.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -406,13 +406,13 @@
   PERR("BillTerm QofBackend Failure: %d", errcode);
 }
 
-static inline void bill_free (QofInstance *inst)
+static void bill_free (QofInstance *inst)
 {
   GncBillTerm *term = (GncBillTerm *) inst;
   gncBillTermFree(term);
 }
 
-static inline void on_done (QofInstance *inst) {}
+static void on_done (QofInstance *inst) {}
 
 void gncBillTermCommitEdit (GncBillTerm *term)
 {

Modified: gnucash/branches/2.0/src/business/business-core/gncCustomer.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncCustomer.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncCustomer.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -365,19 +365,19 @@
   qof_begin_edit (&cust->inst);
 }
 
-static inline void gncCustomerOnError (QofInstance *inst, QofBackendError errcode)
+static void gncCustomerOnError (QofInstance *inst, QofBackendError errcode)
 {
   PERR("Customer QofBackend Failure: %d", errcode);
 }
 
-static inline void gncCustomerOnDone (QofInstance *inst)
+static void gncCustomerOnDone (QofInstance *inst)
 {
   GncCustomer *cust = (GncCustomer *) inst;
   gncAddressClearDirty (cust->addr);
   gncAddressClearDirty (cust->shipaddr);
 }
 
-static inline void cust_free (QofInstance *inst)
+static void cust_free (QofInstance *inst)
 {
   GncCustomer *cust = (GncCustomer *) inst;
   gncCustomerFree (cust);

Modified: gnucash/branches/2.0/src/business/business-core/gncEmployee.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncEmployee.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncEmployee.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -344,18 +344,18 @@
   QOF_BEGIN_EDIT (&employee->inst);
 }
 
-static inline void gncEmployeeOnError (QofInstance *employee, QofBackendError errcode)
+static void gncEmployeeOnError (QofInstance *employee, QofBackendError errcode)
 {
   PERR("Employee QofBackend Failure: %d", errcode);
 }
 
-static inline void gncEmployeeOnDone (QofInstance *inst)
+static void gncEmployeeOnDone (QofInstance *inst)
 {
   GncEmployee *employee = (GncEmployee *) inst;
   gncAddressClearDirty (employee->addr);
 }
 
-static inline void emp_free (QofInstance *inst)
+static void emp_free (QofInstance *inst)
 {
   GncEmployee *employee = (GncEmployee *) inst;
   gncEmployeeFree (employee);

Modified: gnucash/branches/2.0/src/business/business-core/gncEntry.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncEntry.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncEntry.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -1169,14 +1169,14 @@
   QOF_BEGIN_EDIT (&entry->inst);
 }
 
-static inline void gncEntryOnError (QofInstance *entry, QofBackendError errcode)
+static void gncEntryOnError (QofInstance *entry, QofBackendError errcode)
 {
   PERR("Entry QofBackend Failure: %d", errcode);
 }
 
-static inline void gncEntryOnDone (QofInstance *inst) {}
+static void gncEntryOnDone (QofInstance *inst) {}
 
-static inline void entry_free (QofInstance *inst)
+static void entry_free (QofInstance *inst)
 {
   GncEntry *entry = (GncEntry *)inst;
   gncEntryFree (entry);

Modified: gnucash/branches/2.0/src/business/business-core/gncInvoice.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncInvoice.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncInvoice.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -1440,14 +1440,14 @@
   QOF_BEGIN_EDIT (&invoice->inst);
 }
 
-static inline void gncInvoiceOnError (QofInstance *inst, QofBackendError errcode)
+static void gncInvoiceOnError (QofInstance *inst, QofBackendError errcode)
 {
   PERR("Invoice QofBackend Failure: %d", errcode);
 }
 
-static inline void gncInvoiceOnDone (QofInstance *invoice) { }
+static void gncInvoiceOnDone (QofInstance *invoice) { }
 
-static inline void invoice_free (QofInstance *inst)
+static void invoice_free (QofInstance *inst)
 {
   GncInvoice *invoice = (GncInvoice *) inst;
   gncInvoiceFree (invoice);

Modified: gnucash/branches/2.0/src/business/business-core/gncJob.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncJob.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncJob.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -267,13 +267,13 @@
   PERR("Job QofBackend Failure: %d", errcode);
 }
 
-static inline void job_free (QofInstance *inst)
+static void job_free (QofInstance *inst)
 {
   GncJob *job = (GncJob *)inst;
   gncJobFree (job);
 }
 
-static inline void gncJobOnDone (QofInstance *qof) { }
+static void gncJobOnDone (QofInstance *qof) { }
 
 void gncJobCommitEdit (GncJob *job)
 {

Modified: gnucash/branches/2.0/src/business/business-core/gncOrder.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncOrder.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncOrder.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -336,14 +336,14 @@
   qof_begin_edit(&order->inst);
 }
 
-static inline void gncOrderOnError (QofInstance *order, QofBackendError errcode)
+static void gncOrderOnError (QofInstance *order, QofBackendError errcode)
 {
   PERR("Order QofBackend Failure: %d", errcode);
 }
 
-static inline void gncOrderOnDone (QofInstance *order) {}
+static void gncOrderOnDone (QofInstance *order) {}
 
-static inline void order_free (QofInstance *inst)
+static void order_free (QofInstance *inst)
 {
   GncOrder *order = (GncOrder *) inst;
   gncOrderFree (order);

Modified: gnucash/branches/2.0/src/business/business-core/gncTaxTable.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncTaxTable.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncTaxTable.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -508,14 +508,14 @@
   QOF_BEGIN_EDIT (&table->inst);
 }
 
-static inline void gncTaxTableOnError (QofInstance *inst, QofBackendError errcode)
+static void gncTaxTableOnError (QofInstance *inst, QofBackendError errcode)
 {
   PERR("TaxTable QofBackend Failure: %d", errcode);
 }
 
-static inline void gncTaxTableOnDone (QofInstance *inst) {}
+static void gncTaxTableOnDone (QofInstance *inst) {}
 
-static inline void table_free (QofInstance *inst)
+static void table_free (QofInstance *inst)
 {
   GncTaxTable *table = (GncTaxTable *) inst;
   gncTaxTableFree (table);

Modified: gnucash/branches/2.0/src/business/business-core/gncVendor.c
===================================================================
--- gnucash/branches/2.0/src/business/business-core/gncVendor.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/business/business-core/gncVendor.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -422,18 +422,18 @@
   QOF_BEGIN_EDIT (&vendor->inst);
 }
 
-static inline void gncVendorOnError (QofInstance *vendor, QofBackendError errcode)
+static void gncVendorOnError (QofInstance *vendor, QofBackendError errcode)
 {
   PERR("Vendor QofBackend Failure: %d", errcode);
 }
 
-static inline void gncVendorOnDone (QofInstance *inst)
+static void gncVendorOnDone (QofInstance *inst)
 {
   GncVendor *vendor = (GncVendor *) inst;
   gncAddressClearDirty (vendor->addr);
 }
 
-static inline void vendor_free (QofInstance *inst)
+static void vendor_free (QofInstance *inst)
 {
   GncVendor *vendor = (GncVendor *) inst;
   gncVendorFree (vendor);

Modified: gnucash/branches/2.0/src/engine/Account.c
===================================================================
--- gnucash/branches/2.0/src/engine/Account.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/engine/Account.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -315,18 +315,18 @@
 	qof_begin_edit(&acc->inst);
 }
 
-static inline void on_done(QofInstance *inst) 
+static void on_done(QofInstance *inst) 
 {
     /* old event style */
     qof_event_gen (&inst->entity, QOF_EVENT_MODIFY, NULL);
 }
 
-static inline void on_err (QofInstance *inst, QofBackendError errcode)
+static void on_err (QofInstance *inst, QofBackendError errcode)
 {
   PERR("commit error: %d", errcode);
 }
 
-static inline void acc_free (QofInstance *inst)
+static void acc_free (QofInstance *inst)
 {
   Account *acc = (Account *) inst;
   xaccGroupRemoveAccount(acc->parent, acc);

Modified: gnucash/branches/2.0/src/engine/SchedXaction.c
===================================================================
--- gnucash/branches/2.0/src/engine/SchedXaction.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/engine/SchedXaction.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -187,12 +187,12 @@
   qof_begin_edit (&sx->inst);
 }
 
-static inline void commit_err (QofInstance *inst, QofBackendError errcode)
+static void commit_err (QofInstance *inst, QofBackendError errcode)
 {
   PERR ("Failed to commit: %d", errcode);
 }
 
-static inline void noop (QofInstance *inst) {}
+static void noop (QofInstance *inst) {}
 
 void
 gnc_sx_commit_edit (SchedXaction *sx)

Modified: gnucash/branches/2.0/src/engine/gnc-budget.c
===================================================================
--- gnucash/branches/2.0/src/engine/gnc-budget.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/engine/gnc-budget.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -46,7 +46,7 @@
     guint  num_periods;
 };
 
-static inline void commit_err (QofInstance *inst, QofBackendError errcode)
+static void commit_err (QofInstance *inst, QofBackendError errcode)
 {
   PERR ("Failed to commit: %d", errcode);
 }
@@ -72,7 +72,7 @@
     g_free(budget);
 }
 
-static inline void noop (QofInstance *inst) {}
+static void noop (QofInstance *inst) {}
 
 static void
 gnc_budget_begin_edit(GncBudget *bgt)

Modified: gnucash/branches/2.0/src/engine/gnc-commodity.c
===================================================================
--- gnucash/branches/2.0/src/engine/gnc-commodity.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/engine/gnc-commodity.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -476,12 +476,12 @@
   qof_begin_edit(&cm->inst);
 }
 
-static inline void commit_err (QofInstance *inst, QofBackendError errcode)
+static void commit_err (QofInstance *inst, QofBackendError errcode)
 {
   PERR ("Failed to commit: %d", errcode);
 }
 
-static inline void noop (QofInstance *inst) {}
+static void noop (QofInstance *inst) {}
 
 void
 gnc_commodity_commit_edit (gnc_commodity *cm)

Modified: gnucash/branches/2.0/src/engine/gnc-lot.c
===================================================================
--- gnucash/branches/2.0/src/engine/gnc-lot.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/engine/gnc-lot.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -107,12 +107,12 @@
   qof_begin_edit(&lot->inst);
 }
 
-static inline void commit_err (QofInstance *inst, QofBackendError errcode)
+static void commit_err (QofInstance *inst, QofBackendError errcode)
 {
   PERR ("Failed to commit: %d", errcode);
 }
 
-static inline void noop (QofInstance *inst) {}
+static void noop (QofInstance *inst) {}
 
 void
 gnc_lot_commit_edit (GNCLot *lot)

Modified: gnucash/branches/2.0/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/branches/2.0/src/engine/gnc-pricedb.c	2006-12-03 02:01:54 UTC (rev 15171)
+++ gnucash/branches/2.0/src/engine/gnc-pricedb.c	2006-12-03 02:02:11 UTC (rev 15172)
@@ -142,12 +142,12 @@
   QOF_BEGIN_EDIT (&p->inst);
 }
 
-static inline void commit_err (QofInstance *inst, QofBackendError errcode)
+static void commit_err (QofInstance *inst, QofBackendError errcode)
 {
   PERR ("Failed to commit: %d", errcode);
 }
 
-static inline void noop (QofInstance *inst) {}
+static void noop (QofInstance *inst) {}
 
 void
 gnc_price_commit_edit (GNCPrice *p)



More information about the gnucash-changes mailing list