From a9d9d0d6e72815e7485411d824b06e87705dc898 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 29 Jul 2013 14:23:50 +0200 Subject: [PATCH] Include config.h in every c file and include it first. --- src/bookmark.c | 1 + src/command.c | 1 + src/completion.c | 1 + src/dom.c | 1 + src/hints.c | 2 +- src/history.c | 1 + src/keybind.c | 1 + src/main.c | 2 +- src/session.c | 2 +- src/setting.c | 1 + 10 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/bookmark.c b/src/bookmark.c index ffbe341..dad6679 100644 --- a/src/bookmark.c +++ b/src/bookmark.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "main.h" #include "bookmark.h" #include "util.h" diff --git a/src/command.c b/src/command.c index 418bf1d..445786d 100644 --- a/src/command.c +++ b/src/command.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "main.h" #include "command.h" #include "keybind.h" diff --git a/src/completion.c b/src/completion.c index fecf725..9f54f57 100644 --- a/src/completion.c +++ b/src/completion.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "main.h" #include "completion.h" #include "util.h" diff --git a/src/dom.c b/src/dom.c index 37d34c3..f2fc6fa 100644 --- a/src/dom.c +++ b/src/dom.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "main.h" #include "dom.h" diff --git a/src/hints.c b/src/hints.c index 6d9c146..2ac4f11 100644 --- a/src/hints.c +++ b/src/hints.c @@ -17,10 +17,10 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include #include #include "hints.h" -#include "config.h" #include "dom.h" #include "command.h" #include "hints.js.h" diff --git a/src/history.c b/src/history.c index a099381..9c9e761 100644 --- a/src/history.c +++ b/src/history.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "main.h" #include "history.h" #include "util.h" diff --git a/src/keybind.c b/src/keybind.c index 5de85e1..096c3e5 100644 --- a/src/keybind.c +++ b/src/keybind.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "main.h" #include "keybind.h" #include "command.h" diff --git a/src/main.c b/src/main.c index e1cec33..10f0165 100644 --- a/src/main.c +++ b/src/main.c @@ -17,10 +17,10 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include #include #include "main.h" -#include "config.h" #include "util.h" #include "command.h" #include "keybind.h" diff --git a/src/session.c b/src/session.c index 4da9783..56b93c0 100644 --- a/src/session.c +++ b/src/session.c @@ -17,9 +17,9 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include #include "main.h" -#include "config.h" #include "session.h" #ifdef FEATURE_COOKIE diff --git a/src/setting.c b/src/setting.c index 1fbc3c8..1d7f97b 100644 --- a/src/setting.c +++ b/src/setting.c @@ -17,6 +17,7 @@ * along with this program. If not, see http://www.gnu.org/licenses/. */ +#include "config.h" #include "setting.h" #include "util.h" #include "completion.h" -- 2.20.1