eval: Move encode.c to eval/encode.c

This commit is contained in:
ZyX
2016-02-03 18:50:19 +03:00
parent 704accfbfa
commit 41b44d114c
5 changed files with 9 additions and 10 deletions

View File

@@ -52,6 +52,7 @@ foreach(subdir
msgpack_rpc
tui
event
eval
)
file(MAKE_DIRECTORY ${GENERATED_DIR}/${subdir})
file(MAKE_DIRECTORY ${GENERATED_INCLUDES_DIR}/${subdir})

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"