Make macros to prevent double-inclusion in headers consistent.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Apr 28, 2007 at 23:38 UTC
e0173ad9fcabfcabe54d65be2c8b6602f61079e6
4 files changed
+10
-10
diffcore.h
+2
-2
@@ -1,8 +1,8 @@
1
/*
2
* Copyright (C) 2005 Junio C Hamano
3
*/
4
-#ifndef _DIFFCORE_H_
5
-#define _DIFFCORE_H_
4
+#ifndef DIFFCORE_H
5
+#define DIFFCORE_H
6
7
/* This header file is internal between diff.c and its diff transformers
8
* (e.g. diffcore-rename, diffcore-pickaxe). Never include this header
exec_cmd.h
+3
-3
@@ -1,5 +1,5 @@
1
-#ifndef __GIT_EXEC_CMD_H_
2
-#define __GIT_EXEC_CMD_H_
1
+#ifndef GIT_EXEC_CMD_H
2
+#define GIT_EXEC_CMD_H
3
4
extern void git_set_exec_path(const char *exec_path);
5
extern const char* git_exec_path(void);
@@ -7,4 +7,4 @@ extern int execv_git_cmd(const char **argv); /* NULL terminated */
7
extern int execl_git_cmd(const char *cmd, ...);
8
9
10
-#endif /* __GIT_EXEC_CMD_H_ */
10
+#endif /* GIT_EXEC_CMD_H */
path-list.h
+3
-3
@@ -1,5 +1,5 @@
1
-#ifndef _PATH_LIST_H_
2
-#define _PATH_LIST_H_
1
+#ifndef PATH_LIST_H
2
+#define PATH_LIST_H
3
4
struct path_list_item {
5
char *path;
@@ -19,4 +19,4 @@ void path_list_clear(struct path_list *list, int free_items);
19
struct path_list_item *path_list_insert(const char *path, struct path_list *list);
20
struct path_list_item *path_list_lookup(const char *path, struct path_list *list);
21
22
-#endif /* _PATH_LIST_H_ */
22
+#endif /* PATH_LIST_H */
progress.h
+2
-2
@@ -1,5 +1,5 @@
1
-#ifndef __progress_h__
2
-#define __progress_h__
1
+#ifndef PROGRESS_H
2
+#define PROGRESS_H
3
4
struct progress {
5
const char *prefix;