summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-01-23 13:56:43 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-01-23 13:56:43 +0000
commit945ad361fb962b2ca2e904bac65214d275b7dc43 (patch)
tree001e5818bf8dce5d9b1835a8c54b17e31301198b /src
parentdb9040e29e9cab3a93c7da0618f230f582421dc9 (diff)
HooksManager: forward declare Context instead of including context.hh
Diffstat (limited to 'src')
-rw-r--r--src/buffer.cc1
-rw-r--r--src/hooks_manager.hh2
-rw-r--r--src/main.cc1
-rw-r--r--src/window.cc1
4 files changed, 4 insertions, 1 deletions
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 <unordered_map>
@@ -9,6 +8,7 @@
namespace Kakoune
{
+class Context;
typedef std::function<void (const std::string&, const Context&)> 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 <unordered_map>
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 <algorithm>
#include <sstream>