Skip to content

Commit

Permalink
Correct import guard macro name
Browse files Browse the repository at this point in the history
  • Loading branch information
htfy96 committed Sep 1, 2016
1 parent 7882778 commit e30dd73
Show file tree
Hide file tree
Showing 65 changed files with 134 additions and 134 deletions.
4 changes: 2 additions & 2 deletions include/2darray.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Simulated by 1-dimension array.
******************************************************************************/

#ifndef __2D_ARRAY_H__
#define __2D_ARRAY_H__
#ifndef 2D_ARRAY_H__
#define 2D_ARRAY_H__
#include <stdint.h>
#include <stdlib.h>

Expand Down
6 changes: 3 additions & 3 deletions include/8queen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* http://en.wikipedia.org/wiki/Eight_queens_puzzle
******************************************************************************/

#ifndef __8QUEEN_H__
#define __8QUEEN_H__
#ifndef 8QUEEN_H__
#define 8QUEEN_H__

#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -84,4 +84,4 @@ namespace alg {
};
}

#endif //__8QUEEN_H__
#endif //8QUEEN_H__
4 changes: 2 additions & 2 deletions include/astar.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
******************************************************************************/

#ifndef __ASTAR_H__
#define __ASTAR_H__
#ifndef ASTAR_H__
#define ASTAR_H__

#include <stdlib.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/avl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
******************************************************************************/

#ifndef __AVL_H__
#define __AVL_H__
#ifndef AVL_H__
#define AVL_H__

#include <iostream>
#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions include/bellman_ford.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
*
******************************************************************************/

#ifndef __BELLMAN_FORD_H__
#define __BELLMAN_FORD_H__
#ifndef BELLMAN_FORD_H__
#define BELLMAN_FORD_H__

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions include/binary_search_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
******************************************************************************/

#ifndef __BINARY_SEARCH_TREE_H__
#define __BINARY_SEARCH_TREE_H__
#ifndef BINARY_SEARCH_TREE_H__
#define BINARY_SEARCH_TREE_H__

#include <stdlib.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/bitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
******************************************************************************/

#ifndef __BIT_SET_H__
#define __BIT_SET_H__
#ifndef BIT_SET_H__
#define BIT_SET_H__

#include <stdlib.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/bloom_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
******************************************************************************/

#ifndef __BLOOM_FILTER_H__
#define __BLOOM_FILTER_H__
#ifndef BLOOM_FILTER_H__
#define BLOOM_FILTER_H__

#include <stdint.h>
#include <stdbool.h>
Expand Down
4 changes: 2 additions & 2 deletions include/btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* http://en.wikipedia.org/wiki/B-tree
******************************************************************************/

#ifndef __BTREE_H__
#define __BTREE_H__
#ifndef BTREE_H__
#define BTREE_H__

#include <stdio.h>
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions include/dijkstra.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
******************************************************************************/

#ifndef __DIJKSTRA_H__
#define __DIJKSTRA_H__
#ifndef DIJKSTRA_H__
#define DIJKSTRA_H__

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions include/directed_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
******************************************************************************/

#ifndef __DIRECTED_GRAPH_H__
#define __DIRECTED_GRAPH_H__
#ifndef DIRECTED_GRAPH_H__
#define DIRECTED_GRAPH_H__

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions include/disjoint-set.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* http://en.wikipedia.org/wiki/Disjoint-set_data_structure
******************************************************************************/

#ifndef __DISJOINTSET_H__
#define __DISJOINTSET_H__
#ifndef DISJOINTSET_H__
#define DISJOINTSET_H__

