From 945ad361fb962b2ca2e904bac65214d275b7dc43 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 23 Jan 2012 13:56:43 +0000 Subject: [PATCH] HooksManager: forward declare Context instead of including context.hh --- src/buffer.cc | 1 + src/hooks_manager.hh | 2 +- src/main.cc | 1 + src/window.cc | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/buffer.cc b/src/buffer.cc index b230c09d..4f792e38 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -5,6 +5,7 @@ #include "assert.hh" #include "utils.hh" #include "hooks_manager.hh" +#include "context.hh" namespace Kakoune { diff --git a/src/hooks_manager.hh b/src/hooks_manager.hh index 3fdeece3..37d6454a 100644 --- a/src/hooks_manager.hh +++ b/src/hooks_manager.hh @@ -1,7 +1,6 @@ #ifndef hooks_manager_hh_INCLUDED #define hooks_manager_hh_INCLUDED -#include "context.hh" #include "utils.hh" #include @@ -9,6 +8,7 @@ namespace Kakoune { +class Context; typedef std::function HookFunc; class HooksManager diff --git a/src/main.cc b/src/main.cc index 04e3b6bb..a0512932 100644 --- a/src/main.cc +++ b/src/main.cc @@ -12,6 +12,7 @@ #include "filters.hh" #include "filter_registry.hh" #include "hooks_manager.hh" +#include "context.hh" #include "keys.hh" #include diff --git a/src/window.cc b/src/window.cc index ca4e7908..583be51e 100644 --- a/src/window.cc +++ b/src/window.cc @@ -3,6 +3,7 @@ #include "assert.hh" #include "highlighter_registry.hh" #include "hooks_manager.hh" +#include "context.hh" #include #include