mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Include stdbool.h in some files which use it
Done by manual inspection of the output of this script: grep -r -l -w "bool\|true\|false" * | grep 'c$\|h$' > has_bool grep -r -l "stdbool.h" * | grep 'c$\|h$' > has_include grep -F -x -v -f has_include has_bool
This commit is contained in:
parent
cf18687349
commit
0868818d3e
@ -1,6 +1,7 @@
|
||||
// Much of this code was adapted from 'if_py_both.h' from the original
|
||||
// vim source
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
/// Final - unicode form-B final char denoted with a_f_*
|
||||
/// Stand-Alone - unicode form-B isolated char denoted with a_s_* (NOT USED)
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/arabic.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_ARABIC_H
|
||||
#define NVIM_ARABIC_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/// Whether c belongs to the range of Arabic characters that might be shaped.
|
||||
static inline bool arabic_char(int c)
|
||||
{
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_BUFFER_DEFS_H
|
||||
#define NVIM_BUFFER_DEFS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
// for garray_T
|
||||
#include "nvim/garray.h"
|
||||
// for pos_T and lpos_T
|
||||
|
@ -2,6 +2,7 @@
|
||||
///
|
||||
/// code for digraphs
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_EX_CMDS_H
|
||||
#define NVIM_EX_CMDS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ex_cmds.h.generated.h"
|
||||
#endif
|
||||
|
@ -14,6 +14,8 @@
|
||||
# define NVIM_EX_CMDS_DEFS_H
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/normal.h"
|
||||
|
||||
/*
|
||||
|
@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
|
@ -8,6 +8,8 @@
|
||||
#ifndef NVIM_GLOBALS_H
|
||||
#define NVIM_GLOBALS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/ex_eval.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/menu.h"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/indent.h"
|
||||
|
@ -78,6 +78,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_MBYTE_H
|
||||
#define NVIM_MBYTE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "mbyte.h.generated.h"
|
||||
#endif
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/ascii.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_MOVE_H
|
||||
#define NVIM_MOVE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "move.h.generated.h"
|
||||
#endif
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_OPTION_DEFS_H
|
||||
#define NVIM_OPTION_DEFS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/types.h"
|
||||
|
||||
// option_defs.h: definition of global variables for settable options
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_OS_EVENT_DEFS_H
|
||||
#define NVIM_OS_EVENT_DEFS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/os/job_defs.h"
|
||||
#include "nvim/os/rstream_defs.h"
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
/// Popup menu (PUM)
|
||||
//
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/ascii.h"
|
||||
|
@ -12,6 +12,8 @@
|
||||
#ifndef NVIM_REGEXP_DEFS_H
|
||||
#define NVIM_REGEXP_DEFS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/pos.h"
|
||||
|
||||
/*
|
||||
|
@ -11,6 +11,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/ascii.h"
|
||||
|
@ -286,6 +286,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <wctype.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_SPELL_H
|
||||
#define NVIM_SPELL_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "spell.h.generated.h"
|
||||
#endif
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_SYNTAX_H
|
||||
#define NVIM_SYNTAX_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
|
||||
typedef int guicolor_T;
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -24,6 +24,7 @@
|
||||
#define tgetstr tgetstr_defined_wrong
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_UI_H
|
||||
#define NVIM_UI_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ui.h.generated.h"
|
||||
#endif
|
||||
|
@ -82,6 +82,7 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/api/private/handle.h"
|
||||
#include "nvim/vim.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef NVIM_WINDOW_H
|
||||
#define NVIM_WINDOW_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "window.h.generated.h"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user