Skip to content

Commit 241cf73

Browse files
AlfredCPParrot User
andauthored
Adding library name (CXXGRAPH) in header guards to avoid possible conflicts in include folders Node and Graph (#117)
* Adding library name (CXXGRAPH) in header guards to avoid possible conflicts in include folders Node and Graph * Adding library name (CXXGRAPH) in header guards to avoid possible conflicts in include folders Edge, Partitioning and Utility Co-authored-by: Parrot User <user@localhost.localdomain>
1 parent 637aa23 commit 241cf73

File tree

16 files changed

+48
-48
lines changed

16 files changed

+48
-48
lines changed

include/Edge/DirectedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __DIRECTEDEDGE_H__
21-
#define __DIRECTEDEDGE_H__
20+
#ifndef __CXXGRAPH_DIRECTEDEDGE_H__
21+
#define __CXXGRAPH_DIRECTEDEDGE_H__
2222

2323
#pragma once
2424

@@ -101,4 +101,4 @@ namespace CXXGRAPH
101101
}
102102
}
103103

104-
#endif // __DIRECTEDEDGE_H__
104+
#endif // __CXXGRAPH_DIRECTEDEDGE_H__

include/Edge/DirectedWeightedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
/***********************************************************/
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
19-
#ifndef __DIRECTEDWEIGHTEDEDGE_H__
20-
#define __DIRECTEDWEIGHTEDEDGE_H__
19+
#ifndef __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__
20+
#define __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__
2121

2222
#pragma once
2323

@@ -106,4 +106,4 @@ namespace CXXGRAPH
106106

107107
}
108108

109-
#endif // __DIRECTEDWEIGHTEDEDGE_H__
109+
#endif // __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__

include/Edge/Edge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __EDGE_H__
21-
#define __EDGE_H__
20+
#ifndef __CXXGRAPH_EDGE_H__
21+
#define __CXXGRAPH_EDGE_H__
2222

2323
#pragma once
2424

@@ -114,4 +114,4 @@ namespace CXXGRAPH
114114
}
115115
}
116116

117-
#endif // __EDGE_H__
117+
#endif // __CXXGRAPH_EDGE_H__

include/Edge/UndirectedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __UNDIRECTEDEDGE_H__
21-
#define __UNDIRECTEDEDGE_H__
20+
#ifndef __CXXGRAPH_UNDIRECTEDEDGE_H__
21+
#define __CXXGRAPH_UNDIRECTEDEDGE_H__
2222

2323
#pragma once
2424

@@ -100,4 +100,4 @@ namespace CXXGRAPH
100100
}
101101

102102

103-
#endif // __UNDIRECTEDEDGE_H__
103+
#endif // __CXXGRAPH_UNDIRECTEDEDGE_H__

include/Edge/UndirectedWeightedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __UNDIRECTEDWEIGHTEDEDGE_H__
21-
#define __UNDIRECTEDWEIGHTEDEDGE_H__
20+
#ifndef __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__
21+
#define __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__
2222

2323
#pragma once
2424

@@ -107,4 +107,4 @@ namespace CXXGRAPH
107107

108108
}
109109

110-
#endif // __UNDIRECTEDWEIGHTEDEDGE_H__
110+
#endif // __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__

include/Edge/Weighted.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __WEIGHTED_H__
21-
#define __WEIGHTED_H__
20+
#ifndef __CXXGRAPH_WEIGHTED_H__
21+
#define __CXXGRAPH_WEIGHTED_H__
2222

2323
#pragma once
2424

@@ -64,4 +64,4 @@ namespace CXXGRAPH
6464
}
6565

6666

67-
#endif // __WEIGHTED_H__
67+
#endif // __CXXGRAPH_WEIGHTED_H__

include/Graph/Graph.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __GRAPH_H__
21-
#define __GRAPH_H__
20+
#ifndef __CXXGRAPH_GRAPH_H__
21+
#define __CXXGRAPH_GRAPH_H__
2222

2323
#pragma once
2424

@@ -2108,4 +2108,4 @@ namespace CXXGRAPH
21082108
}
21092109

21102110
} // namespace CXXGRAPH
2111-
#endif // __GRAPH_H__
2111+
#endif // __CXXGRAPH_GRAPH_H__

include/Graph/Graph_TS.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __GRAPH_TS_H__
21-
#define __GRAPH_TS_H__
20+
#ifndef __CXXGRAPH_GRAPH_TS_H__
21+
#define __CXXGRAPH_GRAPH_TS_H__
2222

2323
#pragma once
2424

@@ -429,4 +429,4 @@ namespace CXXGRAPH
429429
return partitions;
430430
}
431431
}
432-
#endif // __GRAPH_TS_H__
432+
#endif // __CXXGRAPH_GRAPH_TS_H__

include/Node/Node.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
/***********************************************************/
1919

2020

21-
#ifndef __NODE_H__
22-
#define __NODE_H__
21+
#ifndef __CXXGRAPH_NODE_H__
22+
#define __CXXGRAPH_NODE_H__
2323

2424
#pragma once
2525
#include <iostream>
@@ -90,4 +90,4 @@ namespace CXXGRAPH
9090
}
9191
}
9292

93-
#endif // __NODE_H__
93+
#endif // __CXXGRAPH_NODE_H__

include/Partitioning/Partition.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __PARTITION_H__
21-
#define __PARTITION_H__
20+
#ifndef __CXXGRAPH_PARTITION_H__
21+
#define __CXXGRAPH_PARTITION_H__
2222

2323
#pragma once
2424

@@ -366,4 +366,4 @@ namespace CXXGRAPH
366366

367367
}
368368

369-
#endif // __PARTITION_H__
369+
#endif // __CXXGRAPH_PARTITION_H__

0 commit comments

Comments
 (0)