Skip to content

Commit a38d012

Browse files
committed
Added proper guards to new files.
1 parent 5cdded3 commit a38d012

File tree

14 files changed

+60
-7
lines changed

14 files changed

+60
-7
lines changed

src/opt/ufar/UfarCmd.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include <climits>
1717
#include <regex>
1818

19+
ABC_NAMESPACE_IMPL_START
20+
1921
using namespace std;
2022

2123
static UFAR::UfarManager ufar_manager;
@@ -333,4 +335,4 @@ static int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
333335
#endif
334336
}
335337

336-
338+
ABC_NAMESPACE_IMPL_END

src/opt/ufar/UfarCmd.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@
1010

1111
#include "base/main/mainInt.h"
1212

13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
13+
ABC_NAMESPACE_HEADER_START
1614

1715
void Ufar_Init(Abc_Frame_t *pAbc);
1816

19-
#ifdef __cplusplus
20-
}
21-
#endif
17+
ABC_NAMESPACE_HEADER_END
2218

2319
#endif /* SRC_EXT2_UIF_UIFCMD_H_ */

src/opt/ufar/UfarMgr.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include <sat/cnf/cnf.h>
1717
#include <aig/gia/giaAig.h>
1818

19+
ABC_NAMESPACE_IMPL_START
20+
1921
extern "C" {
2022
Abc_Ntk_t * Abc_NtkFromAigPhase( Aig_Man_t * pMan );
2123
void Wlc_NtkSimulatePrint( Wlc_Ntk_t * p, Vec_Int_t * vNodes, Vec_Ptr_t * vRes, int nWords, int nFrames );
@@ -1661,3 +1663,5 @@ void UfarManager::_read_states(const std::string &file) {
16611663
}
16621664

16631665
}
1666+
1667+
ABC_NAMESPACE_IMPL_END

src/opt/ufar/UfarMgr.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@
1717
#include <memory>
1818
#include <sys/time.h>
1919

20+
#include "misc/util/abc_namespaces.h"
21+
2022
typedef struct Wlc_Ntk_t_ Wlc_Ntk_t;
2123
typedef struct Abc_Cex_t_ Abc_Cex_t;
2224
typedef struct Gia_Man_t_ Gia_Man_t;
2325

26+
ABC_NAMESPACE_CXX_HEADER_START
27+
2428
namespace UFAR {
2529

2630
using VecVecInt = std::vector<std::vector<int> >;
@@ -141,4 +145,6 @@ class UfarManager {
141145

142146
}
143147

148+
ABC_NAMESPACE_CXX_HEADER_END
149+
144150
#endif /* SRC_EXT2_UIF_UIFMGR_H_ */

src/opt/ufar/UfarPth.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
#include "proof/pdr/pdr.h"
66
#include "aig/gia/giaAig.h"
77

8+
#include "misc/util/abc_namespaces.h"
9+
810
#include <pthread.h>
911
#include <unistd.h>
1012

13+
ABC_NAMESPACE_IMPL_START
14+
1115
extern "C" {
1216
Abc_Ntk_t * Abc_NtkFromAigPhase( Aig_Man_t * pAig );
1317
int Abc_NtkDarBmc3( Abc_Ntk_t * pAbcNtk, Saig_ParBmc_t * pBmcPars, int fOrDecomp );
@@ -287,3 +291,5 @@ int RunConcurrentSolver( Wlc_Ntk_t * pNtk, const vector<string>& vSolvers, Abc_C
287291

288292

289293
}
294+
295+
ABC_NAMESPACE_IMPL_END

src/opt/ufar/UfarPth.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
#include <vector>
1010
#include <string>
1111

12+
ABC_NAMESPACE_CXX_HEADER_START
13+
1214
namespace UFAR
1315
{
1416
int RunConcurrentSolver( Wlc_Ntk_t * pNtk, const std::vector<std::string>& vSolvers, Abc_Cex_t ** ppCex, struct timespec * timeout );
1517
}
1618

19+
ABC_NAMESPACE_CXX_HEADER_END
20+
1721
#endif //SRC_EXT2_UFAR_PTH_H

src/opt/untk/Netlist.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <iostream>
1010

11+
ABC_NAMESPACE_IMPL_START
12+
1113
using namespace std;
1214

1315
namespace UFAR {
@@ -61,3 +63,5 @@ void WNetlist::Reset(Wlc_Ntk_t *pNtk) {
6163
}
6264

6365
}
66+
67+
ABC_NAMESPACE_IMPL_END

src/opt/untk/Netlist.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77

88
#include <type_traits>
99

10+
#include "misc/util/abc_namespaces.h"
11+
1012
typedef struct Wlc_Ntk_t_ Wlc_Ntk_t;
1113

14+
ABC_NAMESPACE_CXX_HEADER_START
15+
1216
namespace UFAR {
1317

1418
class WNetlist {
@@ -30,4 +34,6 @@ class WNetlist {
3034

3135
}
3236

37+
ABC_NAMESPACE_CXX_HEADER_END
38+
3339
#endif //ABC_WAR_NETLIST_H

src/opt/untk/NtkCmd.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
#include "opt/untk/NtkCmd.h"
99

10+
ABC_NAMESPACE_IMPL_START
11+
1012
void Ntk_Init (Abc_Frame_t *pAbc)
1113
{
1214
}
15+
16+
ABC_NAMESPACE_IMPL_END

src/opt/untk/NtkCmd.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
#include "base/main/mainInt.h"
1212

13+
ABC_NAMESPACE_CXX_HEADER_START
14+
1315
void Ntk_Init(Abc_Frame_t *pAbc);
1416

17+
ABC_NAMESPACE_CXX_HEADER_END
18+
1519
#endif /* SRC_EXT2_NTK_NTKCMD_H_ */

0 commit comments

Comments
 (0)