From 09a17f91d0d362c6e58bfdbe3ccdeacffb0b44b9 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 2 Oct 2023 10:45:33 +0800 Subject: refactor: move cmdline completion types to cmdexpand_defs.h (#25465) --- src/nvim/profile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/profile.h') diff --git a/src/nvim/profile.h b/src/nvim/profile.h index 547d11185f..7450a0dfdc 100644 --- a/src/nvim/profile.h +++ b/src/nvim/profile.h @@ -4,6 +4,7 @@ #include #include +#include "nvim/cmdexpand_defs.h" #include "nvim/ex_cmds_defs.h" #include "nvim/runtime.h" -- 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/profile.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/profile.h') diff --git a/src/nvim/profile.h b/src/nvim/profile.h index 7450a0dfdc..117e15d4bc 100644 --- a/src/nvim/profile.h +++ b/src/nvim/profile.h @@ -1,5 +1,4 @@ -#ifndef NVIM_PROFILE_H -#define NVIM_PROFILE_H +#pragma once #include #include @@ -15,5 +14,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "profile.h.generated.h" #endif - -#endif // NVIM_PROFILE_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/profile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/profile.h') diff --git a/src/nvim/profile.h b/src/nvim/profile.h index 117e15d4bc..839c435b3e 100644 --- a/src/nvim/profile.h +++ b/src/nvim/profile.h @@ -1,10 +1,10 @@ #pragma once -#include +#include // IWYU pragma: keep #include -#include "nvim/cmdexpand_defs.h" -#include "nvim/ex_cmds_defs.h" +#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep +#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/runtime.h" #define TIME_MSG(s) do { \ -- 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/profile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/profile.h') diff --git a/src/nvim/profile.h b/src/nvim/profile.h index 839c435b3e..1a1800c279 100644 --- a/src/nvim/profile.h +++ b/src/nvim/profile.h @@ -5,7 +5,7 @@ #include "nvim/cmdexpand_defs.h" // IWYU pragma: keep #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep -#include "nvim/runtime.h" +#include "nvim/runtime_defs.h" // IWYU pragma: keep #define TIME_MSG(s) do { \ if (time_fd != NULL) time_msg(s, NULL); \ -- cgit