r15161 - gnucash/trunk/src - Replace 'static inline' by 'static' for functions that are used by function pointers.
Christian Stimming
cstim at cvs.gnucash.org
Wed Nov 29 10:13:04 EST 2006
Author: cstim
Date: 2006-11-29 10:13:02 -0500 (Wed, 29 Nov 2006)
New Revision: 15161
Trac: http://svn.gnucash.org/trac/changeset/15161
Modified:
gnucash/trunk/src/backend/file/gnc-transaction-xml-v2.c
gnucash/trunk/src/business/business-core/file/gnc-invoice-xml-v2.c
gnucash/trunk/src/business/business-core/file/gnc-order-xml-v2.c
gnucash/trunk/src/business/business-core/gncAddress.c
gnucash/trunk/src/business/business-core/gncBillTerm.c
gnucash/trunk/src/business/business-core/gncCustomer.c
gnucash/trunk/src/business/business-core/gncEmployee.c
gnucash/trunk/src/business/business-core/gncEntry.c
gnucash/trunk/src/business/business-core/gncInvoice.c
gnucash/trunk/src/business/business-core/gncJob.c
gnucash/trunk/src/business/business-core/gncOrder.c
gnucash/trunk/src/business/business-core/gncTaxTable.c
gnucash/trunk/src/business/business-core/gncVendor.c
gnucash/trunk/src/engine/Account.c
gnucash/trunk/src/engine/SchedXaction.c
gnucash/trunk/src/engine/gnc-budget.c
gnucash/trunk/src/engine/gnc-commodity.c
gnucash/trunk/src/engine/gnc-lot.c
gnucash/trunk/src/engine/gnc-pricedb.c
Log:
Replace 'static inline' by 'static' for functions that are used by function pointers.
Modified: gnucash/trunk/src/backend/file/gnc-transaction-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-transaction-xml-v2.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/backend/file/gnc-transaction-xml-v2.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/file/gnc-invoice-xml-v2.c
===================================================================
--- gnucash/trunk/src/business/business-core/file/gnc-invoice-xml-v2.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/file/gnc-invoice-xml-v2.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/file/gnc-order-xml-v2.c
===================================================================
--- gnucash/trunk/src/business/business-core/file/gnc-order-xml-v2.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/file/gnc-order-xml-v2.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncAddress.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncAddress.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncAddress.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -254,14 +254,14 @@
qof_begin_edit (&addr->inst);
}
-static inline void gncAddressOnError (QofInstance *inst, QofBackendError errcode)
+static void gncAddressOnError (QofInstance *inst, QofBackendError errcode)
{
PERR("Address QofBackend Failure: %d", errcode);
}
-static inline void gncAddressOnDone (QofInstance *addr) { }
+static void gncAddressOnDone (QofInstance *addr) { }
-static inline void address_free (QofInstance *inst)
+static void address_free (QofInstance *inst)
{
GncAddress *addr = (GncAddress *) inst;
gncAddressFree (addr);
Modified: gnucash/trunk/src/business/business-core/gncBillTerm.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncBillTerm.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncBillTerm.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncCustomer.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncCustomer.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncCustomer.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncEmployee.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncEmployee.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncEmployee.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncEntry.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncEntry.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncEntry.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncInvoice.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncInvoice.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncInvoice.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -1445,14 +1445,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/trunk/src/business/business-core/gncJob.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncJob.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncJob.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncOrder.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncOrder.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncOrder.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncTaxTable.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncTaxTable.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncTaxTable.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/business/business-core/gncVendor.c
===================================================================
--- gnucash/trunk/src/business/business-core/gncVendor.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/business/business-core/gncVendor.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/engine/Account.c
===================================================================
--- gnucash/trunk/src/engine/Account.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/engine/Account.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/engine/SchedXaction.c
===================================================================
--- gnucash/trunk/src/engine/SchedXaction.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/engine/SchedXaction.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/engine/gnc-budget.c
===================================================================
--- gnucash/trunk/src/engine/gnc-budget.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/engine/gnc-budget.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -49,7 +49,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);
}
@@ -75,7 +75,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/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/engine/gnc-commodity.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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/trunk/src/engine/gnc-lot.c
===================================================================
--- gnucash/trunk/src/engine/gnc-lot.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/engine/gnc-lot.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -108,12 +108,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/trunk/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/trunk/src/engine/gnc-pricedb.c 2006-11-29 10:28:02 UTC (rev 15160)
+++ gnucash/trunk/src/engine/gnc-pricedb.c 2006-11-29 15:13:02 UTC (rev 15161)
@@ -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