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
This commit is contained in:
Pavel Platto 2014-07-09 10:17:21 +03:00 committed by Justin M. Keyes
parent 1de9287a02
commit add8cb784c
7 changed files with 13 additions and 0 deletions

View File

@ -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 *);

View File

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

View File

@ -1,6 +1,8 @@
#ifndef NVIM_OPS_H
#define NVIM_OPS_H
#include <stdbool.h>
#include "nvim/types.h"
typedef int (*Indenter)(void);

View File

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

View File

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

View File

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

View File

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