From 8e932480f61d6101bf8bea1abc07ed93826221fd Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 29 Sep 2023 14:58:48 +0200 Subject: refactor: the long goodbye long is 32 bits on windows, while it is 64 bits on other architectures. This makes the type suboptimal for a codebase meant to be cross-platform. Replace it with more appropriate integer types. --- src/nvim/linematch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/linematch.h') diff --git a/src/nvim/linematch.h b/src/nvim/linematch.h index 052d438617..129d2c7125 100644 --- a/src/nvim/linematch.h +++ b/src/nvim/linematch.h @@ -3,6 +3,8 @@ #include +#include "nvim/pos.h" + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "linematch.h.generated.h" #endif -- 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/linematch.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/linematch.h') diff --git a/src/nvim/linematch.h b/src/nvim/linematch.h index 129d2c7125..a2c72d26e7 100644 --- a/src/nvim/linematch.h +++ b/src/nvim/linematch.h @@ -1,5 +1,4 @@ -#ifndef NVIM_LINEMATCH_H -#define NVIM_LINEMATCH_H +#pragma once #include @@ -8,5 +7,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "linematch.h.generated.h" #endif - -#endif // NVIM_LINEMATCH_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/linematch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/linematch.h') diff --git a/src/nvim/linematch.h b/src/nvim/linematch.h index a2c72d26e7..2d765b0b70 100644 --- a/src/nvim/linematch.h +++ b/src/nvim/linematch.h @@ -1,6 +1,6 @@ #pragma once -#include +#include // IWYU pragma: keep #include "nvim/pos.h" -- 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/linematch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/linematch.h') diff --git a/src/nvim/linematch.h b/src/nvim/linematch.h index 2d765b0b70..3f3cdae171 100644 --- a/src/nvim/linematch.h +++ b/src/nvim/linematch.h @@ -2,7 +2,7 @@ #include // IWYU pragma: keep -#include "nvim/pos.h" +#include "nvim/pos_defs.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "linematch.h.generated.h" -- 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/linematch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/linematch.h') diff --git a/src/nvim/linematch.h b/src/nvim/linematch.h index 3f3cdae171..eaf0d54bec 100644 --- a/src/nvim/linematch.h +++ b/src/nvim/linematch.h @@ -2,7 +2,7 @@ #include // IWYU pragma: keep -#include "nvim/pos_defs.h" +#include "nvim/pos_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "linematch.h.generated.h" -- cgit