From: Daniel Carl Date: Fri, 15 Feb 2013 23:52:34 +0000 (+0100) Subject: Added a '_' before the include guards. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=78d3d1b883f7762327cc3f462e7a64eb6c0d95e6;p=vimb.git Added a '_' before the include guards. This is not required, but seems to be the common practice. --- diff --git a/src/command.h b/src/command.h index 4b4e1c0..01c1d00 100644 --- a/src/command.h +++ b/src/command.h @@ -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 */ diff --git a/src/completion.h b/src/completion.h index af74a99..37bb6af 100644 --- a/src/completion.h +++ b/src/completion.h @@ -17,12 +17,12 @@ * 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 */ diff --git a/src/config.h b/src/config.h index 8b359e5..75a22b9 100644 --- a/src/config.h +++ b/src/config.h @@ -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 */ diff --git a/src/dom.h b/src/dom.h index a55b396..35dd182 100644 --- 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 @@ -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 */ diff --git a/src/hints.h b/src/hints.h index a911978..759c590 100644 --- a/src/hints.h +++ b/src/hints.h @@ -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 */ diff --git a/src/keybind.h b/src/keybind.h index 8b0ff32..3984e4f 100644 --- a/src/keybind.h +++ b/src/keybind.h @@ -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 #include @@ -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 */ diff --git a/src/main.h b/src/main.h index bfe4fb2..b9ea778 100644 --- a/src/main.h +++ b/src/main.h @@ -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 #include @@ -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 */ diff --git a/src/searchengine.h b/src/searchengine.h index 01e905f..0e02683 100644 --- a/src/searchengine.h +++ b/src/searchengine.h @@ -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 */ diff --git a/src/setting.h b/src/setting.h index 6715168..185586c 100644 --- a/src/setting.h +++ b/src/setting.h @@ -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 */ diff --git a/src/util.h b/src/util.h index 5dd747b..1e6549a 100644 --- a/src/util.h +++ b/src/util.h @@ -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 */