From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: refactor: replace manual header guards with #pragma once It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard. --- src/nvim/spell.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/spell.h') diff --git a/src/nvim/spell.h b/src/nvim/spell.h index f941f0e5e7..5e7eaba3ae 100644 --- a/src/nvim/spell.h +++ b/src/nvim/spell.h @@ -1,5 +1,4 @@ -#ifndef NVIM_SPELL_H -#define NVIM_SPELL_H +#pragma once #include @@ -11,4 +10,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spell.h.generated.h" #endif -#endif // NVIM_SPELL_H -- cgit From 09541d514dd18bf86f673d3784d406236fcbdad8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 09:51:26 +0800 Subject: build(IWYU): replace public-to-public mappings with pragmas (#26237) --- src/nvim/spell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/spell.h') diff --git a/src/nvim/spell.h b/src/nvim/spell.h index 5e7eaba3ae..839c76e6e7 100644 --- a/src/nvim/spell.h +++ b/src/nvim/spell.h @@ -2,9 +2,9 @@ #include -#include "nvim/ex_cmds_defs.h" +#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/globals.h" -#include "nvim/spell_defs.h" +#include "nvim/spell_defs.h" // IWYU pragma: export #include "nvim/vim.h" #ifdef INCLUDE_GENERATED_DECLARATIONS -- cgit From 574d25642fc9ca65b396633aeab6e2d32778b642 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 17:21:58 +0800 Subject: refactor: move Arena and ArenaMem to memory_defs.h (#26240) --- src/nvim/spell.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/nvim/spell.h') diff --git a/src/nvim/spell.h b/src/nvim/spell.h index 839c76e6e7..17e7dd6c40 100644 --- a/src/nvim/spell.h +++ b/src/nvim/spell.h @@ -7,6 +7,21 @@ #include "nvim/spell_defs.h" // IWYU pragma: export #include "nvim/vim.h" +/// First language that is loaded, start of the linked list of loaded languages. +extern slang_T *first_lang; + +/// file used for "zG" and "zW" +extern char *int_wordlist; + +extern spelltab_T spelltab; +extern int did_set_spelltab; + +extern char *e_format; + +// Remember what "z?" replaced. +extern char *repl_from; +extern char *repl_to; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spell.h.generated.h" #endif -- cgit From 79b6ff28ad1204fbb4199b9092f5c578d88cb28e Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 28 Nov 2023 20:31:00 +0100 Subject: refactor: fix headers with IWYU --- src/nvim/spell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spell.h') diff --git a/src/nvim/spell.h b/src/nvim/spell.h index 17e7dd6c40..f3977fdaf2 100644 --- a/src/nvim/spell.h +++ b/src/nvim/spell.h @@ -5,7 +5,7 @@ #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/globals.h" #include "nvim/spell_defs.h" // IWYU pragma: export -#include "nvim/vim.h" +#include "nvim/vim_defs.h" /// First language that is loaded, start of the linked list of loaded languages. extern slang_T *first_lang; -- cgit