From add8cb784c134f27d4100ee7c3334c2648522987 Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Wed, 9 Jul 2014 10:17:21 +0300 Subject: 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 --- src/nvim/ex_cmds2.h | 2 ++ src/nvim/message.h | 2 ++ src/nvim/ops.h | 2 ++ src/nvim/os/channel.h | 1 + src/nvim/os/os.h | 2 ++ src/nvim/screen.h | 2 ++ src/nvim/strings.h | 2 ++ 7 files changed, 13 insertions(+) (limited to 'src') 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 + #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 + #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 + #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 #include #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 #include #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 + /* * 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 + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "strings.h.generated.h" #endif -- cgit