Skip to content

Commit 2553cbe

Browse files
authored
Merge pull request libgit2#4512 from libgit2/ethomson/header_guards
Consistent header guards
2 parents 53454b6 + abb04ca commit 2553cbe

Some content is hidden

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

48 files changed

+92
-86
lines changed

src/cc-compat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7-
#ifndef INCLUDE_compat_h__
8-
#define INCLUDE_compat_h__
7+
#ifndef INCLUDE_cc_compat_h__
8+
#define INCLUDE_cc_compat_h__
99

1010
#include <stdarg.h>
1111

@@ -84,4 +84,4 @@
8484
# endif
8585
#endif
8686

87-
#endif /* INCLUDE_compat_h__ */
87+
#endif

src/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,4 @@ GIT_INLINE(void) git__init_structure(void *structure, size_t len, unsigned int v
238238

239239
#include "util.h"
240240

241-
#endif /* INCLUDE_common_h__ */
241+
#endif

src/config_file.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ GIT_INLINE(int) git_config_file_unlock(git_config_backend *cfg, int success)
7171
extern int git_config_file_normalize_section(char *start, char *end);
7272

7373
#endif
74-

src/config_parse.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7+
#ifndef INCLUDE_config_parse_h__
8+
#define INCLUDE_config_parse_h__
79

810
#include "common.h"
911
#include "array.h"
@@ -58,3 +60,5 @@ int git_config_parse(
5860
git_config_parser_comment_cb on_comment,
5961
git_config_parser_eof_cb on_eof,
6062
void *data);
63+
64+
#endif

src/diff.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@ extern int git_diff__entry_cmp(const void *a, const void *b);
6666
extern int git_diff__entry_icmp(const void *a, const void *b);
6767

6868
#endif
69-

src/diff_generate.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,3 @@ GIT_INLINE(int) git_diff_file__resolve_zero_size(
126126
}
127127

128128
#endif
129-

src/diff_tform.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ extern int git_diff_find_similar__calc_similarity(
2323
int *score, void *siga, void *sigb, void *payload);
2424

2525
#endif
26-

src/fileops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,4 +387,4 @@ extern int git_futils_fsync_dir(const char *path);
387387
*/
388388
extern int git_futils_fsync_parent(const char *path);
389389

390-
#endif /* INCLUDE_fileops_h__ */
390+
#endif

src/fnmatch.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2626
* SUCH DAMAGE.
2727
*/
28-
#ifndef INCLUDE_fnmatch__compat_h__
29-
#define INCLUDE_fnmatch__compat_h__
28+
#ifndef INCLUDE_fnmatch_h__
29+
#define INCLUDE_fnmatch_h__
3030

3131
#include "common.h"
3232

@@ -45,5 +45,4 @@
4545

4646
extern int p_fnmatch(const char *pattern, const char *string, int flags);
4747

48-
#endif /* _FNMATCH_H */
49-
48+
#endif

src/hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ int git_hash_final(git_oid *out, git_hash_ctx *c);
4242
int git_hash_buf(git_oid *out, const void *data, size_t len);
4343
int git_hash_vec(git_oid *out, git_buf_vec *vec, size_t n);
4444

45-
#endif /* INCLUDE_hash_h__ */
45+
#endif

0 commit comments

Comments
 (0)