From 6a273af10517d1f7e4ea85635f1d25a9158adeb5 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 13 May 2023 10:40:53 +0800 Subject: refactor: remove typval.h from most header files (#23601) Because typval_defs.h is enough for most of them. --- src/nvim/mark_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/mark_defs.h') diff --git a/src/nvim/mark_defs.h b/src/nvim/mark_defs.h index f9df0028db..cfe19eac6f 100644 --- a/src/nvim/mark_defs.h +++ b/src/nvim/mark_defs.h @@ -1,7 +1,7 @@ #ifndef NVIM_MARK_DEFS_H #define NVIM_MARK_DEFS_H -#include "nvim/eval/typval.h" +#include "nvim/eval/typval_defs.h" #include "nvim/os/time.h" #include "nvim/pos.h" -- cgit From ee56daebb6468075e743db0d605cb3f2a1699419 Mon Sep 17 00:00:00 2001 From: Maria José Solano Date: Wed, 30 Aug 2023 19:15:49 -0700 Subject: fix(shada): update deleted marks (#24936) Fix #4295 Close #16067 Co-authored-by: chentau --- src/nvim/mark_defs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/mark_defs.h') diff --git a/src/nvim/mark_defs.h b/src/nvim/mark_defs.h index cfe19eac6f..6be919a7ab 100644 --- a/src/nvim/mark_defs.h +++ b/src/nvim/mark_defs.h @@ -86,4 +86,7 @@ typedef struct xfilemark { #define INIT_XFMARK { INIT_FMARK, NULL } +/// Global marks (marks with file number or name) +EXTERN xfmark_T namedfm[NGLOBALMARKS] INIT(= { 0 }); + #endif // NVIM_MARK_DEFS_H -- cgit From 5f03a1eaabfc8de2b3a9c666fcd604763f41e152 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 20 Oct 2023 15:10:33 +0200 Subject: build(lint): remove unnecessary clint.py rules Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. --- src/nvim/mark_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/mark_defs.h') diff --git a/src/nvim/mark_defs.h b/src/nvim/mark_defs.h index 6be919a7ab..54e3a9cbb4 100644 --- a/src/nvim/mark_defs.h +++ b/src/nvim/mark_defs.h @@ -87,6 +87,6 @@ typedef struct xfilemark { #define INIT_XFMARK { INIT_FMARK, NULL } /// Global marks (marks with file number or name) -EXTERN xfmark_T namedfm[NGLOBALMARKS] INIT(= { 0 }); +EXTERN xfmark_T namedfm[NGLOBALMARKS] INIT( = { 0 }); #endif // NVIM_MARK_DEFS_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/mark_defs.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/mark_defs.h') diff --git a/src/nvim/mark_defs.h b/src/nvim/mark_defs.h index 54e3a9cbb4..0e4fcc5889 100644 --- a/src/nvim/mark_defs.h +++ b/src/nvim/mark_defs.h @@ -1,5 +1,4 @@ -#ifndef NVIM_MARK_DEFS_H -#define NVIM_MARK_DEFS_H +#pragma once #include "nvim/eval/typval_defs.h" #include "nvim/os/time.h" @@ -88,5 +87,3 @@ typedef struct xfilemark { /// Global marks (marks with file number or name) EXTERN xfmark_T namedfm[NGLOBALMARKS] INIT( = { 0 }); - -#endif // NVIM_MARK_DEFS_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/mark_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/mark_defs.h') diff --git a/src/nvim/mark_defs.h b/src/nvim/mark_defs.h index 0e4fcc5889..c488cf2e1a 100644 --- a/src/nvim/mark_defs.h +++ b/src/nvim/mark_defs.h @@ -2,7 +2,7 @@ #include "nvim/eval/typval_defs.h" #include "nvim/os/time.h" -#include "nvim/pos.h" +#include "nvim/pos_defs.h" // marks: positions in a file // (a normal mark is a lnum/col pair, the same as a file position) -- 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/mark_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/mark_defs.h') diff --git a/src/nvim/mark_defs.h b/src/nvim/mark_defs.h index c488cf2e1a..67532d030f 100644 --- a/src/nvim/mark_defs.h +++ b/src/nvim/mark_defs.h @@ -1,7 +1,7 @@ #pragma once #include "nvim/eval/typval_defs.h" -#include "nvim/os/time.h" +#include "nvim/os/time_defs.h" #include "nvim/pos_defs.h" // marks: positions in a file -- cgit