diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-07-09 10:17:21 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-11 18:33:07 -0400 |
commit | add8cb784c134f27d4100ee7c3334c2648522987 (patch) | |
tree | 9856e515c7a69c9a45fef456416f064dc2718444 | |
parent | 1de9287a024801effa292b877492ab76210223b0 (diff) | |
download | rneovim-add8cb784c134f27d4100ee7c3334c2648522987.tar.gz rneovim-add8cb784c134f27d4100ee7c3334c2648522987.tar.bz2 rneovim-add8cb784c134f27d4100ee7c3334c2648522987.zip |
Include stdbool.h in headers which have functions with bool in signature
Done by manual inspecting of the output of this script:
grep -r -l -w "bool" * | grep 'c$' | sed 's/.c$//' > has_bool
grep -r -l -w "stdbool.h" * | grep 'h$' | sed 's/.h$//' > has_include
grep -F -x -v -f has_include has_bool
-rw-r--r-- | src/nvim/ex_cmds2.h | 2 | ||||
-rw-r--r-- | src/nvim/message.h | 2 | ||||
-rw-r--r-- | src/nvim/ops.h | 2 | ||||
-rw-r--r-- | src/nvim/os/channel.h | 1 | ||||
-rw-r--r-- | src/nvim/os/os.h | 2 | ||||
-rw-r--r-- | src/nvim/screen.h | 2 | ||||
-rw-r--r-- | src/nvim/strings.h | 2 |
7 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.h b/src/nvim/ex_cmds2.h index efc9018dd3..7022591501 100644 --- a/src/nvim/ex_cmds2.h +++ b/src/nvim/ex_cmds2.h @@ -1,6 +1,8 @@ #ifndef NVIM_EX_CMDS2_H #define NVIM_EX_CMDS2_H +#include <stdbool.h> + #include "nvim/ex_docmd.h" typedef void (*DoInRuntimepathCB)(char_u *, void *); diff --git a/src/nvim/message.h b/src/nvim/message.h index 662ae9a6ae..6e6b57d12e 100644 --- a/src/nvim/message.h +++ b/src/nvim/message.h @@ -1,6 +1,8 @@ #ifndef NVIM_MESSAGE_H #define NVIM_MESSAGE_H +#include <stdbool.h> + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "message.h.generated.h" #endif diff --git a/src/nvim/ops.h b/src/nvim/ops.h index 8227821d35..eecf2075aa 100644 --- a/src/nvim/ops.h +++ b/src/nvim/ops.h @@ -1,6 +1,8 @@ #ifndef NVIM_OPS_H #define NVIM_OPS_H +#include <stdbool.h> + #include "nvim/types.h" typedef int (*Indenter)(void); diff --git a/src/nvim/os/channel.h b/src/nvim/os/channel.h index ce04abb76d..bb409bfde9 100644 --- a/src/nvim/os/channel.h +++ b/src/nvim/os/channel.h @@ -1,6 +1,7 @@ #ifndef NVIM_OS_CHANNEL_H #define NVIM_OS_CHANNEL_H +#include <stdbool.h> #include <uv.h> #include "nvim/api/private/defs.h" diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h index ca8f7e8546..b6148e72bf 100644 --- a/src/nvim/os/os.h +++ b/src/nvim/os/os.h @@ -1,5 +1,7 @@ #ifndef NVIM_OS_OS_H #define NVIM_OS_OS_H + +#include <stdbool.h> #include <uv.h> #include "nvim/os/fs_defs.h" diff --git a/src/nvim/screen.h b/src/nvim/screen.h index c71a4d05e1..debf86ae67 100644 --- a/src/nvim/screen.h +++ b/src/nvim/screen.h @@ -1,6 +1,8 @@ #ifndef NVIM_SCREEN_H #define NVIM_SCREEN_H +#include <stdbool.h> + /* * flags for update_screen() * The higher the value, the higher the priority diff --git a/src/nvim/strings.h b/src/nvim/strings.h index fcc88763c2..3f0f0c8d6a 100644 --- a/src/nvim/strings.h +++ b/src/nvim/strings.h @@ -1,6 +1,8 @@ #ifndef NVIM_STRINGS_H #define NVIM_STRINGS_H +#include <stdbool.h> + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "strings.h.generated.h" #endif |