Skip to content

Commit e30dd73

Browse files
committed
Correct import guard macro name
1 parent 7882778 commit e30dd73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+134
-134
lines changed

include/2darray.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* Simulated by 1-dimension array.
1111
******************************************************************************/
1212

13-
#ifndef __2D_ARRAY_H__
14-
#define __2D_ARRAY_H__
13+
#ifndef 2D_ARRAY_H__
14+
#define 2D_ARRAY_H__
1515
#include <stdint.h>
1616
#include <stdlib.h>
1717

include/8queen.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* http://en.wikipedia.org/wiki/Eight_queens_puzzle
1010
******************************************************************************/
1111

12-
#ifndef __8QUEEN_H__
13-
#define __8QUEEN_H__
12+
#ifndef 8QUEEN_H__
13+
#define 8QUEEN_H__
1414

1515
#include <stdio.h>
1616
#include <string.h>
@@ -84,4 +84,4 @@ namespace alg {
8484
};
8585
}
8686

87-
#endif //__8QUEEN_H__
87+
#endif //8QUEEN_H__

include/astar.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
*
2020
******************************************************************************/
2121

22-
#ifndef __ASTAR_H__
23-
#define __ASTAR_H__
22+
#ifndef ASTAR_H__
23+
#define ASTAR_H__
2424

2525
#include <stdlib.h>
2626
#include <stdint.h>

include/avl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
*
2020
******************************************************************************/
2121

22-
#ifndef __AVL_H__
23-
#define __AVL_H__
22+
#ifndef AVL_H__
23+
#define AVL_H__
2424

2525
#include <iostream>
2626
#include <cmath>

include/bellman_ford.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
*
4545
******************************************************************************/
4646

47-
#ifndef __BELLMAN_FORD_H__
48-
#define __BELLMAN_FORD_H__
47+
#ifndef BELLMAN_FORD_H__
48+
#define BELLMAN_FORD_H__
4949

5050
#include <stdio.h>
5151
#include <stdlib.h>

include/binary_search_tree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*
1919
******************************************************************************/
2020

21-
#ifndef __BINARY_SEARCH_TREE_H__
22-
#define __BINARY_SEARCH_TREE_H__
21+
#ifndef BINARY_SEARCH_TREE_H__
22+
#define BINARY_SEARCH_TREE_H__
2323

2424
#include <stdlib.h>
2525
#include <stdint.h>

include/bitset.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
*
1212
******************************************************************************/
1313

14-
#ifndef __BIT_SET_H__
15-
#define __BIT_SET_H__
14+
#ifndef BIT_SET_H__
15+
#define BIT_SET_H__
1616

1717
#include <stdlib.h>
1818
#include <stdint.h>

include/bloom_filter.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*
1919
******************************************************************************/
2020

21-
#ifndef __BLOOM_FILTER_H__
22-
#define __BLOOM_FILTER_H__
21+
#ifndef BLOOM_FILTER_H__
22+
#define BLOOM_FILTER_H__
2323

2424
#include <stdint.h>
2525
#include <stdbool.h>

include/btree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* http://en.wikipedia.org/wiki/B-tree
2525
******************************************************************************/
2626

27-
#ifndef __BTREE_H__
28-
#define __BTREE_H__
27+
#ifndef BTREE_H__
28+
#define BTREE_H__
2929

3030
#include <stdio.h>
3131
#include <assert.h>

include/dijkstra.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
*
2020
******************************************************************************/
2121

22-
#ifndef __DIJKSTRA_H__
23-
#define __DIJKSTRA_H__
22+
#ifndef DIJKSTRA_H__
23+
#define DIJKSTRA_H__
2424

2525
#include <stdio.h>
2626
#include <stdlib.h>

include/directed_graph.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
*
1515
******************************************************************************/
1616

17-
#ifndef __DIRECTED_GRAPH_H__
18-
#define __DIRECTED_GRAPH_H__
17+
#ifndef DIRECTED_GRAPH_H__
18+
#define DIRECTED_GRAPH_H__
1919

2020
#include <stdio.h>
2121
#include <stdlib.h>

