mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
eval: Move encode.c to eval/encode.c
This commit is contained in:
@@ -52,6 +52,7 @@ foreach(subdir
|
||||
msgpack_rpc
|
||||
tui
|
||||
event
|
||||
eval
|
||||
)
|
||||
file(MAKE_DIRECTORY ${GENERATED_DIR}/${subdir})
|
||||
file(MAKE_DIRECTORY ${GENERATED_INCLUDES_DIR}/${subdir})
|
||||
|
@@ -73,7 +73,7 @@
|
||||
#include "nvim/undo.h"
|
||||
#include "nvim/version.h"
|
||||
#include "nvim/window.h"
|
||||
#include "nvim/encode.h"
|
||||
#include "nvim/eval/encode.h"
|
||||
#include "nvim/os/os.h"
|
||||
#include "nvim/event/libuv_process.h"
|
||||
#include "nvim/event/pty_process.h"
|
||||
|
@@ -4,13 +4,11 @@
|
||||
///
|
||||
/// Split out from eval.c.
|
||||
|
||||
// TODO(ZyX-I): Move this to src/nvim/viml or src/nvim/eval
|
||||
|
||||
#include <msgpack.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "nvim/encode.h"
|
||||
#include "nvim/eval/encode.h"
|
||||
#include "nvim/buffer_defs.h" // vimconv_T
|
||||
#include "nvim/eval.h"
|
||||
#include "nvim/eval_defs.h"
|
||||
@@ -63,7 +61,7 @@ const char *const encode_special_var_names[] = {
|
||||
};
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "encode.c.generated.h"
|
||||
# include "eval/encode.c.generated.h"
|
||||
#endif
|
||||
|
||||
/// Msgpack callback for writing to readfile()-style list
|
@@ -1,5 +1,5 @@
|
||||
#ifndef NVIM_ENCODE_H
|
||||
#define NVIM_ENCODE_H
|
||||
#ifndef NVIM_EVAL_ENCODE_H
|
||||
#define NVIM_EVAL_ENCODE_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@@ -55,6 +55,6 @@ static inline ListReaderState encode_init_lrstate(const list_T *const list)
|
||||
extern const char *const encode_special_var_names[];
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "encode.h.generated.h"
|
||||
# include "eval/encode.h.generated.h"
|
||||
#endif
|
||||
#endif // NVIM_ENCODE_H
|
||||
#endif // NVIM_EVAL_ENCODE_H
|
@@ -39,7 +39,7 @@
|
||||
#include "nvim/fileio.h"
|
||||
#include "nvim/strings.h"
|
||||
#include "nvim/quickfix.h"
|
||||
#include "nvim/encode.h"
|
||||
#include "nvim/eval/encode.h"
|
||||
#include "nvim/lib/khash.h"
|
||||
#include "nvim/lib/kvec.h"
|
||||
|
||||
|
Reference in New Issue
Block a user