refactor/single-include: getchar.h (#6560)

This commit is contained in:
Othon Briganó 2017-04-21 10:21:02 -03:00 committed by Justin M. Keyes
parent 19646a2985
commit a396874da0
2 changed files with 5 additions and 1 deletions

View File

@ -429,7 +429,6 @@ function(get_test_target prefix sfile relative_path_var target_var)
endfunction() endfunction()
set(NO_SINGLE_CHECK_HEADERS set(NO_SINGLE_CHECK_HEADERS
getchar.h
if_cscope_defs.h if_cscope_defs.h
misc2.h misc2.h
msgpack_rpc/server.h msgpack_rpc/server.h

View File

@ -1,6 +1,10 @@
#ifndef NVIM_GETCHAR_H #ifndef NVIM_GETCHAR_H
#define NVIM_GETCHAR_H #define NVIM_GETCHAR_H
#include "nvim/types.h"
#include "nvim/buffer_defs.h"
#include "nvim/ex_cmds_defs.h"
/* Values for "noremap" argument of ins_typebuf(). Also used for /* Values for "noremap" argument of ins_typebuf(). Also used for
* map->m_noremap and menu->noremap[]. */ * map->m_noremap and menu->noremap[]. */
#define REMAP_YES 0 /* allow remapping */ #define REMAP_YES 0 /* allow remapping */
@ -12,6 +16,7 @@
#define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */ #define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */
#define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */ #define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
# include "getchar.h.generated.h" # include "getchar.h.generated.h"
#endif #endif