Added a '_' before the include guards.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 15 Feb 2013 23:52:34 +0000 (00:52 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 16 Feb 2013 10:51:54 +0000 (11:51 +0100)
This is not required, but seems to be the common practice.

src/command.h
src/completion.h
src/config.h
src/dom.h
src/hints.h
src/keybind.h
src/main.h
src/searchengine.h
src/setting.h
src/util.h

index 4b4e1c0..01c1d00 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef COMMAND_H
-#define COMMAND_H
+#ifndef _COMMAND_H
+#define _COMMAND_H
 
 enum {
     COMMAND_YANK_PRIMARY   = VP_CLIPBOARD_PRIMARY,
@@ -61,4 +61,4 @@ gboolean command_paste(const Arg* arg);
 gboolean command_search(const Arg* arg);
 gboolean command_searchengine(const Arg* arg);
 
-#endif /* end of include guard: COMMAND_H */
+#endif /* end of include guard: _COMMAND_H */
index af74a99..37bb6af 100644 (file)
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef COMPLETION_H
-#define COMPLETION_H
+#ifndef _COMPLETION_H
+#define _COMPLETION_H
 
 #include "main.h"
 
 void completion_clean(void);
 gboolean completion_complete(gboolean back);
 
-#endif /* end of include guard: COMPLETION_H */
+#endif /* end of include guard: _COMPLETION_H */
index 8b359e5..75a22b9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#ifndef _CONFIG_H
+#define _CONFIG_H
 
 #include "stdlib.h"
 
@@ -82,4 +82,4 @@ const struct {
     {NULL}
 };
 
-#endif /* end of include guard: CONFIG_H */
+#endif /* end of include guard: _CONFIG_H */
index a55b396..35dd182 100644 (file)
--- a/src/dom.h
+++ b/src/dom.h
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef DOM_H
-#define DOM_H
+#ifndef _DOM_H
+#define _DOM_H
 
 #include <webkit/webkit.h>
 
@@ -57,4 +57,4 @@ void dom_dispatch_mouse_event(Document* doc, Element* element, gchar* type, gush
 gboolean dom_is_editable(Element* element);
 gchar* dom_element_get_source(Element* elem);
 
-#endif /* end of include guard: DOM_H */
+#endif /* end of include guard: _DOM_H */
index a911978..759c590 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef HINTS_H
-#define HINTS_H
+#ifndef _HINTS_H
+#define _HINTS_H
 
 #include "main.h"
 
@@ -60,4 +60,4 @@ void hints_update(const gulong num);
 void hints_clear(void);
 void hints_focus_next(const gboolean back);
 
-#endif /* end of include guard: HINTS_H */
+#endif /* end of include guard: _HINTS_H */
index 8b0ff32..3984e4f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef KEYBIND_H
-#define KEYBIND_H
+#ifndef _KEYBIND_H
+#define _KEYBIND_H
 
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdkkeysyms-compat.h>
@@ -37,4 +37,4 @@ void keybind_cleanup(void);
 gboolean keybind_add_from_string(const gchar* str, const Mode mode);
 gboolean keybind_remove_from_string(const gchar* str, const Mode mode);
 
-#endif /* end of include guard: KEYBIND_H */
+#endif /* end of include guard: _KEYBIND_H */
index bfe4fb2..b9ea778 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef MAIN_H
-#define MAIN_H
+#ifndef _MAIN_H
+#define _MAIN_H
 
 #include <stdlib.h>
 #include <string.h>
@@ -311,4 +311,4 @@ void vp_clean_up(void);
 void vp_clean_input(void);
 gboolean vp_set_clipboard(const Arg* arg);
 
-#endif /* end of include guard: MAIN_H */
+#endif /* end of include guard: _MAIN_H */
index 01e905f..0e02683 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef SEARCHENGINE_H
-#define SEARCHENGINE_H
+#ifndef _SEARCHENGINE_H
+#define _SEARCHENGINE_H
 
 typedef struct {
     gchar* handle;
@@ -30,4 +30,4 @@ gboolean searchengine_add(const gchar* handle, const gchar* uri);
 gboolean searchengine_remove(const gchar* handle);
 gchar* searchengine_get_uri(const gchar* handle);
 
-#endif /* end of include guard: SEARCHENGINE_H */
+#endif /* end of include guard: _SEARCHENGINE_H */
index 6715168..185586c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef SETTING_H
-#define SETTING_H
+#ifndef _SETTING_H
+#define _SETTING_H
 
 #include "main.h"
 
@@ -37,4 +37,4 @@ void setting_init(void);
 void setting_cleanup(void);
 gboolean setting_run(gchar* name, const gchar* param);
 
-#endif /* end of include guard: SETTING_H */
+#endif /* end of include guard: _SETTING_H */
index 5dd747b..1e6549a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program. If not, see http://www.gnu.org/licenses/.
  */
 
-#ifndef UTIL_H
-#define UTIL_H
+#ifndef _UTIL_H
+#define _UTIL_H
 
 #include "main.h"
 
@@ -30,4 +30,4 @@ void util_create_file_if_not_exists(const gchar* filename);
 gchar* util_get_file_contents(const gchar* filename, gsize* length);
 gchar** util_get_lines(const gchar* filename);
 
-#endif /* end of include guard: UTIL_H */
+#endif /* end of include guard: _UTIL_H */