namespace alg {
template<typename T>
Expand Down
4 changes: 2 additions & 2 deletions include/dos_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
******************************************************************************/

#ifndef __DOS_TREE_H__
#define __DOS_TREE_H__
#ifndef DOS_TREE_H__
#define DOS_TREE_H__

#include <stdlib.h>
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions include/double_linked_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* http://en.wikipedia.org/wiki/Double_linked_list
******************************************************************************/

#ifndef __DOUBLE_LINKED_LIST_H__
#define __DOUBLE_LINKED_LIST_H__
#ifndef DOUBLE_LINKED_LIST_H__
#define DOUBLE_LINKED_LIST_H__

struct list_head {
struct list_head *next, *prev;
Expand Down
4 changes: 2 additions & 2 deletions include/edmonds_karp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*
******************************************************************************/

#ifndef __EDMONDS_KARP_H__
#define __EDMONDS_KARP_H__
#ifndef EDMONDS_KARP_H__
#define EDMONDS_KARP_H__

#include <stdlib.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/fenwick_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
******************************************************************************/

#ifndef __FENWICK_H__
#define __FENWICK_H__
#ifndef FENWICK_H__
#define FENWICK_H__

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions include/fib-heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* http://en.wikipedia.org/wiki/Fibonacci_heap
******************************************************************************/

#ifndef __FIB_HEAP_H__
#define __FIB_HEAP_H__
#ifndef FIB_HEAP_H__
#define FIB_HEAP_H__
#include <math.h>
#include <stdint.h>
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions include/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
******************************************************************************/

#ifndef __ALG_INC_H__
#define __ALG_INC_H__
#ifndef ALG_INC_H__
#define ALG_INC_H__
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions include/graph_defs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __GRAPH_DEFS_H__
#define __GRAPH_DEFS_H__
#ifndef GRAPH_DEFS_H__
#define GRAPH_DEFS_H__

#include "double_linked_list.h"

Expand Down
4 changes: 2 additions & 2 deletions include/graph_search.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
*
******************************************************************************/

#ifndef __BREADTH_FIRST_SEARCH_H__
#define __BREADTH_FIRST_SEARCH_H__
#ifndef BREADTH_FIRST_SEARCH_H__
#define BREADTH_FIRST_SEARCH_H__

#include <stdio.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/hash_code.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __HASH_CODE_H__
#define __HASH_CODE_H__
#ifndef HASH_CODE_H__
#define HASH_CODE_H__
#include <string.h>
#include "hash_string.h"
namespace alg {
Expand Down
4 changes: 2 additions & 2 deletions include/hash_multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
******************************************************************************/

#ifndef __HASH_MULTIPLICATION_H__
#define __HASH_MULTIPLICATION_H__
#ifndef HASH_MULTIPLICATION_H__
#define HASH_MULTIPLICATION_H__

#include <math.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions include/hash_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
******************************************************************************/

#ifndef __STRING_HASH_H__
#define __STRING_HASH_H__
#ifndef STRING_HASH_H__
#define STRING_HASH_H__

#include <stdint.h>

Expand Down
4 changes: 2 additions & 2 deletions include/hash_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
******************************************************************************/

#ifndef __HASH_TABLE_H__
#define __HASH_TABLE_H__
#ifndef HASH_TABLE_H__
#define HASH_TABLE_H__

#include <stdint.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions include/heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
* http://en.wikipedia.org/wiki/Binary_heap
******************************************************************************/

#ifndef __HEAP_H__
#define __HEAP_H__
#ifndef HEAP_H__
#define HEAP_H__

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions include/huffman.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*
******************************************************************************/

#ifndef __HUFFMAN_CODING_H__
#define __HUFFMAN_CODING_H__
#ifndef HUFFMAN_CODING_H__
#define HUFFMAN_CODING_H__

#include <stdint.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions include/imath.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
******************************************************************************/

#ifndef __IMATH_H__
#define __IMATH_H__
#ifndef IMATH_H__
#define IMATH_H__

#include <stdint.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions include/insertion_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*
******************************************************************************/

#ifndef __INSERTION_SORT_H__
#define __INSERTION_SORT_H__
#ifndef INSERTION_SORT_H__
#define INSERTION_SORT_H__

namespace alg {
/**
Expand Down
4 changes: 2 additions & 2 deletions include/integer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
******************************************************************************/

#ifndef __INTEGER_H__
#define __INTEGER_H__
#ifndef INTEGER_H__
#define INTEGER_H__

#include <stdlib.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/interval_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
******************************************************************************/

#ifndef __INTERVAL_TREE_H__
#define __INTERVAL_TREE_H__
#ifndef INTERVAL_TREE_H__
#define INTERVAL_TREE_H__

#include <stdlib.h>
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions include/k-means.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* https://github.com/wycg1984
******************************************************************************/

#ifndef __KMEANS_H__
#define __KMEANS_H__
#ifndef KMEANS_H__
#define KMEANS_H__
#include <fstream>
#include <stdlib.h>
#include <math.h>
Expand Down
4 changes: 2 additions & 2 deletions include/kmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
******************************************************************************/

#ifndef __KMP_H__
#define __KMP_H__
#ifndef KMP_H__
#define KMP_H__
#include <string.h>

namespace alg {
Expand Down
4 changes: 2 additions & 2 deletions include/kruskal_mst.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* By Contibutor:xmuliang
******************************************************************************/

#ifndef __KRUSKAL_MST_H__
#define __KRUSKAL_MST_H__
#ifndef KRUSKAL_MST_H__
#define KRUSKAL_MST_H__

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions include/lcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
******************************************************************************/

#ifndef __LCS_H__
#define __LCS_H__
#ifndef LCS_H__
#define LCS_H__

#include "generic.h"
#include "2darray.h"
Expand Down
4 changes: 2 additions & 2 deletions include/md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/


#ifndef __MD5_H__
#define __MD5_H__
#ifndef MD5_H__
#define MD5_H__
#include <stdint.h>

/* Data structure for MD5 (Message Digest) computation */
Expand Down
4 changes: 2 additions & 2 deletions include/merge_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
*
******************************************************************************/

#ifndef __MERGE_SORT_H__
#define __MERGE_SORT_H__
#ifndef MERGE_SORT_H__
#define MERGE_SORT_H__

namespace alg {
/**
Expand Down
Loading

0 comments on commit e30dd73

Please sign in to comment.