mirror of
https://github.com/neovim/neovim.git
synced 2026-02-11 22:38:48 +00:00
These are not needed after #35129 but making uncrustify still play nice with them was a bit tricky. Unfortunately `uncrustify --update-config-with-doc` breaks strings with backslashes. This issue has been reported upstream, and in the meanwhile auto-update on every single run has been disabled.
37 lines
870 B
C
37 lines
870 B
C
#pragma once
|
|
|
|
#include <stddef.h> // IWYU pragma: keep
|
|
|
|
#include "klib/kvec.h"
|
|
#include "nvim/api/private/defs.h"
|
|
|
|
typedef struct {
|
|
String regs; ///< Registers.
|
|
String jumps; ///< Jumplist.
|
|
String bufs; ///< Buffer list.
|
|
String gvars; ///< Global variables.
|
|
Array funcs; ///< Functions.
|
|
} Context;
|
|
typedef kvec_t(Context) ContextVec;
|
|
|
|
#define CONTEXT_INIT (Context) { \
|
|
.regs = STRING_INIT, \
|
|
.jumps = STRING_INIT, \
|
|
.bufs = STRING_INIT, \
|
|
.gvars = STRING_INIT, \
|
|
.funcs = ARRAY_DICT_INIT, \
|
|
}
|
|
|
|
typedef enum {
|
|
kCtxRegs = 1, ///< Registers
|
|
kCtxJumps = 2, ///< Jumplist
|
|
kCtxBufs = 4, ///< Buffer list
|
|
kCtxGVars = 8, ///< Global variables
|
|
kCtxSFuncs = 16, ///< Script functions
|
|
kCtxFuncs = 32, ///< Functions
|
|
} ContextTypeFlags;
|
|
|
|
extern int kCtxAll;
|
|
|
|
#include "context.h.generated.h"
|