mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00

It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard.
24 lines
660 B
C
24 lines
660 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <uv.h>
|
|
|
|
#include "nvim/api/private/defs.h"
|
|
#include "nvim/channel.h"
|
|
#include "nvim/event/multiqueue.h"
|
|
#include "nvim/event/process.h"
|
|
#include "nvim/event/socket.h"
|
|
#include "nvim/macros.h"
|
|
#include "nvim/vim.h"
|
|
|
|
#define METHOD_MAXLEN 512
|
|
|
|
/// HACK: os/input.c drains this queue immediately before blocking for input.
|
|
/// Events on this queue are async-safe, but they need the resolved state
|
|
/// of os_inchar(), so they are processed "just-in-time".
|
|
EXTERN MultiQueue *ch_before_blocking_events INIT( = NULL);
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "msgpack_rpc/channel.h.generated.h"
|
|
#endif
|