HooksManager: forward declare Context instead of including context.hh
This commit is contained in:
parent
db9040e29e
commit
945ad361fb
|
@ -5,6 +5,7 @@
|
|||
#include "assert.hh"
|
||||
#include "utils.hh"
|
||||
#include "hooks_manager.hh"
|
||||
#include "context.hh"
|
||||
|
||||
namespace Kakoune
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "filters.hh"
|
||||
#include "filter_registry.hh"
|
||||
#include "hooks_manager.hh"
|
||||
#include "context.hh"
|
||||
#include "keys.hh"
|
||||
|
||||
#include <unordered_map>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "assert.hh"
|
||||
#include "highlighter_registry.hh"
|
||||
#include "hooks_manager.hh"
|
||||
#include "context.hh"
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
|
Loading…
Reference in New Issue
Block a user