[AccountP.hpp] .h -> .hpp, remove extern "C" {} wrapper

This commit is contained in:
Christopher Lam
2024-03-18 10:08:42 +08:00
parent a67e4651c3
commit d100df7ef7
24 changed files with 25 additions and 33 deletions

View File

@@ -32,7 +32,7 @@
#include "qof.h"
#include "Account.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "gnc-commodity.h"
#if defined( S_SPLINT_S )

View File

@@ -27,7 +27,7 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <AccountP.h>
#include <AccountP.hpp>
#include <Account.h>
#include "gnc-xml-helper.h"

View File

@@ -25,7 +25,7 @@
#include <config.h>
#include <string.h>
#include "AccountP.h"
#include "AccountP.hpp"
#include "Account.h"
#include "gnc-xml-helper.h"

View File

@@ -25,7 +25,7 @@
#include <config.h>
#include <string.h>
#include "AccountP.h"
#include "AccountP.hpp"
#include "Transaction.h"
#include "TransactionP.h"
#include "gnc-lot.h"

View File

@@ -34,7 +34,7 @@
#include <gnc-xml-helper.h>
#include <Account.h>
#include <AccountP.h>
#include <AccountP.hpp>
#include <Query.h>
#include <Scrub.h>
#include <Transaction.h>

View File

@@ -40,7 +40,7 @@
#include <test-engine-stuff.h>
#include <unittest-support.h>
#include <AccountP.h>
#include <AccountP.hpp>
#include <Transaction.h>
#include <TransactionP.h>

View File

@@ -33,7 +33,7 @@
#include <stdint.h>
#include <string.h>
#include "AccountP.h"
#include "AccountP.hpp"
#include "Split.h"
#include "Transaction.h"
#include "TransactionP.h"

View File

@@ -1,5 +1,5 @@
/********************************************************************\
* AccountP.h -- Account engine-private data structure *
* AccountP.hpp -- Account engine-private data structure *
* Copyright (C) 1997 Robin D. Clark *
* Copyright (C) 1997-2002, Linas Vepstas <linas@linas.org> *
* *
@@ -22,7 +22,7 @@
* *
\********************************************************************/
/** @file AccountP.h
/** @file AccountP.hpp
*
* This is the *private* header for the account structure.
* No one outside of the engine should ever include this file.
@@ -41,10 +41,6 @@
#include "Account.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GNC_ID_ROOT_ACCOUNT "RootAccount"
/** STRUCTS *********************************************************/
@@ -177,8 +173,4 @@ typedef struct
AccountTestFunctions* _utest_account_fill_functions(void);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* XACC_ACCOUNT_P_H */

View File

@@ -5,7 +5,7 @@ add_subdirectory(test)
add_subdirectory(mocks)
set(engine_noinst_HEADERS
AccountP.h
AccountP.hpp
SplitP.h
SX-book.h
SX-ttinfo.h

View File

@@ -46,7 +46,7 @@
#include <stdbool.h>
#include "Account.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "Scrub.h"
#include "Transaction.h"
#include "TransactionP.h"

View File

@@ -36,7 +36,7 @@
#include "qof.h"
#include "Account.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "Transaction.h"
#include "TransactionP.h"
#include "Scrub2.h"

View File

@@ -39,7 +39,7 @@
#include "gnc-lot.h"
#include "policy-p.h"
#include "Account.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "Scrub2.h"
#include "Scrub3.h"
#include "Transaction.h"

View File

@@ -47,7 +47,7 @@
#include "qof.h"
#include "qofbook.h"
#include "Split.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "Scrub.h"
#include "TransactionP.h"
#include "TransLog.h"

View File

@@ -42,7 +42,7 @@
# include <unistd.h>
#endif
#include "AccountP.h"
#include "AccountP.hpp"
#include "Scrub.h"
#include "Scrub3.h"
#include "TransactionP.h"

View File

@@ -58,7 +58,7 @@ ToDo:
#include <glib.h>
#include <glib/gi18n.h>
#include "AccountP.h"
#include "AccountP.hpp"
#include "Scrub2.h"
#include "Scrub3.h"
#include "Transaction.h"

View File

@@ -29,7 +29,7 @@
#include <config.h>
#include "cashobjects.h"
#include "gnc-engine.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "TransactionP.h"
#include "SchedXaction.h"
#include "SX-book-p.h"

View File

@@ -27,7 +27,7 @@
#include "gnc-engine.h"
#include "qof.h"
#include "cashobjects.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "SX-book-p.h"
#include "gnc-budget.h"
#include "TransactionP.h"

View File

@@ -130,7 +130,7 @@ extern "C" {
/** @brief Account in Gnucash.
* This is the typename for an account. The actual structure is
* defined in the private header AccountP.h, but no one outside the
* defined in the private header AccountP.hpp, but no one outside the
* engine should include that file. Instead, access that data only
* through the functions in Account.h .*/
typedef struct account_s Account;

View File

@@ -46,7 +46,7 @@
#include <qofinstance-p.h>
#include "Account.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "gnc-lot.h"
#include "gnc-lot-p.h"
#include "cap-gains.h"

View File

@@ -4,7 +4,7 @@
#include <gmock/gmock.h>
#include <Account.h>
#include <AccountP.h>
#include <AccountP.hpp>
#include <qofbook.h>
#include "gmock-gobject.h"

View File

@@ -56,7 +56,7 @@
#include "kvp-frame.hpp"
#include "gnc-lot.h"
// For GNC_ID_ROOT_ACCOUNT:
#include "AccountP.h"
#include "AccountP.hpp"
#include "qofbook.hpp"

View File

@@ -58,7 +58,7 @@
#include <qof.h>
#include "Account.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "gnc-engine.h"
#include "gnc-session.h"
#include "Transaction.h"

View File

@@ -26,7 +26,7 @@
#include <config.h>
#include "qof.h"
#include "cashobjects.h"
#include "AccountP.h"
#include "AccountP.hpp"
#include "TransLog.h"
#include "gnc-engine.h"
#include "test-engine-stuff.h"

View File

@@ -30,7 +30,7 @@
/* Add specific headers for this class */
#include "gnc-glib-utils.h"
#include "../Account.h"
#include "../AccountP.h"
#include "../AccountP.hpp"
#include "../Split.h"
#include "../Transaction.h"
#include "../gnc-lot.h"