[gedit/wip/spell-checking] spell: better #include order
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/spell-checking] spell: better #include order
- Date: Sat, 11 Jul 2015 13:43:46 +0000 (UTC)
commit 9bd94297de84ae575e4d6b1319fb83fecc7df6b4
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jul 11 15:19:20 2015 +0200
spell: better #include order
Include first the corresponding header.
plugins/spell/gedit-automatic-spell-checker.c | 4 +---
plugins/spell/gedit-spell-app-activatable.c | 2 +-
plugins/spell/gedit-spell-checker-dialog.c | 5 +----
plugins/spell/gedit-spell-checker-language.c | 7 ++-----
plugins/spell/gedit-spell-checker.c | 5 +----
plugins/spell/gedit-spell-language-dialog.c | 3 +--
plugins/spell/gedit-spell-plugin.c | 9 +++------
plugins/spell/gedit-spell-utils.c | 3 +--
8 files changed, 11 insertions(+), 27 deletions(-)
---
diff --git a/plugins/spell/gedit-automatic-spell-checker.c b/plugins/spell/gedit-automatic-spell-checker.c
index 04d6dea..8f8ae28 100644
--- a/plugins/spell/gedit-automatic-spell-checker.c
+++ b/plugins/spell/gedit-automatic-spell-checker.c
@@ -28,11 +28,9 @@
#include <config.h>
#endif
+#include "gedit-automatic-spell-checker.h"
#include <string.h>
-
#include <glib/gi18n.h>
-
-#include "gedit-automatic-spell-checker.h"
#include "gedit-spell-utils.h"
struct _GeditAutomaticSpellChecker {
diff --git a/plugins/spell/gedit-spell-app-activatable.c b/plugins/spell/gedit-spell-app-activatable.c
index 56cef64..6fd52bf 100644
--- a/plugins/spell/gedit-spell-app-activatable.c
+++ b/plugins/spell/gedit-spell-app-activatable.c
@@ -18,11 +18,11 @@
* along with gedit. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "gedit-spell-app-activatable.h"
#include <glib/gi18n.h>
#include <libpeas/peas-object-module.h>
#include <gedit/gedit-app-activatable.h>
#include <gedit/gedit-app.h>
-#include "gedit-spell-app-activatable.h"
typedef struct _GeditSpellAppActivatablePrivate
{
diff --git a/plugins/spell/gedit-spell-checker-dialog.c b/plugins/spell/gedit-spell-checker-dialog.c
index a6acc02..13ef2f7 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -23,15 +23,12 @@
#include <config.h>
#endif
+#include "gedit-spell-checker-dialog.h"
#include <string.h>
-
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-
#include <gedit/gedit-utils.h>
-#include "gedit-spell-checker-dialog.h"
-
struct _GeditSpellCheckerDialog
{
GtkWindow parent_instance;
diff --git a/plugins/spell/gedit-spell-checker-language.c b/plugins/spell/gedit-spell-checker-language.c
index 2ad3696..bd5d136 100644
--- a/plugins/spell/gedit-spell-checker-language.c
+++ b/plugins/spell/gedit-spell-checker-language.c
@@ -28,19 +28,16 @@
#include <config.h>
#endif
+#include "gedit-spell-checker-language.h"
+
#ifdef OS_OSX
#include "gedit-spell-osx.h"
#endif
#include <string.h>
-
#include <enchant.h>
-
#include <glib/gi18n.h>
#include <libxml/xmlreader.h>
-
-#include "gedit-spell-checker-language.h"
-
#include <gedit/gedit-debug.h>
#define ISO_639_DOMAIN "iso_639"
diff --git a/plugins/spell/gedit-spell-checker.c b/plugins/spell/gedit-spell-checker.c
index 3af90d5..8d57ba3 100644
--- a/plugins/spell/gedit-spell-checker.c
+++ b/plugins/spell/gedit-spell-checker.c
@@ -23,14 +23,11 @@
#include <config.h>
#endif
+#include "gedit-spell-checker.h"
#include <string.h>
-
#include <enchant.h>
-
#include <glib/gi18n.h>
#include <glib.h>
-
-#include "gedit-spell-checker.h"
#include "gedit-spell-utils.h"
#ifdef OS_OSX
diff --git a/plugins/spell/gedit-spell-language-dialog.c b/plugins/spell/gedit-spell-language-dialog.c
index a8435ae..9faeaf2 100644
--- a/plugins/spell/gedit-spell-language-dialog.c
+++ b/plugins/spell/gedit-spell-language-dialog.c
@@ -23,14 +23,13 @@
#include <config.h>
#endif
+#include "gedit-spell-language-dialog.h"
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gedit/gedit-utils.h>
#include <gedit/gedit-app.h>
-#include "gedit-spell-language-dialog.h"
#include "gedit-spell-checker-language.h"
-
enum
{
COLUMN_LANGUAGE_NAME = 0,
diff --git a/plugins/spell/gedit-spell-plugin.c b/plugins/spell/gedit-spell-plugin.c
index 9e507da..4b6e145 100644
--- a/plugins/spell/gedit-spell-plugin.c
+++ b/plugins/spell/gedit-spell-plugin.c
@@ -22,13 +22,8 @@
#endif
#include "gedit-spell-plugin.h"
-#include "gedit-spell-app-activatable.h"
-#include "gedit-spell-utils.h"
-
-#include <string.h> /* For strlen */
#include <glib/gi18n.h>
-
#include <gedit/gedit-debug.h>
#include <gedit/gedit-statusbar.h>
#include <gedit/gedit-app.h>
@@ -36,10 +31,12 @@
#include <gedit/gedit-window-activatable.h>
#include <gtksourceview/gtksource.h>
+#include "gedit-automatic-spell-checker.h"
+#include "gedit-spell-app-activatable.h"
#include "gedit-spell-checker.h"
#include "gedit-spell-checker-dialog.h"
#include "gedit-spell-language-dialog.h"
-#include "gedit-automatic-spell-checker.h"
+#include "gedit-spell-utils.h"
#ifdef G_OS_WIN32
#define GEDIT_METADATA_ATTRIBUTE_SPELL_LANGUAGE "spell-language"
diff --git a/plugins/spell/gedit-spell-utils.c b/plugins/spell/gedit-spell-utils.c
index 738e01b..ab02294 100644
--- a/plugins/spell/gedit-spell-utils.c
+++ b/plugins/spell/gedit-spell-utils.c
@@ -20,9 +20,8 @@
* Boston, MA 02110-1301 USA
*/
-#include <string.h>
-
#include "gedit-spell-utils.h"
+#include <string.h>
#include <gtksourceview/gtksource.h>
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]