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 "assert.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
#include "hooks_manager.hh"
|
#include "hooks_manager.hh"
|
||||||
|
#include "context.hh"
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef hooks_manager_hh_INCLUDED
|
#ifndef hooks_manager_hh_INCLUDED
|
||||||
#define hooks_manager_hh_INCLUDED
|
#define hooks_manager_hh_INCLUDED
|
||||||
|
|
||||||
#include "context.hh"
|
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
@ -9,6 +8,7 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
|
class Context;
|
||||||
typedef std::function<void (const std::string&, const Context&)> HookFunc;
|
typedef std::function<void (const std::string&, const Context&)> HookFunc;
|
||||||
|
|
||||||
class HooksManager
|
class HooksManager
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include "filters.hh"
|
#include "filters.hh"
|
||||||
#include "filter_registry.hh"
|
#include "filter_registry.hh"
|
||||||
#include "hooks_manager.hh"
|
#include "hooks_manager.hh"
|
||||||
|
#include "context.hh"
|
||||||
#include "keys.hh"
|
#include "keys.hh"
|
||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "assert.hh"
|
#include "assert.hh"
|
||||||
#include "highlighter_registry.hh"
|
#include "highlighter_registry.hh"
|
||||||
#include "hooks_manager.hh"
|
#include "hooks_manager.hh"
|
||||||
|
#include "context.hh"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user