aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/event.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
commitcab8cf970c09ea465d30e11eb356e2e5d37dc544 (patch)
tree5d274c892e4d53f5e976ae8f6f58aba030785e02 /src/nvim/os/event.c
parent52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff)
parent4aecb71b0e819aa84a430dacdab2146229c410a5 (diff)
downloadrneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.gz
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.bz2
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.zip
Merge pull request #710 'Automatically generate declarations'
Diffstat (limited to 'src/nvim/os/event.c')
-rw-r--r--src/nvim/os/event.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/os/event.c b/src/nvim/os/event.c
index a89dcdc2ed..cdf40541d5 100644
--- a/src/nvim/os/event.c
+++ b/src/nvim/os/event.c
@@ -4,7 +4,6 @@
#include <uv.h>
-#include "nvim/lib/klist.h"
#include "nvim/os/event.h"
#include "nvim/os/input.h"
#include "nvim/os/channel.h"
@@ -16,15 +15,18 @@
#include "nvim/memory.h"
#include "nvim/misc2.h"
+#include "nvim/lib/klist.h"
+
// event will be cleaned up after it gets processed
#define _destroy_event(x) // do nothing
KLIST_INIT(Event, Event, _destroy_event)
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "os/event.c.generated.h"
+#endif
static klist_t(Event) *event_queue;
static uv_timer_t timer;
static uv_prepare_t timer_prepare;
-static void timer_cb(uv_timer_t *handle);
-static void timer_prepare_cb(uv_prepare_t *);
void event_init()
{