diff options
37 files changed, 36 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 034ced184a..913491c6ca 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1,5 +1,6 @@ // Much of this code was adapted from 'if_py_both.h' from the original // vim source +#include <errno.h> #include <stdint.h> #include <stdlib.h> diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index bd4a8497ab..a34d2d03da 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -25,6 +25,7 @@ */ #include <stdbool.h> +#include <errno.h> #include <string.h> #include <inttypes.h> diff --git a/src/nvim/diff.c b/src/nvim/diff.c index cf30ca8ed2..20b40a7864 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -2,6 +2,7 @@ /// /// Code for diff'ing two, three or four buffers. +#include <errno.h> #include <inttypes.h> #include <stdbool.h> diff --git a/src/nvim/edit.c b/src/nvim/edit.c index b9665fd4c6..8cfaddde86 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -11,6 +11,7 @@ */ #include <assert.h> +#include <errno.h> #include <string.h> #include <inttypes.h> #include <stdbool.h> diff --git a/src/nvim/eval.c b/src/nvim/eval.c index fb8f862c01..973088a806 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10,6 +10,7 @@ * eval.c: Expression evaluation. */ +#include <errno.h> #include <inttypes.h> #include <stdarg.h> #include <string.h> diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 49a8d743d5..fe0e14adb6 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -10,6 +10,7 @@ * ex_cmds.c: some functions for command line commands */ +#include <errno.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 9b24ef2329..e3024f6fb0 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -10,6 +10,7 @@ * ex_cmds2.c: some more functions for command line commands */ +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 397b6cd22c..a82623691e 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -12,6 +12,7 @@ #include <string.h> #include <stdbool.h> +#include <errno.h> #include <inttypes.h> #include "nvim/vim.h" diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 154fe57a55..3447731134 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -10,6 +10,7 @@ * ex_getln.c: Functions for entering and editing an Ex command line. */ +#include <errno.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index e7e961ea0d..845a99acad 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -44,6 +44,7 @@ * functions. */ +#include <errno.h> #include <string.h> #include <stdbool.h> #include <inttypes.h> diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 6fb81dc6b5..f4d4005fa8 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -10,6 +10,7 @@ * fileio.c: read from and write to a file */ +#include <errno.h> #include <stdbool.h> #include <string.h> #include <inttypes.h> diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index 1edbe41295..e67cb67c69 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -10,6 +10,7 @@ * hardcopy.c: printing to paper */ +#include <errno.h> #include <string.h> #include <inttypes.h> diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 48b123ed59..9ce0eb7fa0 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -10,6 +10,7 @@ #include <stdbool.h> #include <assert.h> +#include <errno.h> #include <inttypes.h> #include "nvim/vim.h" diff --git a/src/nvim/main.c b/src/nvim/main.c index a5fa153fa6..344baa6b53 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -7,6 +7,7 @@ */ #define EXTERN +#include <errno.h> #include <inttypes.h> #include <string.h> #include <stdbool.h> diff --git a/src/nvim/mark.c b/src/nvim/mark.c index 158f1f9b48..90abbb6fbb 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -11,6 +11,7 @@ */ #include <assert.h> +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index cd7a63b5fe..65ba461539 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -76,6 +76,7 @@ * some commands, like ":menutrans" */ +#include <errno.h> #include <inttypes.h> #include <string.h> #include <wchar.h> diff --git a/src/nvim/memfile.c b/src/nvim/memfile.c index 823faaa68e..6e8d8f9972 100644 --- a/src/nvim/memfile.c +++ b/src/nvim/memfile.c @@ -31,6 +31,7 @@ * file is opened. */ +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/memline.c b/src/nvim/memline.c index f036348fc2..2627d98292 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -41,6 +41,7 @@ * mf_get(). */ +#include <errno.h> #include <inttypes.h> #include <string.h> #include <stdbool.h> diff --git a/src/nvim/memory.c b/src/nvim/memory.c index 378c50539c..d1649f2945 100644 --- a/src/nvim/memory.c +++ b/src/nvim/memory.c @@ -1,5 +1,6 @@ // Various routines dealing with allocation and deallocation of memory. +#include <errno.h> #include <inttypes.h> #include <string.h> #include <stdbool.h> diff --git a/src/nvim/message.c b/src/nvim/message.c index 22286ee742..b026976626 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -12,6 +12,7 @@ #define MESSAGE_FILE /* don't include prototype for smsg() */ +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <stdarg.h> diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index efef0445df..787c062699 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -10,6 +10,7 @@ * misc1.c: functions that didn't seem to fit elsewhere */ +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/misc2.c b/src/nvim/misc2.c index d33e10b05a..d2da6cbd65 100644 --- a/src/nvim/misc2.c +++ b/src/nvim/misc2.c @@ -9,6 +9,7 @@ /* * misc2.c: Various functions. */ +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/normal.c b/src/nvim/normal.c index d2fd10e6bb..82e2287dee 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -11,6 +11,7 @@ * the operators. */ +#include <errno.h> #include <inttypes.h> #include <string.h> #include <stdlib.h> diff --git a/src/nvim/option.c b/src/nvim/option.c index 7f9656224e..b80f014441 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -31,6 +31,7 @@ */ #define IN_OPTION_C +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index a2ee25ff8d..31653960ef 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -25,6 +25,7 @@ */ # define select select_declared_wrong +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> diff --git a/src/nvim/path.c b/src/nvim/path.c index 77728a304e..ea6390a688 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -1,5 +1,6 @@ #include <assert.h> +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <stdlib.h> diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 2ef94c430c..ec95c74fef 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -10,6 +10,7 @@ * quickfix.c: functions for quickfix mode, using a file with error messages */ +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> diff --git a/src/nvim/screen.c b/src/nvim/screen.c index eef74f9d6a..308c95ca02 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -86,6 +86,7 @@ * update_screen() called to redraw. */ +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> diff --git a/src/nvim/search.c b/src/nvim/search.c index 641ec9e19b..e1c709aed2 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -9,6 +9,7 @@ * search.c: code for normal mode searching commands */ +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/spell.c b/src/nvim/spell.c index a06928762f..55e86d1339 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -284,6 +284,7 @@ // stored as an offset to the previous number in as // few bytes as possible, see offset2bytes()) +#include <errno.h> #include <inttypes.h> #include <string.h> #include <stdlib.h> diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 25223a63c5..d34014ac75 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -1,4 +1,5 @@ +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 5beb348af1..0b1754a31d 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -11,6 +11,7 @@ */ #include <assert.h> +#include <errno.h> #include <inttypes.h> #include <string.h> #include <stdlib.h> diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 7525bd2684..dd3a2316c9 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -10,6 +10,7 @@ * Code to handle tags and the tag stack */ +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/term.c b/src/nvim/term.c index 7dfdc8d3b9..3e5511166c 100644 --- a/src/nvim/term.c +++ b/src/nvim/term.c @@ -22,6 +22,7 @@ */ #define tgetstr tgetstr_defined_wrong +#include <errno.h> #include <inttypes.h> #include <string.h> diff --git a/src/nvim/undo.c b/src/nvim/undo.c index ed94b29f78..de963683fe 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -81,6 +81,7 @@ #define UE_MAGIC 0xabc123 /* value for ue_magic when in use */ #include <inttypes.h> +#include <errno.h> #include <string.h> #include "nvim/vim.h" diff --git a/src/nvim/vim.h b/src/nvim/vim.h index 056f2da0ab..edae04812b 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -92,7 +92,6 @@ typedef uint32_t u8char_T; #include "nvim/term_defs.h" #include "nvim/macros.h" -#include <errno.h> diff --git a/src/nvim/window.c b/src/nvim/window.c index df4a3f2614..1bdefdae5d 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -6,6 +6,7 @@ * See README.txt for an overview of the Vim source code. */ +#include <errno.h> #include <assert.h> #include <inttypes.h> |