include/disjoint-set.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* http://en.wikipedia.org/wiki/Disjoint-set_data_structure
1919
******************************************************************************/
2020

21-
#ifndef __DISJOINTSET_H__
22-
#define __DISJOINTSET_H__
21+
#ifndef DISJOINTSET_H__
22+
#define DISJOINTSET_H__
2323

2424
namespace alg {
2525
template<typename T>

include/dos_tree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*
1717
******************************************************************************/
1818

19-
#ifndef __DOS_TREE_H__
20-
#define __DOS_TREE_H__
19+
#ifndef DOS_TREE_H__
20+
#define DOS_TREE_H__
2121

2222
#include <stdlib.h>
2323
#include <assert.h>

include/double_linked_list.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* http://en.wikipedia.org/wiki/Double_linked_list
1717
******************************************************************************/
1818

19-
#ifndef __DOUBLE_LINKED_LIST_H__
20-
#define __DOUBLE_LINKED_LIST_H__
19+
#ifndef DOUBLE_LINKED_LIST_H__
20+
#define DOUBLE_LINKED_LIST_H__
2121

2222
struct list_head {
2323
struct list_head *next, *prev;

include/edmonds_karp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
*
2222
******************************************************************************/
2323

24-
#ifndef __EDMONDS_KARP_H__
25-
#define __EDMONDS_KARP_H__
24+
#ifndef EDMONDS_KARP_H__
25+
#define EDMONDS_KARP_H__
2626

2727
#include <stdlib.h>
2828
#include <stdint.h>

include/fenwick_tree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
*
1515
******************************************************************************/
1616

17-
#ifndef __FENWICK_H__
18-
#define __FENWICK_H__
17+
#ifndef FENWICK_H__
18+
#define FENWICK_H__
1919

2020
#include <vector>
2121

include/fib-heap.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* http://en.wikipedia.org/wiki/Fibonacci_heap
1818
******************************************************************************/
1919

20-
#ifndef __FIB_HEAP_H__
21-
#define __FIB_HEAP_H__
20+
#ifndef FIB_HEAP_H__
21+
#define FIB_HEAP_H__
2222
#include <math.h>
2323
#include <stdint.h>
2424
#include <unistd.h>

include/generic.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*
1010
******************************************************************************/
1111

12-
#ifndef __ALG_INC_H__
13-
#define __ALG_INC_H__
12+
#ifndef ALG_INC_H__
13+
#define ALG_INC_H__
1414
#include <stdio.h>
1515
#include <stdint.h>
1616
#include <assert.h>

include/graph_defs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __GRAPH_DEFS_H__
2-
#define __GRAPH_DEFS_H__
1+
#ifndef GRAPH_DEFS_H__
2+
#define GRAPH_DEFS_H__
33

44
#include "double_linked_list.h"
55

include/graph_search.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*
2121
******************************************************************************/
2222

23-
#ifndef __BREADTH_FIRST_SEARCH_H__
24-
#define __BREADTH_FIRST_SEARCH_H__
23+
#ifndef BREADTH_FIRST_SEARCH_H__
24+
#define BREADTH_FIRST_SEARCH_H__
2525

2626
#include <stdio.h>
2727
#include <stdint.h>

include/hash_code.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __HASH_CODE_H__
2-
#define __HASH_CODE_H__
1+
#ifndef HASH_CODE_H__
2+
#define HASH_CODE_H__
33
#include <string.h>
44
#include "hash_string.h"
55
namespace alg {

include/hash_multi.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
******************************************************************************/
1717

18-
#ifndef __HASH_MULTIPLICATION_H__
19-
#define __HASH_MULTIPLICATION_H__
18+
#ifndef HASH_MULTIPLICATION_H__
19+
#define HASH_MULTIPLICATION_H__
2020

2121
#include <math.h>
2222
#include <string.h>

include/hash_string.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*
1313
******************************************************************************/
1414

15-
#ifndef __STRING_HASH_H__
16-
#define __STRING_HASH_H__
15+
#ifndef STRING_HASH_H__
16+
#define STRING_HASH_H__
1717

1818
#include <stdint.h>
1919

include/hash_table.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
*
1515
******************************************************************************/
1616

17-
#ifndef __HASH_TABLE_H__
18-
#define __HASH_TABLE_H__
17+
#ifndef HASH_TABLE_H__
18+
#define HASH_TABLE_H__
1919

2020
#include <stdint.h>
2121
#include <string.h>

include/heap.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
* http://en.wikipedia.org/wiki/Binary_heap
2929
******************************************************************************/
3030

31-
#ifndef __HEAP_H__
32-
#define __HEAP_H__
31+
#ifndef HEAP_H__
32+
#define HEAP_H__
3333

3434
#include <stdio.h>
3535
#include <stdlib.h>

include/huffman.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
*
2222
******************************************************************************/
2323

24-
#ifndef __HUFFMAN_CODING_H__
25-
#define __HUFFMAN_CODING_H__
24+
#ifndef HUFFMAN_CODING_H__
25+
#define HUFFMAN_CODING_H__
2626

2727
#include <stdint.h>
2828
#include <stdlib.h>

include/imath.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*
1010
******************************************************************************/
1111

12-
#ifndef __IMATH_H__
13-
#define __IMATH_H__
12+
#ifndef IMATH_H__
13+
#define IMATH_H__
1414

1515
#include <stdint.h>
1616
#include <string.h>

include/insertion_sort.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
*
1414
******************************************************************************/
1515

16-
#ifndef __INSERTION_SORT_H__
17-
#define __INSERTION_SORT_H__
16+
#ifndef INSERTION_SORT_H__
17+
#define INSERTION_SORT_H__
1818

1919
namespace alg {
2020
/**

include/integer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*
1313
******************************************************************************/
1414

15-
#ifndef __INTEGER_H__
16-
#define __INTEGER_H__
15+
#ifndef INTEGER_H__
16+
#define INTEGER_H__
1717

1818
#include <stdlib.h>
1919
#include <stdint.h>

include/interval_tree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*
1717
******************************************************************************/
1818

19-
#ifndef __INTERVAL_TREE_H__
20-
#define __INTERVAL_TREE_H__
19+
#ifndef INTERVAL_TREE_H__
20+
#define INTERVAL_TREE_H__
2121

2222
#include <stdlib.h>
2323
#include <assert.h>

include/k-means.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* https://github.com/wycg1984
1313
******************************************************************************/
1414

15-
#ifndef __KMEANS_H__
16-
#define __KMEANS_H__
15+
#ifndef KMEANS_H__
16+
#define KMEANS_H__
1717
#include <fstream>
1818
#include <stdlib.h>
1919
#include <math.h>

include/kmp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
******************************************************************************/
1717

18-
#ifndef __KMP_H__
19-
#define __KMP_H__
18+
#ifndef KMP_H__
19+
#define KMP_H__
2020
#include <string.h>
2121

2222
namespace alg {

include/kruskal_mst.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* By Contibutor:xmuliang
2626
******************************************************************************/
2727

28-
#ifndef __KRUSKAL_MST_H__
29-
#define __KRUSKAL_MST_H__
28+
#ifndef KRUSKAL_MST_H__
29+
#define KRUSKAL_MST_H__
3030

3131
#include <stdio.h>
3232
#include <stdlib.h>

include/lcs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
*
1212
******************************************************************************/
1313

14-
#ifndef __LCS_H__
15-
#define __LCS_H__
14+
#ifndef LCS_H__
15+
#define LCS_H__
1616

1717
#include "generic.h"
1818
#include "2darray.h"

include/md5.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*/
2424

2525

26-
#ifndef __MD5_H__
27-
#define __MD5_H__
26+
#ifndef MD5_H__
27+
#define MD5_H__
2828
#include <stdint.h>
2929

3030
/* Data structure for MD5 (Message Digest) computation */

include/merge_sort.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
*
3333
******************************************************************************/
3434

35-
#ifndef __MERGE_SORT_H__
36-
#define __MERGE_SORT_H__
35+
#ifndef MERGE_SORT_H__
36+
#define MERGE_SORT_H__
3737

3838
namespace alg {
3939
/**

0 commit comments

Comments
 (0)