HooksManager: forward declare Context instead of including context.hh

This commit is contained in:
Maxime Coste 2012-01-23 13:56:43 +00:00
parent db9040e29e
commit 945ad361fb
4 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include "assert.hh"
#include "utils.hh"
#include "hooks_manager.hh"
#include "context.hh"
namespace Kakoune
{

View File

@ -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

View File

@ -12,6 +12,7 @@
#include "filters.hh"
#include "filter_registry.hh"
#include "hooks_manager.hh"
#include "context.hh"
#include "keys.hh"
#include <unordered_map>

View File

@ -3,6 +3,7 @@
#include "assert.hh"
#include "highlighter_registry.hh"
#include "hooks_manager.hh"
#include "context.hh"
#include <algorithm>
#include <sstream>