mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 20:30:45 -06:00
Use internal extern "C" { ... } for C++
- removes warnings compiling swig engine ... [ 10%] Generating swig-engine.cpp .../libgnucash/engine/engine-helpers.h:31: Warning 313: Unrecognized extern type "C++". .../libgnucash/engine/gnc-date.h:83: Warning 313: Unrecognized extern type "C++". .../libgnucash/engine/qofquery.h:90: Warning 302: Identifier 'QofQuery' redefined (ignored), .../libgnucash/engine/gnc-option.hpp:55: Warning 302: previous definition of 'QofQuery'. .../libgnucash/engine/gnc-commodity.h:56: Warning 313: Unrecognized extern type "C++". .../libgnucash/engine/gncBusiness.h:40: Warning 313: Unrecognized extern type "C++". .../libgnucash/engine/gncEntry.h:37: Warning 313: Unrecognized extern type "C++".
This commit is contained in:
1 parent
062f3fb19d
commit
1cec0cb3f3
319 files changed
+861
-712
No files matched your search
@@ -26,8 +26,6 @@
|
||||
* restoring data to/from an SQL db
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -40,7 +38,6 @@ extern "C"
|
||||
#if defined( S_SPLINT_S )
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -29,14 +29,11 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include "gnc-engine.h"
|
||||
|
||||
#include "gncAddress.h"
|
||||
}
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
* restoring data to/from an SQL database
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -39,7 +37,6 @@ extern "C"
|
||||
#include "gncBillTermP.h"
|
||||
#include "gncInvoice.h"
|
||||
#include "qof.h"
|
||||
}
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include "qof.h"
|
||||
@@ -40,7 +38,6 @@ extern "C"
|
||||
#if defined( S_SPLINT_S )
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
* restoring data to/from an SQL db
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -39,7 +37,6 @@ extern "C"
|
||||
#if defined( S_SPLINT_S )
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -26,15 +26,12 @@
|
||||
* restoring data to/from an SQL db
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qof.h"
|
||||
#include "gnc-commodity.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -39,7 +37,6 @@ extern "C"
|
||||
#include "gncBillTermP.h"
|
||||
#include "gncCustomerP.h"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -38,7 +36,6 @@ extern "C"
|
||||
|
||||
#include "gnc-commodity.h"
|
||||
#include "gncEmployeeP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -40,7 +38,6 @@ extern "C"
|
||||
#include "gncOrderP.h"
|
||||
#include "gncInvoiceP.h"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
* restoring data to/from an SQL database
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -40,7 +38,6 @@ extern "C"
|
||||
|
||||
#include "gncBillTermP.h"
|
||||
#include "gncInvoiceP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,15 +29,12 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gncJobP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
*/
|
||||
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -40,7 +38,6 @@ extern "C"
|
||||
#if defined( S_SPLINT_S )
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,15 +29,12 @@
|
||||
*/
|
||||
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncOrderP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
* restoring data to/from an SQL database
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include <qof.h>
|
||||
#include <glib.h>
|
||||
@@ -37,7 +35,6 @@ extern "C"
|
||||
#include "gncJobP.h"
|
||||
#include "gncEmployeeP.h"
|
||||
#include "gncVendorP.h"
|
||||
}
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include "qof.h"
|
||||
@@ -37,7 +35,6 @@ extern "C"
|
||||
#if defined( S_SPLINT_S )
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include "qof.h"
|
||||
@@ -38,7 +36,6 @@ extern "C"
|
||||
#if defined( S_SPLINT_S )
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include "qof.h"
|
||||
@@ -39,7 +37,6 @@ extern "C"
|
||||
#ifdef S_SPLINT_S
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
* restoring data to/from an SQL db
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -38,7 +36,6 @@ extern "C"
|
||||
#ifdef S_SPLINT_S
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
||||
\********************************************************************/
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include <gnc-prefs.h>
|
||||
#include <gnc-engine.h>
|
||||
@@ -32,7 +30,6 @@ extern "C"
|
||||
#include <gncTaxTable.h>
|
||||
#include <gncInvoice.h>
|
||||
#include <gnc-pricedb.h>
|
||||
}
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
@@ -24,11 +24,9 @@
|
||||
#ifndef __GNC_SQL_BACKEND_HPP__
|
||||
#define __GNC_SQL_BACKEND_HPP__
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <qof.h>
|
||||
#include <Account.h>
|
||||
}
|
||||
|
||||
#include <memory>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
|
||||
@@ -21,11 +21,8 @@
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
||||
\********************************************************************/
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include <qof.h>
|
||||
}
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <gnc-datetime.hpp>
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
#ifndef __GNC_SQL_COLUMN_TABLE_ENTRY_HPP__
|
||||
#define __GNC_SQL_COLUMN_TABLE_ENTRY_HPP__
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <qof.h>
|
||||
}
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
#ifndef __GNC_SQL_CONNECTION_HPP__
|
||||
#define __GNC_SQL_CONNECTION_HPP__
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <qof.h>
|
||||
}
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
||||
\***********************************************************************/
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
}
|
||||
#include "gnc-sql-object-backend.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
#include "gnc-sql-column-table-entry.hpp"
|
||||
|
||||
@@ -24,10 +24,8 @@
|
||||
#ifndef __GNC_SQL_OBJECT_BACKEND_HPP__
|
||||
#define __GNC_SQL_OBJECT_BACKEND_HPP__
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <qof.h>
|
||||
}
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
||||
\***********************************************************************/
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
}
|
||||
#include <sstream>
|
||||
#include "gnc-sql-column-table-entry.hpp"
|
||||
|
||||
|
||||
@@ -24,10 +24,8 @@
|
||||
#ifndef __GNC_SQL_RESULT_HPP__
|
||||
#define __GNC_SQL_RESULT_HPP__
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <qof.h>
|
||||
}
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
* restoring data to/from an SQL database
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
@@ -38,7 +36,6 @@ extern "C"
|
||||
|
||||
#include "gncEntry.h"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
* restoring data to/from an SQL db
|
||||
*/
|
||||
#include <guid.hpp>
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
@@ -47,7 +45,6 @@ extern "C"
|
||||
#ifdef S_SPLINT_S
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
*/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -39,7 +37,6 @@ extern "C"
|
||||
#include "gncBillTermP.h"
|
||||
#include "gncVendorP.h"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -23,16 +23,10 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include "qof.h"
|
||||
}
|
||||
extern "C"
|
||||
{
|
||||
#include "cashobjects.h"
|
||||
#include "test-stuff.h"
|
||||
}
|
||||
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include "qof.h"
|
||||
}
|
||||
extern void test_suite_gnc_backend_sql ();
|
||||
|
||||
int
|
||||
|
||||
@@ -22,12 +22,9 @@
|
||||
********************************************************************/
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
#include <string.h>
|
||||
#include <unittest-support.h>
|
||||
}
|
||||
/* Add specific headers for this class */
|
||||
#include "../gnc-sql-connection.hpp"
|
||||
#include "../gnc-sql-backend.hpp"
|
||||
|
||||
Reference in new issue
Block a user