From dc6d0d2daf69e2fdadda81feb97906dbc962a239 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 30 Sep 2023 14:41:34 +0800 Subject: refactor: reorganize option header files (#25437) - Move vimoption_T to option.h - option_defs.h is for option-related types - option_vars.h corresponds to Vim's option.h - option_defs.h and option_vars.h don't include each other --- src/nvim/quickfix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/quickfix.h') diff --git a/src/nvim/quickfix.h b/src/nvim/quickfix.h index 0da43e436c..70b013be9c 100644 --- a/src/nvim/quickfix.h +++ b/src/nvim/quickfix.h @@ -2,6 +2,7 @@ #define NVIM_QUICKFIX_H #include "nvim/ex_cmds_defs.h" +#include "nvim/option_defs.h" #include "nvim/types.h" // flags for skip_vimgrep_pat() -- cgit 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/quickfix.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/quickfix.h') diff --git a/src/nvim/quickfix.h b/src/nvim/quickfix.h index 70b013be9c..e406679dcb 100644 --- a/src/nvim/quickfix.h +++ b/src/nvim/quickfix.h @@ -1,5 +1,4 @@ -#ifndef NVIM_QUICKFIX_H -#define NVIM_QUICKFIX_H +#pragma once #include "nvim/ex_cmds_defs.h" #include "nvim/option_defs.h" @@ -13,4 +12,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "quickfix.h.generated.h" #endif -#endif // NVIM_QUICKFIX_H -- 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/quickfix.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/nvim/quickfix.h') diff --git a/src/nvim/quickfix.h b/src/nvim/quickfix.h index e406679dcb..ecbde31512 100644 --- a/src/nvim/quickfix.h +++ b/src/nvim/quickfix.h @@ -1,7 +1,9 @@ #pragma once -#include "nvim/ex_cmds_defs.h" -#include "nvim/option_defs.h" +#include "nvim/eval/typval_defs.h" // IWYU pragma: keep +#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep +#include "nvim/option_defs.h" // IWYU pragma: keep +#include "nvim/pos.h" #include "nvim/types.h" // flags for skip_vimgrep_pat() -- cgit From f4aedbae4cb1f206f5b7c6142697b71dd473059b Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 27 Nov 2023 18:39:38 +0100 Subject: build(IWYU): fix includes for undo_defs.h --- src/nvim/quickfix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/quickfix.h') diff --git a/src/nvim/quickfix.h b/src/nvim/quickfix.h index ecbde31512..559ae7ff63 100644 --- a/src/nvim/quickfix.h +++ b/src/nvim/quickfix.h @@ -3,7 +3,7 @@ #include "nvim/eval/typval_defs.h" // IWYU pragma: keep #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/option_defs.h" // IWYU pragma: keep -#include "nvim/pos.h" +#include "nvim/pos_defs.h" #include "nvim/types.h" // flags for skip_vimgrep_pat() -- cgit From 6c14ae6bfaf51415b555e9a6b85d1d280976358d Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 27 Nov 2023 20:27:32 +0100 Subject: refactor: rename types.h to types_defs.h --- src/nvim/quickfix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/quickfix.h') diff --git a/src/nvim/quickfix.h b/src/nvim/quickfix.h index 559ae7ff63..2ad92ab6fe 100644 --- a/src/nvim/quickfix.h +++ b/src/nvim/quickfix.h @@ -4,7 +4,7 @@ #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/option_defs.h" // IWYU pragma: keep #include "nvim/pos_defs.h" -#include "nvim/types.h" +#include "nvim/types_defs.h" // flags for skip_vimgrep_pat() #define VGR_GLOBAL 1 -- cgit From 718053b7a97c4e2fbaa6077d3c9f4dc7012c8aad Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 28 Nov 2023 07:47:36 +0800 Subject: refactor: fix runtime_defs.h (#26259) --- src/nvim/quickfix.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/nvim/quickfix.h') diff --git a/src/nvim/quickfix.h b/src/nvim/quickfix.h index 2ad92ab6fe..9c49564d57 100644 --- a/src/nvim/quickfix.h +++ b/src/nvim/quickfix.h @@ -3,13 +3,15 @@ #include "nvim/eval/typval_defs.h" // IWYU pragma: keep #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/option_defs.h" // IWYU pragma: keep -#include "nvim/pos_defs.h" -#include "nvim/types_defs.h" +#include "nvim/pos_defs.h" // IWYU pragma: keep +#include "nvim/types_defs.h" // IWYU pragma: keep -// flags for skip_vimgrep_pat() -#define VGR_GLOBAL 1 -#define VGR_NOJUMP 2 -#define VGR_FUZZY 4 +/// flags for skip_vimgrep_pat() +enum { + VGR_GLOBAL = 1, + VGR_NOJUMP = 2, + VGR_FUZZY = 4, +}; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "quickfix.h.generated.h" -- cgit